All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnUserResourcePackage

Last Updated:Jun 10, 2026

Mengkueri informasi tentang semua paket sumber daya Anda, seperti jumlah total, jumlah sisa, waktu efektif, waktu kedaluwarsa, dan status.

Deskripsi operasi

Catatan

The call frequency for a single user is limited to 30 calls per second.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

dcdn:DescribeDcdnUserResourcePackage

get

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

Status

string

No

Status paket sumber daya. Nilai default: valid. Nilai valid:

  • valid: Paket sumber daya valid.

  • closed: Paket sumber daya ditutup.

  • exhaust: Paket sumber daya habis.

valid

Elemen respons

Element

Type

Description

Example

object

The request ID.

RequestId

string

The request ID.

96ED3127-EC7A-57C5-AFA6-A689B24B2530

ResourcePackageInfos

object

ResourcePackageInfo

array<object>

The list of resource plans.

object

An array of ResourcePackageInfo objects.

EndTime

string

The expiration time. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC and complies with the ISO 8601 standard.

2022-08-24T16:00:00Z

Status

string

The status of the resource plan. Valid values:

  • valid: The resource plan is valid.

  • closed: The resource plan is closed.

  • exhaust: The resource plan is exhausted.

valid

DisplayName

string

The name of the resource plan.

Downstream Data Package (Australia Sydney)

StartTime

string

The effective time. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC and complies with the ISO 8601 standard.

2021-08-24T04:09:22Z

CommodityCode

string

The commodity code of the resource plan.

dcdnpaybag

InstanceId

string

The ID of the resource plan.

CDNFLOWBAG-cn-7pp2bihrb01ii0

TemplateName

string

The name of the template.

FPT_dcdnpaybag_deadlineAcc_1541151058

CurrCapacity

string

The remaining amount of the resource plan.

  • The unit for data transfer plans is byte.

  • The unit for request plans is count.

10000000

InitCapacity

string

The total amount of the resource plan.

  • The unit for data transfer plans is byte.

  • The unit for request plans is count.

10000000

Region

string

The region.

CN

CurrCapacityShowValue

string

The display value of the remaining capacity of the instance.

49.975789

CurrCapacityShowUnit

string

The display unit of the remaining capacity of the instance.

GB

CurrCapacityBaseUnit

string

The base unit of the remaining capacity of the instance.

Byte

InitCapacityShowValue

string

The display value of the total capacity of the resource plan.

100.000000

InitCapacityShowUnit

string

The display unit of the total capacity of the resource plan.

GB

InitCapacityBaseUnit

string

The base unit of the total capacity of the resource plan.

Byte

Contoh

Respons sukses

JSONformat

{
  "RequestId": "96ED3127-EC7A-57C5-AFA6-A689B24B2530",
  "ResourcePackageInfos": {
    "ResourcePackageInfo": [
      {
        "EndTime": "2022-08-24T16:00:00Z",
        "Status": "valid",
        "DisplayName": "Downstream Data Package (Australia Sydney)",
        "StartTime": "2021-08-24T04:09:22Z",
        "CommodityCode": "dcdnpaybag",
        "InstanceId": "CDNFLOWBAG-cn-7pp2bihrb01ii0",
        "TemplateName": "FPT_dcdnpaybag_deadlineAcc_1541151058",
        "CurrCapacity": "10000000",
        "InitCapacity": "10000000",
        "Region": "CN",
        "CurrCapacityShowValue": "49.975789\n",
        "CurrCapacityShowUnit": "GB\n",
        "CurrCapacityBaseUnit": "Byte",
        "InitCapacityShowValue": "100.000000\n",
        "InitCapacityShowUnit": "GB\n",
        "InitCapacityBaseUnit": "Byte"
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

403 DcdnServiceNotFound The DCDN service is not activated. DCDN is not activated. Activate DCDN and try again.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.