Memanggil operasi ListSilencePolicies untuk mengkueri daftar kebijakan diam.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
Nama kebijakan diam. |
silencepolicy_test |
| Page |
integer |
Yes |
Nomor halaman yang akan dikueri. |
1 |
| Size |
integer |
Yes |
Jumlah entri yang ditampilkan per halaman. |
20 |
| IsDetail |
boolean |
No |
Apakah akan mengkueri detail kebijakan diam.
|
true |
| RegionId |
string |
No |
ID wilayah. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
78901766-3806-4E96-8E47-CFEF59E4**** |
| PageBean |
object |
Objek paginasi. |
|
| Total |
integer |
Jumlah total kebijakan diam yang dikembalikan. |
1 |
| Page |
integer |
Nomor halaman yang dikembalikan. |
1 |
| Size |
integer |
Jumlah entri yang ditampilkan per halaman. |
20 |
| SilencePolicies |
array<object> |
Daftar kebijakan diam. |
|
|
array<object> |
Objek kebijakan diam. |
||
| Id |
integer |
The ID of the silence policy. |
123 |
| Name |
string |
The name of the silence policy. |
silencepolicy_test |
| MatchingRules |
array<object> |
The matching rules. |
|
|
array<object> |
The matching rule. |
||
| MatchingConditions |
array<object> |
The matching conditions. |
|
|
object |
An array of matching condition objects. |
||
| Key |
string |
The key of the matching condition. |
altertname |
| Value |
string |
The value of the matching condition. |
test |
| Operator |
string |
The logical operator of the matching condition. Valid values:
|
eq |
| State |
string |
Indicates whether the silence policy is enabled. Valid values: enable and disable. |
enable |
| TimeSlots |
string |
Effective period. |
[{"endTime":"00:00","endWeek":"7","startTime":"00:00","startWeek":"1"}] |
| TimePeriod |
string |
The effective time. Valid values: WEEK: weekly DAY: daily |
WEEK |
| EffectiveTimeType |
string |
The effective type. Valid values: PERMANENT: The policy is effective permanently. CYCLE_EFFECT: The policy is effective cyclically. CUSTOM_TIME: The policy is effective during a custom time period. |
PERMANENT |
Contoh
Respons sukses
JSONformat
{
"RequestId": "78901766-3806-4E96-8E47-CFEF59E4****",
"PageBean": {
"Total": 1,
"Page": 1,
"Size": 20,
"SilencePolicies": [
{
"Id": 123,
"Name": "silencepolicy_test",
"MatchingRules": [
{
"MatchingConditions": [
{
"Key": "altertname",
"Value": "test",
"Operator": "eq"
}
]
}
],
"State": "enable",
"TimeSlots": "[{\"endTime\":\"00:00\",\"endWeek\":\"7\",\"startTime\":\"00:00\",\"startWeek\":\"1\"}]",
"TimePeriod": "WEEK",
"EffectiveTimeType": "PERMANENT"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.