The Deployment
object type represents a deployment object. atlassian:deployment
should be used to
ingest deployment-specific fields.
1 2objects {} ├─ schemaVersion (string) [Required] ├─ id (string) [Required] ├─ updateSequenceNumber (long) [Required] ├─ displayName (string) [Required] ├─ description (string) [Optional] ├─ url (string) [Required] ├─ createdAt (Instant (ISO8601 / RFC3339)) [Required] └─ createdBy [] [Optional] ├─ accountId (string) └─ ari (string) └─ lastUpdatedAt (Instant (ISO8601 / RFC3339)) [Required] └─ lastUpdatedBy [] [Required] ├─accountId (string) └─ ari └─ permissions └─ accessControls └─ principals └─type └─ associations [] [Optional] ├─ associationType (string) └─ values [] atlassian:deployment ├─ deploymentSequenceNumber (integer) [Required] ├─ label (string) [Optional] ├─ state (string) [Required] ├─ duration (integer) [Optional] ├─ pipeline (PipelineDetails) [Optional] ├─ id (string) [Required] ├─ displayName (string) [Required] └─ url (string) [Required] ├─ environment (EnvironmentDetails) [Required] ├─ id (string) [Required] ├─ displayName (string) [Required] └─ type (string) [Required] ├─ commands (List<Command>) [Optional] ├─ command (string) [Required] ├─ triggeredBy (UserReference) [Optional] ├─ accountId (string) [Optional] ├─ email (string) [Optional] ├─ externalId (string) [Optional] ├─ ari (string) [Optional] ├─ name (string) [Optional] ├─ userName (string) [Optional] ├─ avatar (string) [Optional] └─ url (string) [Optional] └─ region (string) [Optional]
You may send related objects like builds or repositories as separate objects in the same payload or in separate requests.
Property | Type | Required | Description |
---|---|---|---|
schemaVersion |
| Yes | The schema version of the object. |
id |
| Yes | The ID of the object in the source system. |
updateSequenceNumber | long | Yes | A sequence number to compare when writing to the database. Objects are written following
a last write wins strategy, therefore an object with a greater UpdateSequenceNumber
is considered a more recently updated object. |
displayName | string | Yes | The display name of the object. |
description | string | No | The description of the object. |
url | string | Yes | The URL from the provider which the object is accessible from. |
createdAt | string | Yes |
The date the object was created. Format: Instant (ISO8601 / RFC3339) |
createdBy | user | No |
The user that created the object. See User to learn more. |
lastUpdatedAt | string | Yes |
The date the object was last updated. Format: Instant (ISO8601 / RFC3339) |
lastUpdatedBy | user | No |
The user that last updated the object. See User to learn more. |
owners | list<User> | No | List of users that own the object. |
thumbnail | thumbnail | No |
The thumbnail of the object. See Thumbnail to learn more. |
parentKey | entityKey | No |
The ID of the parent object. If null, it is a standalone object. See Entity key to learn more. |
containerKey | entityKey | No |
The container identifier that this object belongs to. See Entity key to learn more. |
permissions | list<Permissions> | Yes |
The permissions configuration of the object. See Permissions to learn more. |
associations | association | No |
List of objects associated with the object. Generally used to link an external object to a Atlassian object. See Association to learn more. |
Property | Type | Required | Description |
---|---|---|---|
deploymentSequenceNumber |
| Yes | This is the identifier for the Deployment. It must be unique for the specified Pipeline and Environment. It must be a monotonically increasing number, as this is used to sequence the Deployments. |
label |
| No | A descriptive label for the deployment. |
state |
| Yes |
The current state of the deployment. Allowed values: |
duration | integer | No | The duration of the deployment. |
pipeline | PipelineDetails | No | The pipeline associated with this deployment. |
pipeline.id | string | Yes |
The unique identifier for the pipeline. Maximum length: 255 |
pipeline.displayName | string | Yes |
The display name of the pipeline. Maximum length: 255 |
pipeline.url | string | Yes | The URL of the pipeline. |
environment | EnvironmentDetails | Yes | The environment where the deployment is happening. |
environment.id | string | Yes |
The unique identifier for the environment. Maximum length: 255 |
environment.displayName | string | Yes |
The display name of the environment. Maximum length: 255 |
environment.type | string | Yes |
The type of environment. Allowed values: |
commands | List<Command> | No | List of commands executed during the deployment. |
commands.command | string | Yes | The command that was executed. |
triggeredBy | UserReference | No | The user who triggered the deployment. |
region | string | No | The region where the deployment is taking place. |
1 2{ "objects" : [ { "schemaVersion" : "2.0", "id" : "pipelineId/e9c906a7-451f-4fa6-ae1a-c389e2e2d87c/environmentId/8ec94d72-a4fc-4ac0-b31d-c5a595f373ba/deploymentSequenceNumber/100", "updateSequenceNumber" : 1, "displayName" : "Test Deployment", "description" : "A test deployment to staging", "url" : "https://entity.example.com/1", "createdAt" : "2024-07-01T05:00:45Z", "createdBy" : { "externalId" : "external-id-1" }, "lastUpdatedAt" : "2024-07-09T14:27:37.000Z", "lastUpdatedBy" : { "externalId" : "external-id-1" }, "containerKey" : { "type" : "atlassian:repository", "value" : { "repositoryId" : "my-repo-1" } }, "permissions" : [ { "action" : "read", "accessControls" : [ { "principals" : [ { "type" : "EVERYONE" } ] } ] } ], "atlassian:deployment" : { "deploymentSequenceNumber" : 100, "pipeline" : { "id" : "e9c906a7-451f-4fa6-ae1a-c389e2e2d87c", "displayName" : "Test Deployment", "url" : "http://mydeployer.com/project1" }, "environment" : { "id" : "8ec94d72-a4fc-4ac0-b31d-c5a595f373ba", "displayName" : "US East", "type" : "staging" }, "label" : "Release 2018-01-20_08-47-bc2421a", "state" : "in_progress", "duration" : 47, "commands" : [ { "command" : "initiate_deployment_gating" } ], "triggeredBy" : { "accountId" : "5b10ac8d82e05b22cc7d4ef5", "email" : "author@example.com" } } } ], "operationType" : "NORMAL" }
Rate this page: