Develop > API calls > Release gate APIs > Creates a custom action

Creates a custom action

Creates a custom action for a specified lifecycle stage of an application design.

Ensure that you have created a deploy action before creating a custom action.

URI Method Parameters Returns

http://[host]:[port]/csa/api/codar/release-gate/gate-action/custom

POST

 

200 - updated
400 - bad request
401 - Authorization failure
404 - not found
500 - Server Exception

Example

The following URL was sent for the custom action:

https://localhost:8444/csa/api/codar/release-gate/gate-action/custom

The following JSON was sent for the custom action:

{ "name": "Custom action3", "description": "Custom action for test" , "enabled": "true", "applicationDesignId": "4ed560b1-a533-43c0-ae7b-eb635dd3a3cc", "stage": "DEVELOPMENT", "notifyOnSuccess": "false", "notifyOnFailure": "false", "ignoreOnFailure": "false", "rejectOnFailure": "false", "deployActionId": "1ce957c0-f49c-4048-9989-fedcffb7bda8", "engineProcessId": "22e2317c-20d8-4efc-b572-332f3222a801", "engineProcessName": "ExecuteDevelopmentTest", "properties": [ 0: {name: "OutputFilePath", mandatory: false, description: ""} 1: {name: "LIFECYCLE_PHASE", mandatory: false, description: ""} ] }

The following is the response JSON for the custom action:

{ "@self" : "/csa/codar/release-gate/gate-action/7ed36412-2289-4822-a66d-70c85292dc49", "@type" : "urn:x-hp:2012:software:cloud:data_model:ReleaseGateAction", "id" : "7ed36412-2289-4822-a66d-70c85292dc49", "name" : "Custom action3", "description" : "Custom action for test", "type" : "CUSTOM", "createdBy" : "admin", "createdOn" : "2015-12-02T10:07:41.624Z" }