Queries triggers that match specific conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeTrigger |
get |
*Cluster
|
None | None |
Request syntax
GET /clusters/{cluster_id}/triggers HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
Yes |
The cluster ID. |
c5cdf7e3938bc4f8eb0e44b21a80f**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
Yes |
The namespace to which the application belongs. |
default |
| Type |
string |
No |
The type of trigger. Valid values:
Default value: If you do not set this parameter, triggers are not filtered by type. |
deployment |
| Name |
string |
Yes |
The application name. |
web-server |
| action |
string |
No |
The action that the trigger performs. Set the value to redeploy.
If you do not specify this parameter, triggers are not filtered by action. |
redeploy |
Response elements
|
Element |
Type |
Description |
Example |
|
array |
The details of the triggers returned. |
||
|
object |
|||
| id |
string |
The ID of the trigger. |
75973497486****** |
| name |
string |
The name of the trigger. |
test |
| cluster_id |
string |
The ID of the associated cluster. |
c259f563386444ebb8d7**** |
| project_id |
string |
The name of the project. The name consists of the namespace where the application is deployed and the name of the application. The format is |
default/test-app |
| type |
string |
The type of trigger. Valid values:
Default value: |
deployment |
| action |
string |
The action that the trigger performs. The value is set to redeploy.
|
redeploy |
| token |
string |
The token information. |
eyJhbGci*** |
Examples
Success response
JSON format
[
{
"id": "75973497486******",
"name": "test",
"cluster_id": "c259f563386444ebb8d7****",
"project_id": "default/test-app",
"type": "deployment",
"action": "redeploy",
"token": "eyJhbGci***"
}
]
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.