All Products
Search
Document Center

Dynamic Content Delivery Network:DescribeDcdnUserResourcePackage

Last Updated:Mar 01, 2024

Queries information about the resource plans in your Alibaba Cloud account.

Operation description

**

**The maximum number of times that each user can call this operation per second is 30.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dcdn:DescribeDcdnUserResourcePackageRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StatusstringNo

The status of the resource plan. Valid values:

  • valid: valid
  • closed: expired
  • If you leave this parameter empty, all resource plans are queried.
valid

Response parameters

ParameterTypeDescriptionExample
object

The ID of the request.

RequestIdstring

The ID of the request.

96ED3127-EC7A-57C5-AFA6-A689B24B2530
ResourcePackageInfosobject []

The detailed information about resource plans. The returned information is displayed in the format that is specified by the ResourcePackageInfo parameter.

EndTimestring

The expiration time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2022-08-24T16:00:00Z
Statusstring

The status of the resource plan. Valid values:

  • valid: valid
  • closed: expired
valid
DisplayNamestring

The name of the resource plan.

HTTPS requests for static content
StartTimestring

The validation time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2021-08-24T04:09:22Z
CommodityCodestring

The commodity code of the resource plan.

dcdnpaybag
CurrCapacitystring

The remaining quota of the resource plan.

  • The unit for traffic: bytes.
  • The unit for requests: count.
10000000
InitCapacitystring

The total quota of the resource plan.

  • The unit for traffic: bytes.
  • The unit for requests: count.
10000000
InstanceIdstring

The ID of the resource plan.

CDNFLOWBAG-cn-7pp2bihrb01ii0
TemplateNamestring

The name of the template.

FPT_dcdnpaybag_deadlineAcc_1541151058

Examples

Sample success responses

JSONformat

{
  "RequestId": "96ED3127-EC7A-57C5-AFA6-A689B24B2530",
  "ResourcePackageInfos": {
    "ResourcePackageInfo": [
      {
        "EndTime": "2022-08-24T16:00:00Z",
        "Status": "valid",
        "DisplayName": "HTTPS requests for static content\n",
        "StartTime": "2021-08-24T04:09:22Z",
        "CommodityCode": "dcdnpaybag",
        "CurrCapacity": "10000000",
        "InitCapacity": "10000000",
        "InstanceId": "CDNFLOWBAG-cn-7pp2bihrb01ii0",
        "TemplateName": "FPT_dcdnpaybag_deadlineAcc_1541151058"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
403DcdnServiceNotFoundThe DCDN service is not activated.DCDN is not activated. Activate DCDN and try again.

For a list of error codes, visit the Service error codes.