Mengkueri pemicu yang memenuhi kondisi yang ditentukan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeTrigger |
get |
*Cluster
|
None | None |
Sintaks permintaan
GET /clusters/{cluster_id}/triggers HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
Yes |
ID kluster. |
c5cdf7e3938bc4f8eb0e44b21a80f**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
Yes |
Namespace tempat aplikasi berada. |
default |
| Type |
string |
No |
Tipe pemicu. Nilai valid:
Nilai default: Jika Anda tidak menentukan tipe pemicu, hasil kueri tidak akan difilter berdasarkan tipe pemicu. |
deployment |
| Name |
string |
Yes |
Nama aplikasi. |
web-server |
| action |
string |
No |
Tindakan pemicu. Nilai valid:
Jika Anda tidak menentukan tindakan pemicu, hasil kueri tidak akan difilter berdasarkan tindakan pemicu. |
redeploy |
Elemen respons
|
Element |
Type |
Description |
Example |
|
array |
Daftar detail hasil kueri pemicu. |
||
|
object |
触发器详情。 |
||
| id |
string |
触发器 ID。 |
75973497486****** |
| name |
string |
触发器名称。 |
test |
| cluster_id |
string |
集群 ID。 |
c259f563386444ebb8d7**** |
| project_id |
string |
触发器项目名称。 由应用所在命名空间及应用名称组成,格式为 |
default/test-app |
| type |
string |
触发器类型。 取值:
|
deployment |
| action |
string |
触发器行为,取值:
|
redeploy |
| token |
string |
Token 信息。 |
eyJhbGci*** |
Contoh
Respons sukses
JSONformat
[
{
"id": "75973497486******",
"name": "test",
"cluster_id": "c259f563386444ebb8d7****",
"project_id": "default/test-app",
"type": "deployment",
"action": "redeploy",
"token": "eyJhbGci***"
}
]
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.