Manual Trigger Using POST

Manual Trigger Using POST

Manual trigger Gerrit event

Request
URI
POST
https://{api_host}/codestream/api/gerrit-events
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /codestream/api/about


Request Body

gerritManualTrigger

GerritManualTrigger of type(s) application/json
Required
{
    "changeId": "I522eab3b678dedd68dad3e2c04d3cccc0eb9fa00",
    "project": "Gerrit-Trigger-Project",
    "trigger": "Gerrit-Trigger"
}
string
changeId
Required

The ChangeSet Id corresponding to which the manual trigger has to be performed.

string
project
Required

The tango project to which Gerrit Trigger belongs to.

string
trigger
Required

Name of the Gerrit Trigger for which event has to be analysed.

Authentication
This operation uses the following authentication methods.
Responses
200

'Success' with Manual trigger Gerrit event

Returns ManualTriggerResponse of type(s) */*
"ManualTriggerResponse Object"
string
message
Optional

Message to acknowledge success or failure of action.

array of string
pipelinesTriggered
Optional

List of pipeline which got manually triggered.


401

Unauthorized Request

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure

500

Server Error

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"changeId:"string","project:"string","trigger:"string"}' https://{api_host}/codestream/api/gerrit-events
                
Triggers Operations
GET
Get All Events Using GET
POST
Manual Trigger Using POST
GET
Get Event By ID Using GET
POST
Resume Or Rerun Event Using POST 1
DELETE
Delete Using DELETE 4
GET
Get All Gerrit Listeners Using GET
POST
Create Gerrit Listener Using POST
POST
Validate Gerrit Listener Using POST
GET
Get Gerrit Listener By ID Using GET
POST
Clone Listener Using POST
PUT
Update By Id Using PUT 2
DELETE
Delete By Id Using DELETE 1
PATCH
Patch By Id Using PATCH 1
GET
Get Gerrit Projects Using GET
GET
Get Gerrit Listener By Name Using GET
PUT
Update By Name Using PUT 2
DELETE
Delete By Name Using DELETE 1
PATCH
Patch By Name Using PATCH 1
GET
Get Gerrit Projects Using GET 1
GET
Get All Using GET 2
POST
Create Using POST 2
GET
Get Trigger Using GET
POST
Clone Trigger Using POST
PUT
Update By Id Using PUT 3
DELETE
Delete Using DELETE 5
PATCH
Patch By Id Using PATCH 2
GET
Get Trigger By Name Using GET
PUT
Update By Name Using PUT 3
DELETE
Delete By Name Using DELETE 2
PATCH
Patch By Name Using PATCH 2
GET
Get All Git Events Using GET
GET
Get Git Event By ID Using GET
POST
Resume Or Rerun Event Using POST 2
DELETE
Delete Using DELETE 6
GET
Get All Git Webhooks Using GET
POST
Create Git Webhook Using POST
GET
Get Git Webhook By ID Using GET
PUT
Update Using PUT 1
DELETE
Delete Using DELETE 7
GET
Get Git Webhook By Name Using GET
PUT
Update By Name Using PUT 4
DELETE
Delete By Name Using DELETE 3
GET
Get All Docker Events Using GET
GET
Get Docker Event By ID Using GET
POST
Resume Or Rerun Event Using POST
DELETE
Delete Using DELETE
GET
Get All Docker Registry Webhooks Using GET
POST
Create Docker Registry Webhook Using POST
GET
Get Docker Registry Webhook By ID Using GET
PUT
Update Using PUT
DELETE
Delete By Id Using DELETE
PATCH
Patch By Id Using PATCH
GET
Get Docker Registry Webhook By Name Using GET
PUT
Update By Name Using PUT
DELETE
Delete By Name Using DELETE
PATCH
Patch By Name Using PATCH