This API is used to modify the instance information.
PUT /v2/{project_id}/instances/{instance_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. |
instance_id |
Yes |
String |
Instance ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
name |
No |
String |
Instance name. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, underscores (_), and hyphens (-). |
description |
No |
String |
Instance description. The description can contain a maximum of 1024 characters. NOTE:
The backslash () and quotation mark (") are special characters for JSON messages. When using these characters in a parameter value, add the escape character () before the characters, for example, \ and ". |
maintain_begin |
No |
String |
Time at which the maintenance time window starts. The format is HH:mm:ss.
|
maintain_end |
No |
String |
Time at which the maintenance time window ends. The format is HH:mm:ss.
|
security_group_id |
No |
String |
Security group ID. |
retention_policy |
No |
String |
Capacity threshold policy. Options:
|
None
Modifying the name and description of an instance.
PUT https://{endpoint}/v2/{project_id}/instances/{instance_id}
{
"name" : "kafka001",
"description" : "kafka description"
}
Modifying the name, description, and maintenance time window of an instance.
PUT https://{endpoint}/v2/{project_id}/instances/{instance_id}
{
"name" : "dms002",
"description" : "instance description",
"maintain_begin" : "02:00:00",
"maintain_end" : "06:00:00"
}
Changing the capacity threshold policy.
PUT https://{endpoint}/v2/{project_id}/instances/{instance_id}
{
"retention_policy" : "time_base"
}
None
Status Code |
Description |
|---|---|
204 |
The instance information is modified successfully. |
See Error Codes.