調(diào)用UpdateDescription,更新指定實(shí)例的名稱。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
請(qǐng)求頭
該接口使用公共請(qǐng)求頭,無特殊請(qǐng)求頭。請(qǐng)參見公共請(qǐng)求參數(shù)文檔。
請(qǐng)求語法
PATCH|POST /openapi/instances/{InstanceId}/description HTTP/1.1
請(qǐng)求參數(shù)
名稱 | 類型 | 位置 | 是否必選 | 示例值 | 描述 |
---|---|---|---|---|---|
InstanceId | String | Path | 是 | es-cn-n6w1ptcb30009**** |
實(shí)例ID。 |
clientToken | String | Query | 否 | 5A2CFF0E-5718-45B5-9D4D-70B350**** |
用于保證請(qǐng)求的冪等性。由客戶端生成該參數(shù)值,要保證在不同請(qǐng)求間唯一,最大不超過64個(gè)ASCII字符。 |
Object | Body | 否 |
RequestBody參數(shù)。 |
||
description | String | Body | 否 | aliyunes_name_test |
指定更新后的實(shí)例名稱。 |
返回?cái)?shù)據(jù)
名稱 | 類型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | FDF34727-1664-44C1-A8DA-3EB72D60**** |
請(qǐng)求ID。 |
Result | Object |
返回結(jié)果。 |
|
description | String | aliyunes_test_name |
修改后的實(shí)例名稱。 |
說明 以下返回示例中,本文只保證包含返回?cái)?shù)據(jù)列表中的參數(shù),而未提到的參數(shù)僅供參考,參數(shù)說明可參見ListInstance。程序中不能強(qiáng)制依賴獲取這些參數(shù)。
示例
請(qǐng)求示例
PATCH /openapi/instances/es-cn-n6w1ptcb30009****/description HTTP/1.1
Content-Type:application/json
{
"description" : "aliyunes_name_test"
}
正常返回示例
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : {
"instanceId" : "es-cn-n6w1ptcb30009****",
"version" : "5.5.3_with_X-Pack",
"description" : "aliyunes_name_test",
"nodeAmount" : 3,
"paymentType" : "postpaid",
"status" : "activating",
"privateNetworkIpWhiteList" : [ "0.0.0.0/0" ],
"enablePublic" : true,
"nodeSpec" : {
"spec" : "elasticsearch.n4.small",
"disk" : 40,
"diskType" : "cloud_ssd",
"diskEncryption" : false
},
"networkConfig" : {
"vpcId" : "vpc-bp16k1dvzxtmagcva****",
"vswitchId" : "vsw-bp1k4ec6s7sjdbudw****",
"vsArea" : "cn-hangzhou-i",
"type" : "vpc"
},
"createdAt" : "2020-06-28T08:25:52.895Z",
"updatedAt" : "2020-07-06T09:21:11.615Z",
"commodityCode" : "elasticsearch",
"extendConfigs" : [ {
"configType" : "usageScenario",
"value" : "general"
}, {
"configType" : "maintainTime",
"maintainStartTime" : "02:00Z",
"maintainEndTime" : "06:00Z"
} ],
"endTime" : 4749724800000,
"clusterTasks" : [ {
"type" : "updating",
"progress" : 59.84375,
"status" : "RUNNING",
"canCancelable" : false,
"interruptible" : true,
"subTasks" : [ {
"type" : "ecs",
"progress" : 100,
"detail" : {
"totalNodeCount" : 4,
"completedNodeCount" : 4
},
"status" : "FINISHED",
"canCancelable" : false,
"interruptible" : false,
"subTasks" : [ ]
}, {
"type" : "hippo",
"progress" : 100,
"detail" : { },
"status" : "FINISHED",
"canCancelable" : false,
"interruptible" : false,
"subTasks" : [ ]
}, {
"type" : "rolling",
"progress" : 39.375,
"detail" : {
"totalNodeCount" : 4,
"completedNodeCount" : 1
},
"status" : "RUNNING",
"canCancelable" : false,
"interruptible" : false,
"subTasks" : [ ]
}, {
"type" : "finally",
"progress" : 0,
"detail" : { },
"status" : "READY",
"canCancelable" : false,
"interruptible" : false,
"subTasks" : [ ]
} ]
} ],
"vpcInstanceId" : "es-cn-n6w1ptcb30009****-worker",
"resourceGroupId" : "rg-acfm2h5vbzd****",
"zoneCount" : 1,
"protocol" : "HTTP",
"zoneInfos" : [ {
"zoneId" : "cn-hangzhou-i",
"status" : "NORMAL"
} ],
"instanceType" : "elasticsearch",
"inited" : true,
"tags" : [ ],
"domain" : "es-cn-n6w1ptcb30009****.elasticsearch.aliyuncs.com",
"port" : 9200,
"esVersion" : "5.5.3_with_X-Pack",
"esConfig" : {
"action.destructive_requires_name" : "true",
"xpack.security.audit.outputs" : "index",
"xpack.watcher.enabled" : "false",
"xpack.security.audit.enabled" : "false",
"action.auto_create_index" : "true"
},
"esIPWhitelist" : [ "0.0.0.0/0" ],
"esIPBlacklist" : [ ],
"kibanaIPWhitelist" : [ "0.0.0.0/0", "::/0" ],
"kibanaPrivateIPWhitelist" : [ ],
"publicIpWhitelist" : [ "::1", "0.0.0.0/0" ],
"kibanaDomain" : "es-cn-n6w1ptcb30009****.kibana.elasticsearch.aliyuncs.com",
"kibanaPort" : 5601,
"publicPort" : 9200,
"publicDomain" : "es-cn-n6w1ptcb30009****.public.elasticsearch.aliyuncs.com",
"haveKibana" : true,
"instanceCategory" : "x-pack",
"dedicateMaster" : false,
"advancedDedicateMaster" : false,
"masterConfiguration" : { },
"haveClientNode" : false,
"warmNode" : false,
"warmNodeConfiguration" : { },
"clientNodeConfiguration" : { },
"kibanaConfiguration" : {
"spec" : "elasticsearch.n4.small",
"amount" : 1,
"disk" : 0
},
"dictList" : [ {
"name" : "SYSTEM_MAIN.dic",
"fileSize" : 3058510,
"sourceType" : "ORIGIN",
"type" : "MAIN"
}, {
"name" : "SYSTEM_STOPWORD.dic",
"fileSize" : 164,
"sourceType" : "ORIGIN",
"type" : "STOP"
} ],
"synonymsDicts" : [ ],
"ikHotDicts" : [ ],
"aliwsDicts" : [ ],
"haveGrafana" : false,
"haveCerebro" : false,
"enableKibanaPublicNetwork" : true,
"enableKibanaPrivateNetwork" : false,
"advancedSetting" : {
"gcName" : "CMS"
}
},
"RequestId" : "24A68E4C-94B4-45E4-9068-CB12F33C****"
}
錯(cuò)誤碼
訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。