百度智能云

All Product Document

          Dedicated Cloud Compute

          Unbind a tag of dedicated instance

          Dedicated Instance-unbound Tag

          It refers to the dedicated instance tags unbound from the DCC.

          Request structure

          PUT /v{version}/dedicatedHost/instance/{instanceId}/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
          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 Field

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

          Request Example

          PUT /v1/dedicatedHost/instance/i-cnPq8n9d/tag?unbind=%22%22 HTTP/1.1
          Host: dcc.bj.baidubce.com
          Authorization bce-auth-v1/4e69d28643af46dea51fef90e221eb17/2019-02-12T09:31:13Z/1800/host;x-bce-date/3434622b2393afa9bcf1a05c14e96edaadc0925bea843e547e50b58ba744004c
          {
              "changeTags": [
                  {
                      "tagKey": "aaa",
                      "tagValue": "111"
                  },
                  {
                      "tagKey": "bbb",
                      "tagValue": "222"
                  }
              ]
          }

          HTTP/1.1 200 OK
          x-bce-request-id: bc425711-36e3-4a5a-aa2b-cd6a4fcb87d6
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          Previous
          Bind a tag to dedicated instance
          Next
          Appendix