Mengkueri daftar Sumber daya yang ditambahkan ke Web Application Firewall (WAF) dalam mode cloud native.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeCloudResourceList |
list |
*DefenseResource
|
None |
|
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans WAF. Catatan
Panggil DescribeInstance untuk mengkueri ID instans WAF. |
waf_elasticity-cn-0xldbqt**** |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya Alibaba Cloud. |
rg-acfm***q |
| OwnerUserId |
string |
No |
ID akun Alibaba Cloud tempat sumber daya berada. |
1111111111 |
| ResourceInstanceId |
string |
No |
ID instans sumber daya. |
i-8vbdlsd********81e22 |
| Port |
string |
No |
Port layanan cloud yang ditambahkan ke WAF. |
80 |
| ResourceProduct |
string |
No |
Layanan cloud tempat sumber daya berada. Nilai valid:
Catatan
Tidak semua layanan cloud tersedia di semua wilayah. Jika Anda menentukan parameter ini, pastikan layanan cloud yang ditentukan tersedia di wilayah yang dipilih. Jika tidak, permintaan dapat gagal. |
ecs |
| CloudResourceId |
string |
No |
ID sumber daya yang dilindungi. WAF secara otomatis menghasilkan ID ini saat Anda menambahkan sumber daya ke WAF. Catatan
Panggil CreateCloudResource untuk menambahkan sumber daya. Lalu, lihat ID sumber daya pada Tampilan tanggapan. |
i-8vbdlsd********81e22-80-ecs |
| NextToken |
string |
No |
Token yang digunakan untuk mengambil halaman hasil berikutnya. Anda tidak perlu menentukan parameter ini untuk permintaan pertama. Catatan
Jika nilai dikembalikan untuk parameter ini, halaman berikutnya tersedia. Untuk mengambil halaman data berikutnya, sertakan NextToken yang dikembalikan di permintaan Anda berikutnya. Ulangi proses ini sampai tidak ada nilai yang dikembalikan, yang menunjukkan bahwa semua data telah diambil. |
AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS |
| MaxResults |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. Nilai valid: 1 hingga 100. Nilai default: 10. |
10 |
| RegionId |
string |
No |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
| ResourceDomain |
string |
No |
| ID Wilayah | Nama wilayah | Produk yang didukung |
| cn-hangzhou | China (Hangzhou) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-shanghai | China (Shanghai) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-shenzhen | China (Shenzhen) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-beijing | China (Beijing) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-zhangjiakou | China (Zhangjiakou) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-chengdu | China (Chengdu) | ALB,ECS,CLB,NLB |
| cn-qingdao | China (Qingdao) | ALB,ECS,CLB,NLB |
| cn-guangzhou | China (Guangzhou) | ALB |
| cn-wulanchabu | China (Ulanqab) | ALB |
| cn-hongkong | China (Hong Kong) | ALB,MSE,ECS,CLB,NLB |
| cn-fuzhou | China (Fuzhou) - wilayah lokal - sedang dinonaktifkan | ALB |
| ap-southeast-6 | Philippines (Manila) | ALB |
| ap-southeast-5 | Indonesia (Jakarta) | ALB,ECS,CLB,NLB |
| ap-northeast-1 | Japan (Tokyo) | ALB |
| ap-southeast-3 | Malaysia (Kuala Lumpur) | ALB,MSE,ECS,CLB,NLB |
| ap-southeast-1 | Singapore | ALB,MSE |
| eu-central-1 | Germany (Frankfurt) | ALB |
| us-west-1 | US (Silicon Valley) | ALB |
| us-east-1 | US (Virginia) | ALB |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
F35F45B0-5D6B-4238-BE02-A62D****E840 |
| NextToken |
string |
The token that is used to retrieve the next page of results. Catatan
If a value is returned for this parameter, it indicates that a next page is available. To retrieve the next page of data, include the returned NextToken in your next request. Repeat this process until no value is returned, which indicates that all data has been retrieved. |
AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS |
| TotalCount |
integer |
The total number of entries returned. |
118 |
| MaxResults |
integer |
The number of entries returned on the current page. |
20 |
| CloudResourceList |
array<object> |
The list of resources that are added to WAF. |
|
|
object |
The resource that is added to WAF. |
||
| Protocol |
string |
The protocol type. Valid values:
|
http |
| Port |
integer |
The port of the cloud service that is added to WAF. |
80 |
| ResourceRegionId |
string |
The ID of the region where the resource resides. For more information, see the "Regions and supported products" section in this topic. |
cn-hangzhou |
| ResourceInstanceId |
string |
The ID of the resource instance that is added to WAF. |
i-8vbdlsd********81e22 |
| ResourceProduct |
string |
The cloud service to which the resource belongs. Valid values:
|
ecs |
| CloudResourceId |
string |
The ID of the protected resource. WAF automatically generates this ID when you add the resource to WAF. |
i-8vbdlsd********81e22-80-ecs |
| ResourceManagerResourceGroupId |
string |
The ID of the Alibaba Cloud resource group. |
rg-aek2uo2****lbka |
| ResourceDomain |
string |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F35F45B0-5D6B-4238-BE02-A62D****E840",
"NextToken": "AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS",
"TotalCount": 118,
"MaxResults": 20,
"CloudResourceList": [
{
"Protocol": "http",
"Port": 80,
"ResourceRegionId": "cn-hangzhou",
"ResourceInstanceId": "i-8vbdlsd********81e22",
"ResourceProduct": "ecs",
"CloudResourceId": "i-8vbdlsd********81e22-80-ecs",
"ResourceManagerResourceGroupId": "rg-aek2uo2****lbka"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Waf.Instance.ValidFaild | WAF instance check failed. Check whether the instance ID is correct. | |
| 400 | Waf.Pullin.CloudProductParamEmpty | The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance. | |
| 400 | Waf.Pullin.CloudResourceInvalid | CloudResourceId parameter is illegal. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.