This API is used to restart a DB instance.
The DDS DB instance will be unavailable during the restart process. Exercise caution when performing this operation.
If the instance status is not normal, the instance cannot be restarted.
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. |
instance_id |
Yes |
Specifies the instance ID, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API to create an instance. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
target_type |
No |
String |
Specifies the type of the object to restart.
|
target_id |
Yes |
String |
Specifies the ID of the object to be restarted, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance.
|
POST https://dds.eu-de.otc.t-systems.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/restart
{ "target_id":"9136fd2a9fcd405ea4674276ce36dae8in02" }
{ "target_type":"shard", "target_id":"84e7c96b82aa4fedb3b00f98edd71ba4gr02" }
{ "target_type":"config", "target_id":"06439baa35c146d3a8965af59d370908gr02" }
{ "target_type":"mongos", "target_id":"bd4dccbd53ae48d5bd3046bebf715079no02" }
Name |
Type |
Description |
---|---|---|
job_id |
String |
Indicates the workflow ID. |
{ "job_id": "3711e2ad-5787-49bc-a47f-3f0b066af9f5" }
For more information, see Error Code.