Mengkueri sumber daya yang terkait dengan daftar awalan yang ditentukan, seperti ID sumber daya dan tipe sumber daya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribePrefixListAssociations |
get |
*PrefixList
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah Alibaba Cloud terbaru. |
cn-chengdu |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah Alibaba Cloud terbaru. |
cn-chengdu |
| PrefixListId |
string |
Yes |
ID daftar awalan. |
pl-x1j1k5ykzqlixdcy**** |
| NextToken |
string |
No |
Token kueri. Atur nilai ke nilai |
AAAAAdDWBF2**** |
| MaxResults |
integer |
No |
Jumlah entri per halaman. Nilai maksimum: 100. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
Token kueri yang dikembalikan dalam panggilan ini. Jika nilai pengembalian parameter ini kosong, tidak ada data lain yang akan dikembalikan. |
AAAAAdDWBF2**** |
| RequestId |
string |
ID permintaan. |
38793DB8-A4B2-4AEC-BFD3-111234E9188D |
| PrefixListAssociations |
object |
||
| PrefixListAssociation |
array<object> |
Informasi tentang sumber daya yang terkait dengan daftar awalan. |
|
|
object |
|||
| ResourceId |
string |
The ID of the resource. |
sg-bp11ujym6xsff6l0**** |
| ResourceType |
string |
The type of the resource. |
securitygroup |
Contoh
Respons sukses
JSONformat
{
"NextToken": "AAAAAdDWBF2****",
"RequestId": "38793DB8-A4B2-4AEC-BFD3-111234E9188D",
"PrefixListAssociations": {
"PrefixListAssociation": [
{
"ResourceId": "sg-bp11ujym6xsff6l0****",
"ResourceType": "securitygroup"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s | |
| 400 | NotSupported.ResourceType | The specified resource type is not supported. | |
| 404 | InvalidPrefixListId.NotFound | The specified prefix list was not found. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.