forked from docs/doc-exports
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
14 KiB
14 KiB
Restarting DCS Instances or Clearing DCS Instance Data
Function
This API is used to restart a running DCS instance.
Data clearance operations cannot be undone on DCS Redis 4.0 and 5.0 instances.
URI
PUT /v1.0/{project_id}/instances/status
Table 1 describes the parameter.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Project ID. For details on how to obtain the value of this parameter, see Obtaining a Project ID. |
Request
Request parameters
Table 2 describes the request parameters.
Example request
- Request URL:
PUT https://{dcs_endpoint}/v1.0/{project_id}/instances/status
- Example:
{ "action": "restart", "instances": [ "2e803f66-fbb0-47ad-b6cb-fb87f5bed4ef" ] }
Response
Response parameters
Table 3 describes the response parameter.
Parameter |
Type |
Description |
---|---|---|
instance |
String |
DCS instance ID. |
result |
String |
Instance modification result. Options: success or failed |
Example response
{ "results": [ { "result": "success", "instance": "2e803f66-fbb0-47ad-b6cb-fb87f5bed4ef" } ] }
Parent topic: Instance Management APIs