Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
Top
Top

...

Each function returns a JSON approval task object. The approval task object has these attributes:

Application Approval Task

AttributesTypeDescriptionsnapshotIdLongThe snapshot id of the release approval task.pipelineNameStringThe pipeline name of the release approval task.environmentNameStringThe environment name of the release approval task.gateNameStringThe gate name of the release approval task.releaseNameStringThe release name of the release approval task.releaseDefinitionIdLongThe release definition Id of the release approval task. releaseSnapshotStringThe release snapshot of the release approval task.externalIdStringThe external Id of the release approval task. If the release
AttributesTypeDescription
taskIdLongThe task id of the approval task.
statusStringThe status of the approval task.
environmentIdLongThe environment Id of the approval task.
requestTypeStringThe request type of the approval task. The request type can be a release, application, or project request.
flexFieldsList<FlexField>The list of flex fields for the approval task.
requestorPathStringThe requestor path of the approval task. 

Each approval task can be one of three different types: Release, Application, and Project.

Release Approval Task

...

externalIdStringThe externalId of the approval task. If the approval task is not an external approval task this will be null.
externalSystemIdLongThe externalSystemId of the approval task. If the approval task is not an external approval task this will be null.
externalSystemTypStringThe externalSystemType of the approval task. If the approval task is not an external approval task this will be null.
externalSystemIdStringThe external System Id of the release approval task. If the release approval task is not an external approval this will be null.externalSystemTypeStringThe external System type

Each approval task can be one of three different types: Release, Application, and Project.

Release Approval Task

 If is not an external approval this will be nullpipelineStageGateExecId pipeline stage execution Id
AttributesTypeDescription
snapshotIdLongThe snapshot id of the release approval task.
pipelineNameStringThe pipeline name of the release approval task.
environmentNameStringThe environment name of the release approval task.
gateNameLongStringThe gate name of the release approval task.

Project Approval Task

The snapshot id pipelineName pipeline name environmentName environment name gateName gate name The release name of the release
AttributesTypeDescription
snapshotIdLongreleaseNameStringThe release name of the release approval task.
releaseDefinitionIdStringLongThe release definition Id of the release approval task. 
releaseSnapshotStringThe release snapshot of the release approval task.
pipelineStageGateExecIdStringLongThe pipeline stage execution Id of the release approval task.releaseNameString

Application Approval Task

releaseDefinitionId release definition Id release  releaseSnapshot release snapshot release externalId external release If the release approval task is not an external approval this will be null.externalSystemId
AttributesTypeDescription
applicationIdLongThe application id of the application approval task.
applicationNameLongStringThe application name of the application approval task.
folderVersionNameStringThe folder version name of the application approval task.
folderRequestIdStringThe folder request Id of the application approval task.

Project Approval Task

external System Id release If the release approval task is not an external approval this will be null.externalSystemType external System type release . If the release approval task is not an external approval this will be nullpipelineStageGateExecId pipeline stage execution Id release
AttributesTypeDescription
projectIdLongThe project id of the project approval task.
projectNameStringThe prohect name of the project approval task.
projectVersionNameStringThe project version name of the project approval task.
workflowRequestIdLongThe workflow request id of the project approval task.

Back to Top

...

GET

GET by TaskId

...

Parameter

Type

Required

Description

Id

URLYesThis is a URL parameter for the Id which is used to find and return an approval task.

Example

If we had an application approval task in our database with an Id of 10000 and had the following attributes

...

GET (Using Query Parameters)

This GET service will return a list of approval tasks in the form of JSON objects based on a query parameter for the display name. Approval tasks are only returned if they contain the specified parameter. If no query parameters are given this request will return the entire list of approval tasks.

Info
titleAPI URLs

http://host:port/flexdeploy/rest/tasks/approval?

Append the following character sequences to the above URL to specify Query parameters.

workflowrequestid workflowRequestId = {workflowRequestId}

foldererquestid folderRequestId = {folderRequestId}

pipelinestageexecid pipelineStageExecId = {pipelineStageExecId}

projectid projectId = {projectId}

applicationid applicationId = {applicationId}

environmentid environmentId = {environmentId}

externalId = {externalId}

externalSystemType = {externalSystemType}

externalSystemId = {externalSystemId}

Examples:
To return all of the approval tasks:

http://host:port/flexdeploy/rest/tasks/approval

To search by project Id only:

http://host:port/flexdeploy/rest/tasks/approval?projectid=11001

...

Parameter

Type

Required

Description

workflowrequestidworkflowRequestIdURLNoThis is a URL query parameter for the workflow request Id which is used to search the approval tasks.
foldererquestid

folderRequestId

URLNoThis is a URL query parameter for the folder request Id which is used to search the approval tasks.
pipelinestageexecidpipelineStageExecIdURLNoThis is a URL query parameter for the pipeline stage execution Id which is used to search the approval tasks.
projectidprojectIdURLNoThis is a URL query parameter for the project Id which is used to search the approval tasks.
applicationidapplicationIdURLNoThis is a URL query parameter for the application Id which is used to search the approval tasks.
environmentidenvironmentIdURLNoThis is a URL query parameter for the environment Id which is used to search the approval tasks.
externalIdURLNoThis is a URL query paramter for the external Id which is used to search the approval tasks.
externalSystemTypeURLNoThis is a URL query parameter for the external system type which is used to search the approval tasks.
externalSystemIdURLNo This is a URL query parameter for the external system Id which is used to seach the approval tasks.

...

Info
titleAPI URLs

http://host:port/flexdeploy/rest/tasks/approval/approve?

Append the following character sequences to the above URL to specify Query parameters.

workflowrequestid workflowRequestId = {workflowRequestId}

foldererquestid folderRequestId = {folderRequestId}

pipelinestageexecid pipelineStageExecId = {pipelineStageExecId}

projectid projectId = {projectId}

applicationid applicationId = {applicationId}

environmentid environmentId = {environmentId}

externalId = {externalId}

externalSystemType = {externalSystemType}

externalSystemId = {externalSystemId}


Info
titleReturned Tasks

Only one approval task can be approved at a time. If more than one task matches the query parameters an exception will be thrown.

...

Parameter

Type

Required

Description

workflowrequestidworkflowRequestIdURLNoThis is a URL query parameter for the workflow request Id which is used to search the approval tasks.
foldererquestidfolderRequestIdURLNoThis is a URL query parameter for the folder request Id which is used to search the approval tasks.
pipelinestageexecidpipelineStageExecIdURLNoThis is a URL query parameter for the pipeline stage execution Id which is used to search the approval tasks.
projectidprojectIdURLNoThis is a URL query parameter for the project Id which is used to search the approval tasks.
applicationidapplicationIdURLNoThis is a URL query parameter for the application Id which is used to search the approval tasks.
environmentidenvironmentIdURLNoThis is a URL query parameter for the environment Id which is used to search the approval tasks.
externalId URLNoThis is a URL query parameter for the external Id which is used to search the approval tasks.
externalSystemTypeURLNoThis is a URL query parameter for the external Id which is used to search the approval tasks.
externalSystemId URLNoThis is a URL query parameter for the external Id which is used to search the approval tasks.

...

Info
titleAPI URLs

http://host:port/flexdeploy/rest/tasks/approval/reject?

Append the following character sequences to the above URL to specify Query parameters.

workflowrequestid workflowRequestId = {workflowRequestId}

foldererquestid folderRequestId = {folderRequestId}

pipelinestageexecid pipelineStageExecId = {pipelineStageExecId}

projectid projectId = {projectId}

applicationid applicationId = {applicationId}

environmentid environmentId = {environmentId}

externalId = {externalId}

externalSystemType = {externalSystemType}

externalSystemId = {externalSystemId}


Info
titleReturned Tasks

Only one approval task can be rejected at a time. If more than one task matches the query parameters an exception will be thrown.

...

Parameter

Type

Required

Description

workflowrequestidworkflowRequestIdURLNoThis is a URL query parameter for the workflow request Id which is used to search the approval tasks.
foldererquestidfolderRequestIdURLNoThis is a URL query parameter for the folder request Id which is used to search the approval tasks.
pipelinestageexecidpipelineStageExecIdURLNoThis is a URL query parameter for the pipeline stage execution Id which is used to search the approval tasks.
projectidprojectIdURLNoThis is a URL query parameter for the project Id which is used to search the approval tasks.
applicationidapplicationIdURLNoThis is a URL query parameter for the application Id which is used to search the approval tasks.
environmentidenvironmentIdURLNoThis is a URL query parameter for the environment Id which is used to search the approval tasks.
externalIdURL NoThis is a URL query parameter for the external Id which is used to search the approval tasks.
externalSystemTypeURLNoThis is a URL query paramater for the external Id which is used to search the approval tasks.
externalSystemIdURL NoThis is a URL query parameter for the external Id which is used to search the approval tasks.

...