Restarting a DB Instance
API Description
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.
Restrictions
If the instance status is not normal, the instance cannot be restarted.
|
Parameter |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
project_id |
string |
path |
Yes |
Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID. |
|
instance_id |
string |
path |
Yes |
Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one. |
Request Parameters
|
Parameter |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
X-Auth-Token |
string |
header |
Yes |
User token |
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
target_type |
String |
No |
The type of the object to restart.
|
|
target_id |
String |
Yes |
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.
|
Response Parameters
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
job_id |
String |
Yes |
The workflow ID. |
Example Request
{
"target_id":"9136fd2a9fcd405ea4674276ce36dae8in02"
}
{
"target_type":"shard",
"target_id":"84e7c96b82aa4fedb3b00f98edd71ba4gr02"
}
{
"target_type":"config",
"target_id":"06439baa35c146d3a8965af59d370908gr02"
}
{
"target_type":"mongos",
"target_id":"bd4dccbd53ae48d5bd3046bebf715079no02"
}
{
"target_type" : "readonly",
"target_id" : "886485522d0c4a14b067446a89873962no02"
}
Example Response
{
"job_id": "3711e2ad-5787-49bc-a47f-3f0b066af9f5"
}
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot