Mengambil daftar templat kebijakan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:ListPolicyClasses |
none |
*全部资源
|
None | None |
Sintaks permintaan
GET /v1/policy-classes HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| type |
string |
No |
Jenis templat. |
FlowControl |
| direction |
string |
No |
Arah traffic tempat kebijakan berlaku. Nilai yang valid:
|
InBound |
| attachResourceType |
string |
No |
Jenis titik pemasangan yang didukung. Nilai yang valid:
|
Operation |
| pageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Nilai default: 1. |
1 |
| pageSize |
integer |
No |
Jumlah entri per halaman. |
10 |
| attachResourceId |
string |
No |
ID resource untuk menyambungkan kebijakan |
route-001 |
| gatewayId |
string |
No |
ID gateway |
gw-001 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| requestId |
string |
ID permintaan. |
23B45FA9-7208-5E55-B5CE-B6B2567DD822 |
| code |
string |
Kode status yang dikembalikan. |
Ok |
| message |
string |
Pesan respons yang dikembalikan. |
success |
| data |
object |
Array informasi templat kebijakan. |
|
| pageNumber |
integer |
Nomor halaman yang dikembalikan. |
1 |
| pageSize |
integer |
Jumlah entri per halaman. |
10 |
| totalSize |
integer |
Total jumlah entri. |
10 |
| items |
array |
Templat. |
|
| PolicyClassInfo |
Informasi templat. |
Contoh
Respons sukses
JSONformat
{
"requestId": "23B45FA9-7208-5E55-B5CE-B6B2567DD822",
"code": "Ok",
"message": "success",
"data": {
"pageNumber": 1,
"pageSize": 10,
"totalSize": 10,
"items": [
{
"classId": "pc-cpqm0s94ckt1displ8ng",
"name": "ConcurrencyLimit",
"alias": "并发控制",
"version": "1.0.0",
"description": "通过控制并发线程数以保证系统的稳定性。适用于应用内部或下游依赖出现不稳定的场景,例如慢SQL、下游应用响应时间变长等。",
"type": "FlowControl",
"direction": "InBound",
"attachableResourceTypes": [
"Gateway"
],
"executeStage": "POST",
"executePriority": "1",
"enableLog": true,
"deprecated": false,
"configExample": "{}"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.