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 klaster. |
c5cdf7e3938bc4f8eb0e44b21a80f**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
Yes |
Namespace tempat aplikasi berada. |
default |
| Type |
string |
No |
Jenis pemicu. Nilai yang valid:
Nilai default: Jika Anda tidak menentukan jenis pemicu, hasil kueri tidak akan difilter berdasarkan jenis pemicu. |
deployment |
| Name |
string |
Yes |
Nama aplikasi. |
web-server |
| action |
string |
No |
Tindakan pemicu. Nilai yang 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 |
Detail pemicu. |
||
| id |
string |
ID pemicu. |
75973497486****** |
| name |
string |
Nama pemicu. |
test |
| cluster_id |
string |
ID klaster. |
c259f563386444ebb8d7**** |
| project_id |
string |
Nama proyek pemicu. Terdiri dari namespace dan nama aplikasi tempat aplikasi berada, dengan format |
default/test-app |
| type |
string |
Jenis pemicu. Nilai yang valid:
|
deployment |
| action |
string |
Tindakan pemicu, nilai yang valid:
|
redeploy |
| token |
string |
Informasi 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.