You can call this operation to query the current resource plans of Dynamic Route for CDN (DCDN) under your account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDcdnUserResourcePackage

The operation that you want to perform. Set the value to DescribeDcdnUserResourcePackage.

Response parameters

Parameter Type Example Description
RequestId String 84839536-2B7E-457D-9D8C-82E6C7D4E1A3

The ID of the request.

ResourcePackageInfos Array

The details about each resource plan which is indicated by the ResourcePackageInfo parameter.

ResourcePackageInfo

The details about each resource plan which is indicated by the ResourcePackageInfo parameter.

CommodityCode String cdnflowbag

The code of the resource plan.

CurrCapacity String 10995089554629

The remaining quota of the resource plan.

DisplayName String The DCDN resource plan (mainland China).

The display name of the template.

EndTime String 2017-01-30T08:00:00Z

The time when the resource plan expires.

InitCapacity String 10995116277760

The total quota of the resource plan.

InstanceId String FP-mkqgwxxx

The ID of the resource plan.

StartTime String 2016-01-30T03:40:06Z

The time when the resource plan takes effect.

Status String closed

The status of the resource plan. Valid values:

  • valid: Valid.
  • closed: Expired
TemplateName String xxx

The name of the template.

Examples

Sample requests

http://dcdn.aliyuncs.com?&Action=DescribeDcdnUserResourcePackage
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnUserResourcePackageResponse>
	  <ResourcePackageInfos>
		    <ResourcePackageInfo>
			      <Status>closed</Status>
			      <InstanceId>FP-mkqgwxxx</InstanceId>
			      <CommodityCode>cdnflowbag</CommodityCode>
			      <InitCapacity>10995116277760</InitCapacity>
			      <EndTime>2017-01-30T08:00:00Z</EndTime>
			      <StartTime>2016-01-30T03:40:06Z</StartTime>
			      <DisplayName>DCDN resource plan (mainland China)</DisplayName>
			      <CurrCapacity>10995089554629</CurrCapacity>
		    </ResourcePackageInfo>
		    <ResourcePackageInfo>
			      <Status>valid</Status>
			      <InstanceId>FP-ilttxc23a</InstanceId>
			      <CommodityCode>cdnflowbag</CommodityCode>
			      <InitCapacity>536870912000</InitCapacity>
			      <EndTime>2018-07-01T08:00:00Z</EndTime>
			      <StartTime>2017-07-01T01:26:41Z</StartTime>
			      <DisplayName>DCDN resource plan (mainland China)</DisplayName>
			      <CurrCapacity>0</CurrCapacity>
		    </ResourcePackageInfo>
		    <ResourcePackageInfo>
			      <Status>valid</Status>
			      <InstanceId>CDNHTTPSBAG-cn-v0h0dnlq4000m9</InstanceId>
			      <CommodityCode>cdnhttpsbag</CommodityCode>
			      <InitCapacity>10000000</InitCapacity>
			      <EndTime>2018-12-06T08:00:00Z</EndTime>
			      <StartTime>2017-12-05T19:10:58Z</StartTime>
			      <DisplayName> DCDN HTTPS request resource plan</DisplayName>
			      <CurrCapacity>9999645</CurrCapacity>
		    </ResourcePackageInfo>
	  </ResourcePackageInfos>
	  <RequestId>84839536-2B7E-457D-9D8C-82E6C7D4E1A3</RequestId>
</DescribeDcdnUserResourcePackageResponse>

JSON format

{
	"ResourcePackageInfos":{
		"ResourcePackageInfo":[
			{
				"Status":"closed",
				"CommodityCode":"cdnflowbag",
				"InstanceId":"FP-mkqgwxxx",
				"InitCapacity":"10995116277760",
				"EndTime":"2017-01-30T08:00:00Z",
				"StartTime":"2016-01-30T03:40:06Z",
				"DisplayName":"DCDN resource plan (mainland China)",
				"CurrCapacity":"10995089554629"
			},
			{
				"Status":"valid",
				"CommodityCode":"cdnflowbag",
				"InstanceId":"FP-ilttxc23a",
				"InitCapacity":"536870912000",
				"EndTime":"2018-07-01T08:00:00Z",
				"StartTime":"2017-07-01T01:26:41Z",
				"DisplayName":"DCDN resource plan (mainland China)",
				"CurrCapacity":"0"
			},
			{
				"Status":"valid",
				"CommodityCode":"cdnhttpsbag",
				"InstanceId":"CDNHTTPSBAG-cn-v0h0dnlq4000m9",
				"InitCapacity":"10000000",
				"EndTime":"2018-12-06T08:00:00Z",
				"StartTime":"2017-12-05T19:10:58Z",
				 "DisplayName":"DCDN HTTPS request resource plan",
				"CurrCapacity":"9999645"
			}
		]
	},
	"RequestId":"84839536-2B7E-457D-9D8C-82E6C7D4E1A3"
}

Error codes

For a list of error codes, visit the API Error Center.