Triggers
This contains APIs related to Triggers.
Gets the paginated list of triggers for accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier.
Identifier of the target pipeline
025This contains details of the Trigger Filter
This is the list of the Trigger names on which the filter will be applied.
This is the list of the Trigger identifiers on which the filter will be applied.
This specifies the corresponding Entity of the filter.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the paginated list of triggers for accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier.
GET /gateway/pipeline/api/triggers?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 149
{
"triggerNames": [
"text"
],
"triggerIdentifiers": [
"text"
],
"triggerTypes": [
"Webhook"
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "Connector"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Identifier of the target pipeline
falsetrueBad Request
This is Failure entity as defied in Harness
Internal server error
Returns details of the created Trigger.
POST /gateway/pipeline/api/triggers?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 78
"trigger:\n name: mytrigger\n identifier: mytrigger\n enabled: true\n ..."{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Identifier of the target pipeline
falsetrueTrigger YAML and optional executor identity for create/update
Trigger definition YAML
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns details of the created Trigger.
POST /gateway/pipeline/api/triggers/v2?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"yaml": "...",
"executorInfo": {
"uuid": "user-id",
"type": "USER"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Gets the trigger by accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier and triggerIdentifier.
Identifier of the target pipeline under which trigger resides
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the trigger with the accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier and triggerIdentifier.
GET /gateway/pipeline/api/triggers/{triggerIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Identifier of the target pipeline under which trigger resides
falseBad Request
This is Failure entity as defied in Harness
Internal server error
Returns the updated trigger
PUT /gateway/pipeline/api/triggers/{triggerIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 78
"trigger:\n name: mytrigger\n identifier: mytrigger\n enabled: true\n ..."{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Identifier of the target pipeline under which trigger resides.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the boolean status.
DELETE /gateway/pipeline/api/triggers/{triggerIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Lists all the Triggers for the given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Trigger catalogue response
GET /gateway/pipeline/api/triggers/catalog?accountIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Fetches Trigger details for a specific accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier, triggerIdentifier.
Identifier of the target pipeline
Bad Request
This is Failure entity as defied in Harness
Internal server error
Fetches Trigger details for a specific accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier, triggerIdentifier.
GET /gateway/pipeline/api/triggers/{triggerIdentifier}/details?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Get event history for a trigger
Identifier of the target pipeline under which trigger resides
Search term to filter out pipelines based on pipeline name, identifier, tags.
Page Index of the results to fetch.Default Value: 0
0Results per page
10Sort criteria for the elements.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Trigger catalogue response
GET /gateway/pipeline/api/triggers/{triggerIdentifier}/eventHistory?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Identifier of the target pipeline under which trigger resides
falseTrigger YAML and optional executor identity for create/update
Trigger definition YAML
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the updated trigger
PUT /gateway/pipeline/api/triggers/{triggerIdentifier}/v2?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"yaml": "...",
"executorInfo": {
"uuid": "user-id",
"type": "USER"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?