百度智能云

All Product Document

          Dedicated Cloud Compute

          Query Details of the DCC

          Query the DCC Details

          It is used to query the details of a single DCC.

          Request structure

          GET /v{version}/dedicatedHost/{hostId} HTTP/1.1
          Host: dcc.bj.baidubce.com
          Authorization authorization string

          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 DCC API version number. The current version is v 1
          hostId String Yes URI parameter The ID of a DCC to be queried

          Return header field

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

          Return parameters

          Parameter Name Type Description
          dedicatedHost DedicatedHostModel Details of the returned DCC host

          Request example

          GET /v1/dedicatedHost/d-kqaRyeCT HTTP/1.1
          Host: dcc.bj.baidubce.com
          ContentType: application/json
          Authorization bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2016-08-01T10:40:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de

          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
          
          {
              "dedicatedHost": {
                  "id": "d-YufwpQAe",	        
                  "name": "bj-S02-1te1fa",
                  "status": "Stopped",
                  "desc": "console",
                  "flavorName": "S01",
                  "resourceUsage": {
                      "cpuCount": 22,
                      "freeCpuCount": 20,
                      "memoryCapacityInGB": 78,
                      "freeMemoryCapacityInGB": 70,
                      "ephemeralDisks": [
                          {
          		              "storageType": "sata",
          		              "sizeInGB": 6144,
          		              "freeSizeInGB": 0
          	            },
          	            {
          		              "storageType": "ssd",
          		              "sizeInGB": 1024,
          		              "freeSizeInGB": 1024
          	            }
                      ]
                  }
                  "paymentTiming":"Postpaid",
                  "createTime": "2015-07-09T10:27:15Z",
                  "expireTime": null,
                  “zoneName": "cn-bj-a"
              }
          }
          Previous
          Query the DCC List
          Next
          DCC Renewal