专属实例绑定标签
更新时间:2020-04-09
专属实例绑定标签
描述
为DCC服务器上的专属实例绑定标签
请求结构
                Plain Text
                
            
            1        PUT /v{version}/dedicatedHost/instance/{instanceId}/tag?bind
2        Host: dcc.bj.baidubce.com
3        Authorization: authorization string
4        Request Body
5        {
6            "changeTags": [
7                {
8                    "tagKey": "aaa",
9                    "tagValue": "111"
10                },
11                {
12                    "tagKey": "bbb",
13                    "tagValue": "222"
14                }
15            ]
16        }
            请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 | 
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号 | 
| instanceId | String | 是 | URL参数 | 指定实例ID | 
| changeTags | Array | 是 | Request Body参数 | 标签数组,每个标签由tagKey和tagValue组成。 | 
返回头域
除公共头域,无其它特殊头域。
请求示例
                Plain Text
                
            
            1        PUT /v1/dedicatedHost/instance/i-cnPq8n9d/tag?bind=%22%22 HTTP/1.1
2        Host: dcc.bj.baidubce.com
3        Authorization: bce-auth-v1/4e69d28643af46dea51fef90e221eb17/2019-02-12T09:29:05Z/1800/host;x-bce-date/6506ae92b51cffd2fbce69c3a7ddb5d9667d7e20dc1d30e671dcb16ceb3768fb
4        {
5            "changeTags": [
6                {
7                    "tagKey": "aaa",
8                    "tagValue": "111"
9                },
10                {
11                    "tagKey": "bbb",
12                    "tagValue": "222"
13                }
14            ]
15        }
            返回示例
                Plain Text
                
            
            1        HTTP/1.1 200 OK
2        x-bce-request-id: c80e55e2-863a-4ea1-9132-a410f323ee0c
3        Content-Type: application/json;charset=UTF-8
4        Server: BWS
            