Modifying an Instance
Function
This API is used to modify the name and description of an instance.
URI
PUT /v1.0/{project_id}/instances/{instance_id}
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Project ID. |
instance_id |
String |
Yes |
Instance ID. |
Request
Request parameters
Table 2 describes the parameters.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
name |
String |
No |
Instance name. An instance name consists of 4 to 64 characters including letters, digits, and hyphens (-) and must start with a letter. |
description |
String |
No |
Description of an instance. It is a character string containing not more than 1024 characters.
NOTE:
The backslash (\) and quotation mark (") are special characters for JSON packets. When using these characters in a parameter value, add the escape character (\) before these characters, for example, \\ and \". |
maintain_begin |
String |
No |
Time at which a maintenance time window starts. Format: HH:mm:ss
|
maintain_end |
String |
No |
Time at which a maintenance time window ends. Format: HH:mm:ss
|
security_group_id |
String |
No |
Security group ID. |
retention_policy |
String |
No |
Capacity threshold policy. Options:
|
enterprise_project_id |
String |
No |
Enterprise project. |
Example request
Example 1:
{ "name": "dms002", "description": "instance description" }
Example 2:
{ "name": "dms002", "description": "instance description", "maintain_begin":"02:00:00", "maintain_end":"06:00:00" }
Response
Response parameters
None.
Example response
None.
Status Code
Table 3 describes the status code of successful operations. For details about other status codes, see Status 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