百度智能云

All Product Document

          Dedicated Cloud Compute

          Query the DCC List

          Query the DCC List

          It is used to query the DCC list created by the current user.

          Request structure

              GET /v{version}/dedicatedHost 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
          marker String No Query parameter The start position of querying the list in batch, which is a string generated by the system
          maxKeys int No Query parameter It is the maximum number contained in each page, which usually does not exceed 1,000. The default value is 1,000
          zoneName String No Query parameter The availability zone name

          Return header field

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

          Return parameters

          Parameter Name Type Description
          marker String Mark the start position of querying
          isTruncated boolean True means there is still data behind, and false means it is already the last page
          nextMarker String Get the marker value to be passed on the next page. This field does not appear when isTruncated is false
          maxKeys int The maximum number contained in each page
          dedicatedHosts List<DedicatedHostModel> The list of the returned DCC hosts

          Request example

              GET /v1/dedicatedHost 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
          
          	{
          	    "nextMarker": "d-xktdeMSf",
          	    "marker": "d-YufwpQAe",
          	    "maxKeys": 1,
          	    "isTruncated": true,
          	    "dedicatedHosts": [
              	    {
              	        "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": 1024
              	                },
              	                {
              		                "storageType": "ssd",
              		                "sizeInGB": 1024,
              		                "freeSizeInGB": 1024
              	                }
                              ]
              	        }
              	        "paymentTiming":"Postpaid",
              	        "createTime": "2015-07-09T10:27:15Z",
              	        "expireTime": null,
              	        “zoneName": "cn-bj-a"
              	    }
                  ]
          	}
          Previous
          API Speicifcations
          Next
          Query Details of the DCC