All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnUserResourcePackage

Last Updated:Oct 17, 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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

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

Schema of data.

RequestIdstring

The ID of the request.

96ED3127-EC7A-57C5-AFA6-A689B24B2530
ResourcePackageInfosarray<object>

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

ResourcePackageInfoobject

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.