You need to enable JavaScript to run this app.
导航

ModifyInstanceAttributes

最近更新时间2023.07.12 16:22:34

首次发布时间2023.07.12 16:22:34

调用 ModifyInstanceAttributes 接口修改对应实例名称、描述等实例信息。

请求参数

参数

参数类型

是否必选

示例值

说明

InstanceId

String

rocketmq-cnai1f0c29ca****

实例 ID。

InstanceName

String

myinstance

实例名称。

InstanceDescription

String

New instance

实例描述。

响应参数


示例

请求示例

POST /?Action=ModifyInstanceAttributes&Version=2023-01-01 HTTP/1.1
Content-Type: application/json
Host: rocketmq.volcengineapi.com
X-Date: 20210328T100802Z
Authorization: HMAC-SHA256 Credential=AK********/20210328/cn-shanghai/rocketmq/request, SignedHeaders=x-date, Signature=********

{
  "InstanceId": "rocketmq-cnai1f0c29ca****",
  "InstanceName": "rocketmq-doc",
  "InstanceDescription": "rocketmq-doc"
}

响应示例

{
    "ResponseMetadata": {
        "RequestId": "202302271847143C6FF96F30A58C7F0FE4",
        "Action": "ModifyInstanceAttributes",
        "Version": "2023-01-01",
        "Service": "RocketMQ",
        "Region": "cn-shanghai"
    },
    "Result": {}
}