Changes the name of a Message Queue for Apache Kafka instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyInstanceName |
The operation that you want to perform. Set the value to ModifyInstanceName. |
InstanceId | String | Yes | alikafka_post-cn-v0h1fgs2**** |
The ID of the instance whose name you want to change. |
InstanceName | String | Yes | dev-test |
The name of the instance. Valid values:
|
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the instance is located. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The response code. The HTTP 200 code indicates that the request was successful. |
Message | String | operation success. |
The response message. |
RequestId | String | 06084011-E093-46F3-A51F-4B19A8AD**** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request was successful. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyInstanceName
&InstanceId=alikafka_post-cn-v0h1fgs2****
&InstanceName=dev-test
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<ModifyInstanceName>
<Message>operation success. </Message>
<RequestId>06084011-E093-46F3-A51F-4B19A8AD7A94</RequestId>
<Success>true</Success>
<Code>200</Code>
</ModifyInstanceName>
JSON
format
{
"RequestId":"06084011-E093-46F3-A51F-4B19A8AD****",
"Message":"operation success.",
"Code":"200",
"Success":"true"
}
Error codes
For a list of error codes, visit the API Error Center.