Bind a tag to dedicated instance
Last Updated:2020-09-29
Dedicated Instance-bound Tag
Description
It refers to the dedicated instance-bound tags for the DCC.
Request structure
PUT /v{version}/dedicatedHost/instance/{instanceId}/tag?bind
Host: dcc.bj.baidubce.com
Authorization authorization string
Request Body
{
"changeTags": [
{
"tagKey": "aaa",
"tagValue": "111"
},
{
"tagKey": "bbb",
"tagValue": "222"
}
]
}
Request header fields
No other special header fields are available, except for common header fields.
Request parameters
Parameter Name | Type | Required | Parameter Position | Description |
---|---|---|---|---|
version | String | Yes | URI parameter | API version number |
instanceId | String | Yes | URI parameter | Specified instance ID |
changeTags | Array | Yes | Request Body parameter | An array of tags, each of which is composed of the tagKey and tagValue |
Return header fields
No other special header fields are available, except for common header fields.
Request example
PUT /v1/dedicatedHost/instance/i-cnPq8n9d/tag?bind=%22%22 HTTP/1.1
Host: dcc.bj.baidubce.com
Authorization bce-auth-v1/4e69d28643af46dea51fef90e221eb17/2019-02-12T09:29:05Z/1800/host;x-bce-date/6506ae92b51cffd2fbce69c3a7ddb5d9667d7e20dc1d30e671dcb16ceb3768fb
{
"changeTags": [
{
"tagKey": "aaa",
"tagValue": "111"
},
{
"tagKey": "bbb",
"tagValue": "222"
}
]
}
Return example
HTTP/1.1 200 OK
x-bce-request-id: c80e55e2-863a-4ea1-9132-a410f323ee0c
Content-Type: application/json;charset=UTF-8
Server: BWS