Mengkueri daftar layanan cloud yang ditambahkan ke Web Application Firewall (WAF).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeCloudResources |
list |
*All Resource
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans WAF. Catatan
Panggil operasi DescribeInstance untuk mengkueri ID instans WAF. |
waf_v3prepaid_public_cn-lbj****cn0c |
| ResourceInstanceId |
string |
No |
ID instans sumber daya. |
alb-43glijk0fr****gths |
ResourceName
deprecated
|
string |
No |
Nama instans sumber daya. |
alb-name |
| ResourceRegionId |
string |
No |
ID wilayah tempat sumber daya berada. Untuk informasi lebih lanjut, lihat bagian "Wilayah dan produk yang didukung" di topik ini. Catatan
Setiap layanan cloud mendukung wilayah yang berbeda. Jika Anda menentukan parameter ResourceProduct, pastikan wilayah yang Anda tentukan untuk parameter ini mendukung layanan tersebut. Jika tidak, kueri mungkin gagal. |
cn-beijing |
| ResourceProduct |
string |
No |
Layanan cloud tempat sumber daya berada. Secara default, instans Application Load Balancer (ALB), Microservices Engine (MSE), Function Compute (FC), dan Serverless App Engine (SAE) dikembalikan. Nilai valid:
Catatan
Setiap layanan cloud mendukung wilayah yang berbeda. Jika Anda menentukan parameter ini, pastikan wilayah yang Anda tentukan untuk parameter ResourceRegionId mendukung layanan ini. Jika tidak, kueri mungkin gagal. |
alb |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. |
10 |
| ResourceRouteName |
string |
No |
Nama entri rute. Parameter ini tersedia saat Anda mengkueri sumber daya MSE. |
mse-default-traffic |
| ResourceDomain |
string |
No |
Nama domain sumber daya. Parameter ini tersedia saat Anda mengkueri sumber daya FC atau SAE. |
fc-domain-test |
| ResourceFunction |
string |
No |
Nama fungsi. Parameter ini tersedia saat Anda mengkueri sumber daya FC. |
fc-test |
| OwnerUserId |
string |
No |
UID akun tempat sumber daya berada. |
11769793****** |
| ResourceInstanceName |
string |
No |
Nama instans yang ditambahkan ke WAF. |
test-name |
| RegionId |
string |
No |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfm4gh****wela |
| ID Wilayah | Nama wilayah | Produk yang didukung |
| cn-hangzhou | Tiongkok (Hangzhou) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-shanghai | Tiongkok (Shanghai) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-shenzhen | Tiongkok (Shenzhen) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-beijing | Tiongkok (Beijing) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-zhangjiakou | Tiongkok (Zhangjiakou) | SAE,ALB,FC,MSE,ECS,CLB,NLB |
| cn-chengdu | Tiongkok (Chengdu) | ALB,ECS,CLB,NLB |
| cn-qingdao | Tiongkok (Qingdao) | ALB,ECS,CLB,NLB |
| cn-guangzhou | Tiongkok (Guangzhou) | ALB |
| cn-wulanchabu | Tiongkok (Ulanqab) | ALB |
| cn-hongkong | Tiongkok (Hong Kong) | ALB,MSE,ECS,CLB,NLB |
| cn-fuzhou | Tiongkok (Fuzhou - wilayah lokal - sedang dinonaktifkan) | ALB |
| ap-southeast-6 | Filipina (Manila) | ALB |
| ap-southeast-5 | Indonesia (Jakarta) | ALB,ECS,CLB,NLB |
| ap-northeast-1 | Jepang (Tokyo) | ALB |
| ap-southeast-3 | Malaysia (Kuala Lumpur) | ALB,MSE,ECS,CLB,NLB |
| ap-southeast-1 | Singapura | ALB,MSE |
| eu-central-1 | Jerman (Frankfurt) | ALB |
| us-west-1 | AS (Silicon Valley) | ALB |
| us-east-1 | AS (Virginia) | ALB |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| TotalCount |
integer |
The total number of cloud services found. |
121 |
| RequestId |
string |
The request ID. |
C327F81A-CCE2-5B21-817C-F93E29C5**** |
| CloudResources |
array<object> |
A list of cloud services. |
|
|
object |
Details about the cloud service. |
||
| ResourceRouteName |
string |
The name of the route. This parameter is returned for MSE instances. |
test-route-name |
| ResourceRegionId |
string |
The region where the resource resides. |
cn-hangzhou |
| ResourceFunction |
string |
The name of the function. This parameter is returned for FC instances. |
test-resource-function |
ResourceName
deprecated
|
string |
The name of the instance. |
test-resource-name |
ResourceInstance
deprecated
|
string |
The ID of the resource instance. |
alb-ffff**** |
| ResourceProduct |
string |
The cloud service to which the resource belongs. Valid values:
|
alb |
| ResourceService |
string |
The name of the service. This parameter is returned for FC instances. |
test-resource-service |
| ResourceDomain |
string |
The domain name of the resource. This parameter is returned for FC or SAE instances. |
test-resource-domain |
| OwnerUserId |
string |
The UID of the account to which the resource belongs. |
11769793****** |
| HttpPortCount |
integer |
The number of HTTP ports that are added to WAF. Catatan
This parameter is returned only for ECS and CLB instances. |
1 |
| HttpsPortCount |
integer |
The number of HTTPS ports that are added to WAF. Catatan
This parameter is returned only for ECS and CLB instances. |
1 |
| ResourceInstanceIp |
string |
The IP address of the instance that is added to WAF. |
1.1.1.1 |
| ResourceInstanceId |
string |
The ID of the instance that is added to WAF. |
lb-uf60ub45fr9b*** |
| ResourceInstanceName |
string |
The name of the instance that is added to WAF. |
test-name |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 121,
"RequestId": "C327F81A-CCE2-5B21-817C-F93E29C5****",
"CloudResources": [
{
"ResourceRouteName": "test-route-name",
"ResourceRegionId": "cn-hangzhou",
"ResourceFunction": "test-resource-function",
"ResourceName": "test-resource-name",
"ResourceInstance": "alb-ffff****",
"ResourceProduct": "alb",
"ResourceService": "test-resource-service",
"ResourceDomain": "test-resource-domain",
"OwnerUserId": "11769793******",
"HttpPortCount": 1,
"HttpsPortCount": 1,
"ResourceInstanceIp": "1.1.1.1",
"ResourceInstanceId": "lb-uf60ub45fr9b***",
"ResourceInstanceName": "test-name"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.