Skip to content

Function: getDeploymentGatingStatusByKey() ​

ts
function getDeploymentGatingStatusByKey(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  deploymentSequenceNumber?: number;
  details?: object[];
  environmentId?: string;
  gatingStatus?: "invalid" | string & object | "allowed" | "prevented" | "awaiting";
  pipelineId?: string;
  updatedTimestamp?: Date;
}>;

Defined in: src/agile/api/deployments.ts:126

Retrieve the Deployment gating status for the given pipelineId + environmentId + deploymentSequenceNumber combination. Only apps that define the jiraDeploymentInfoProvider module can access this resource. This resource requires the 'READ' scope.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ deploymentSequenceNumber: number; environmentId: string; pipelineId: string; }-
parameters.deploymentSequenceNumbernumberThe Deployment's deploymentSequenceNumber.
parameters.environmentId?stringThe ID of the Deployment's environment.
parameters.pipelineId?stringThe ID of the Deployment's pipeline.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; deploymentSequenceNumber?: number; details?: object[]; environmentId?: string; gatingStatus?: "invalid" | string & object | "allowed" | "prevented" | "awaiting"; pipelineId?: string; updatedTimestamp?: Date; }>