百度智能云

All Product Document

          Dedicated Cloud Compute

          Modify the Dedicated Instance Name

          Modify the Dedicated Instance Name

          Description

          It is used to modify the name of a dedicated instance on a DCC.

          Request structure

          PUT /v{version}/dedicatedHost/{instanceId}?{action} HTTP/1.1
          Host: dcc.bj.baidubce.com
          Authorization authorization string
          {
              "name" : "testName",
          }

          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
          name String Yes Request Body parameter Instance name

          Return header field

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

          Request example

          PUT /v1/dedicatedHost/d-j5QWwbfe?modifyAttribute HTTP/1.1
          Host: dcc.bj.baidubce.com
          ContentType: application/json
          Authorization bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2019-01-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
          {
              "name" : "testName",
          }

          Return example

          HTTP/1.1 200 OK
          x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
          Date: Wed, 03 Dec 2014 06:42:19 GMT
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          Previous
          Create a Dedicated Instance
          Next
          Bind a tag to dedicated instance