ModifyInstanceName

更新时间: 2026-03-11 06:56:21

Renames an ApsaraMQ for Kafka instance. Call this operation to update the display name of a deployed instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. We recommend that you call this operation in OpenAPI Explorer, which dynamically generates sample code for different SDKs.

Authorization information

The following table shows the authorization information for this API operation. Use the Action policy element to grant a Resource Access Management (RAM) user or RAM role the permission to call this operation.

ColumnDescription
OperationThe value for the Action element to specify the operation on a resource.
Access levelThe access level of the operation. Valid values: read, write, and list.
Resource typeThe type of resource that the operation acts on. Required resource types are highlighted.
Condition keyThe condition key defined by the cloud service.
Associated operationOther operations that the RAM user or RAM role must also have permission to perform.
OperationAccess levelResource typeCondition keyAssociated operation
alikafka:UpdateInstanceWriteInstance acs:alikafka:{#regionId}:{#accountId}:{#InstanceId}NoneNone

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYesThe instance ID.alikafka_post-cn-v0h1fgs2\*\*\*\*
RegionIdstringYesThe region ID of the instance.cn-hangzhou
InstanceNamestringYesThe instance name. The name must be 3 to 64 characters in length and can contain only letters, digits, hyphens (-), and underscores (\_). Names longer than 64 characters are automatically truncated.dev-test

Response parameters

ParameterTypeDescriptionExample
CodeintegerThe response code. 200 indicates success.200
MessagestringThe response message.operation success.
RequestIdstringThe request ID.06084011-E093-46F3-A51F-4B19A8AD\*\*\*\*
SuccessbooleanIndicates whether the request is successful.true

Examples

Sample success responses

JSON format

{
  "Code": 200,
  "Message": "operation success.",
  "RequestId": "06084011-E093-46F3-A51F-4B19A8AD****",
  "Success": true
}

Error codes

For a list of error codes, see Common error codes.

上一篇: StartInstance - Deploy an instance 下一篇: GetInstanceList - Query instance information in a specified region
阿里云首页 云消息队列 Kafka 版 相关技术圈