This contains details of Trigger filters based on Trigger Types and Trigger Names
Bad Request
Internal server error
Returns the paginated list of triggers for accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier.
{- "triggerNames": [
- "string"
], - "triggerIdentifiers": [
- "string"
], - "triggerTypes": [
- "Webhook"
], - "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Connector"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
Returns details of the created Trigger.
Sample Triggers YAML
"trigger:\n name: Trigger\n identifier: Trigger\n enabled: true\n orgIdentifier: default\n projectIdentifier: Terraform_Provider\n pipelineIdentifier: Terraform_NG_Acc_Tests_With_Notifications\n source:\n type: Scheduled\n spec:\n type: Cron\n spec:\n expression: 0 8,20 * * *\n inputYaml: |\n pipeline:\n identifier: Terraform_NG_Acc_Tests_With_Notifications\n properties:\n ci:\n codebase:\n build:\n type: branch\n spec:\n branch: main"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
Returns the trigger with the accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier and triggerIdentifier.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Triggers YAML
Bad Request
Internal server error
Returns the updated trigger
Sample Triggers YAML
"trigger:\n name: Trigger\n identifier: Trigger\n enabled: true\n orgIdentifier: default\n projectIdentifier: Terraform_Provider\n pipelineIdentifier: Terraform_NG_Acc_Tests_With_Notifications\n source:\n type: Scheduled\n spec:\n type: Cron\n spec:\n expression: 0 8,20 * * *\n inputYaml: |\n pipeline:\n identifier: Terraform_NG_Acc_Tests_With_Notifications\n properties:\n ci:\n codebase:\n build:\n type: branch\n spec:\n branch: main"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
Returns the boolean status.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Lists all the Triggers for the given Account ID.
Bad Request
Internal server error
Returns the Trigger catalogue response
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
Fetches Trigger details for a specific accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier, triggerIdentifier.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Get event history for a trigger
Bad Request
Internal server error
Returns the Trigger catalogue response
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}