百度智能云

All Product Document

          Dedicated Cloud Compute

          Unbind a DCC Tag

          Unbind a Tag to a DCC

          Description

          It is used to unbind the same tag to a DCC and its all sub-instances.

          Request structure

          PUT /v{version}/dedicatedHost/{dccId}/tag?unbind
          Host: dcc.bj.baidubce.com
          Authorization authorization string
          Request Body
          {
              "changeTags": [
                  {
                      "tagKey": "aaa",
                      "tagValue": "111"
                  },
                  {
                      "tagKey": "bbb",
                      "tagValue": "222"
                  }
              ]
          }

          Request header field

          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
          dccId String Yes URI parameter Specified DCC id
          changeTags Array Yes Request Body parameter An array of tags required to be unbound, each of which is composed of the tagKey and tagValue

          Return header field

          No other special header fields are available, except for common header fields.

          Request example

          PUT /v1/dedicatedHost/d-fkIthUMd/tag?unbind=%22%22&clientToken=4ec448dc595635ead81b3ac467a3dee4 HTTP/1.1
          Host: dcc.bj.baidubce.com
          ContentType: application/json
          Authorization bce-auth-v1/4e69d28643af46dea51fef90e221eb17/2019-02-12T09:12:17Z/1800/host;x-bce-date/5358d18753d02db087695bef221b32d669e7137efda02ce9be3d657d9342aa94
          {
              "changeTags" : [
                  {
                      "tagKey" : "aaa",
                      "tagValue" : "111"
                  },
                  {
                      "tagKey" : "bbb",
                      "tagValue" : "222"
                  }
              ]
          }

          Return example

          HTTP/1.1 200 OK
          x-bce-request-id: cad7e206-8a09-4c23-93f3-2f46cc611194
          Previous
          Bind a Tag to DCC
          Next
          Create a Dedicated Instance