停止数据库流量请求
用于停止数据库流量的 REST API 请求
Redis 企业软件 |
---|
方法 | 路径 | 描述 |
---|---|---|
发布 | /v1/bdbs/{uid}/actions/stop_traffic |
停止数据库流量 |
停止数据库流量
POST /v1/bdbs/{int: uid}/actions/stop_traffic
Stop handling traffic for the database.
Use this action to stop read and write traffic on a database. To resume traffic afterward, use the resume_traffic
action.
Required permissions
Permission name
Roles
update_bdb_with_action
admin
cluster_member
db_member
Request
Example HTTP request
POST /v1/bdbs/1/actions/stop_traffic
URL parameters
Field
Type
Description
uid
integer
The unique ID of the database.
Response
Returns a JSON object with an action_uid
. You can track the action's progress with a GET /v1/actions/<action_uid>
request.
Status codes
Code
Description
200 OK
The request is accepted and is being processed. The database state will be active-change-pending
until the request has been fully processed.
404 Not Found
Attempting to perform an action on a nonexistent database.
409 Conflict
Attempting to change a database while it is busy with another configuration change. This is a temporary condition, and the request should be reattempted later.
On this page