Searching...

Deployment

Endpoints for deploying infrastructure resources, retrieving deployment status, and listing all deployments.

get /deployments

List all deployments

Retrieve a list of all deployments.

Responses

List of deployments retrieved successfully

Response body Headers

This response does not contain any headers

Response examples

List of deployments retrieved successfully

[
  {
    "id": "deploy_123",
    "name": "My Deployment",
    "description": "This is a deployment for my infrastructure.",
    "infrastructure_id": "infra_123",
    "environment": "production",
    "strategy": "blue-green",
    "parameters": {
      "version": "v1.0.0",
      "timeout": 30,
      "tags": [
        "release",
        "production"
      ]
    },
    "status": "successful",
    "created_at": "2023-05-18T12:34:56Z",
    "updated_at": "2023-05-18T12:34:56Z"
  },
  {
    "id": "deploy_456",
    "name": "Another Deployment",
    "description": "This is another deployment for my infrastructure.",
    "infrastructure_id": "infra_456",
    "environment": "staging",
    "strategy": "rolling",
    "parameters": {
      "version": "v2.0.0",
      "timeout": 45,
      "tags": [
        "test",
        "staging"
      ]
    },
    "status": "in_progress",
    "created_at": "2023-05-19T14:56:23Z",
    "updated_at": "2023-05-19T14:56:23Z"
  }
]
post /deployments

Create a new deployment

Trigger a new deployment of infrastructure resources in the Nebularis platform.

name string required

The name of the deployment

description string

A brief description of the deployment

infrastructure_id string required

The unique identifier of the infrastructure to be deployed

environment string required

The environment type for the deployment

Enum
  • development
  • staging
  • production
strategy string required

The deployment strategy to be used

Enum
  • blue-green
  • canary
  • rolling
parameters object

Additional parameters for the deployment

version string

The version of the deployment

timeout int

Timeout for the deployment process in minutes

tags array

A list of tags associated with the deployment

Responses

Deployment created successfully

Response body Headers
id string

The unique identifier for the new deployment

name string

The name of the new deployment

description string

The description of the new deployment

infrastructure_id string

The unique identifier of the infrastructure being deployed

environment string

The environment type for the deployment

strategy string

The deployment strategy used

parameters object

Additional parameters for the deployment

version string

The version of the deployment

timeout int

Timeout for the deployment process in minutes

tags array

A list of tags associated with the deployment

status string

The current status of the deployment

Enum
  • pending
  • in_progress
  • successful
  • failed
created_at string

The date and time when the deployment was created

Format
date-time
updated_at string

The date and time when the deployment was last updated

Format
date-time

This response does not contain any headers

Invalid input

Response body Headers

This response is empty

This response does not contain any headers

Request examples

{
  "name": "My Deployment",
  "description": "This is a deployment for my infrastructure.",
  "infrastructure_id": "infra_123",
  "environment": "production",
  "strategy": "blue-green",
  "parameters": {
    "version": "v1.0.0",
    "timeout": 30,
    "tags": [
      "release",
      "production"
    ]
  }
}

Response examples

Deployment created successfully

{
  "id": "deploy_123",
  "name": "My Deployment",
  "description": "This is a deployment for my infrastructure.",
  "infrastructure_id": "infra_123",
  "environment": "production",
  "strategy": "blue-green",
  "parameters": {
    "version": "v1.0.0",
    "timeout": 30,
    "tags": [
      "release",
      "production"
    ]
  },
  "status": "pending",
  "created_at": "2023-05-18T12:34:56Z",
  "updated_at": "2023-05-18T12:34:56Z"
}
get /deployments/{id}

Get deployment status

Retrieve the status and details of a specific deployment.

id string required

The unique identifier of the deployment

Responses

Deployment status retrieved successfully

Response body Headers
id string

The unique identifier of the deployment

name string

The name of the deployment

description string

The description of the deployment

infrastructure_id string

The unique identifier of the infrastructure being deployed

environment string

The environment type for the deployment

strategy string

The deployment strategy used

parameters object

Additional parameters for the deployment

version string

The version of the deployment

timeout int

Timeout for the deployment process in minutes

tags array

A list of tags associated with the deployment

status string

The current status of the deployment

Enum
  • pending
  • in_progress
  • successful
  • failed
created_at string

The date and time when the deployment was created

Format
date-time
updated_at string

The date and time when the deployment was last updated

Format
date-time

This response does not contain any headers

Deployment not found

Response body Headers

This response is empty

This response does not contain any headers

Response examples

Deployment status retrieved successfully

{
  "id": "deploy_123",
  "name": "My Deployment",
  "description": "This is a deployment for my infrastructure.",
  "infrastructure_id": "infra_123",
  "environment": "production",
  "strategy": "blue-green",
  "parameters": {
    "version": "v1.0.0",
    "timeout": 30,
    "tags": [
      "release",
      "production"
    ]
  },
  "status": "in_progress",
  "created_at": "2023-05-18T12:34:56Z",
  "updated_at": "2023-05-18T12:34:56Z"
}
delete /deployments/{id}

Delete deployment

Delete a specific deployment.

id string required

The unique identifier of the deployment

Responses

Deployment deleted successfully

Response body Headers

This response is empty

This response does not contain any headers

Deployment not found

Response body Headers

This response is empty

This response does not contain any headers

Response examples

patch /deployments/{id}

Update deployment

Update the details of a specific deployment.

name string required

The new name for the deployment

description string required

The new description for the deployment

strategy string required

The new deployment strategy to be used

Enum
  • blue-green
  • canary
  • rolling
parameters object

Additional parameters for the deployment

version string

The new version of the deployment

timeout int

Timeout for the deployment process in minutes

tags array

A new list of tags associated with the deployment

id string required

The unique identifier of the deployment

Responses

Deployment updated successfully

Response body Headers
id string

The unique identifier of the updated deployment

name string

The name of the updated deployment

description string

The description of the updated deployment

infrastructure_id string

The unique identifier of the infrastructure being deployed

environment string

The environment type for the deployment

strategy string

The deployment strategy used

parameters object

Additional parameters for the deployment

version string

The version of the deployment

timeout int

Timeout for the deployment process in minutes

tags array

A list of tags associated with the deployment

status string

The current status of the deployment

Enum
  • pending
  • in_progress
  • successful
  • failed
created_at string

The date and time when the deployment was created

Format
date-time
updated_at string

The date and time when the deployment was last updated

Format
date-time

This response does not contain any headers

Invalid input

Response body Headers

This response is empty

This response does not contain any headers

Deployment not found

Response body Headers

This response is empty

This response does not contain any headers

Request examples

{
  "name": "Updated Deployment",
  "description": "This is an updated deployment for my infrastructure.",
  "strategy": "rolling",
  "parameters": {
    "version": "v1.1.0",
    "timeout": 40,
    "tags": [
      "updated",
      "release"
    ]
  }
}

Response examples

Deployment updated successfully

{
  "id": "deploy_123",
  "name": "Updated Deployment",
  "description": "This is an updated deployment for my infrastructure.",
  "infrastructure_id": "infra_123",
  "environment": "production",
  "strategy": "rolling",
  "parameters": {
    "version": "v1.1.0",
    "timeout": 40,
    "tags": [
      "updated",
      "release"
    ]
  },
  "status": "in_progress",
  "created_at": "2023-05-18T12:34:56Z",
  "updated_at": "2023-05-18T12:34:56Z"
}