Stack Builds

Endpoints for managing builds of a Cycle stack, including deploying a stack build to an environment.

Look Up Stack Build

Look up a Stack Build using only the Build ID, instead of requiring a Stack ID as well.

Requires the stacks-view capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
buildId
required
string

The ID of the Build.

Responses
200

Returns a Stack Build.

default

General error response from the platform

get/v1/stacks/builds/{buildId}
Response samples
application/json
{
  • "data": {
    }
}

List Builds

Requires the stacks-view capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
stackId
required
string

The ID of the Stack.

query Parameters
meta
Array of strings

A comma separated list of meta values. Meta values will show up under a resource's meta field. In the case of applying a meta to a collection of resources, each resource will have it's own relevant meta data. In some rare cases, meta may not apply to individual resources, and may appear in the root document. These will be clearly labeled.

Items Value: "containers_count"
object

Filter Field

The filter field is a key-value object, where the key is what you would like to filter, and the value is the value you're filtering for.

sort
Array of strings

An array of sort values. To sort descending, put a - in front of the value, e.g. -id.

object

In a list return, the data associated with the page number and size returned. 20 results per page, page 2 would be page[size]=20&page[number]=2

Responses
200

Returns a list of Stack Builds.

default

General error response from the platform

get/v1/stacks/{stackId}/builds
Response samples
application/json
{
  • "data": [
    ]
}

Create Build

Requires the stacks-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
stackId
required
string

The ID of the Stack

Request Body schema: application/json

Parameters for creating a new Stack Build.

object (StackBuildAbout)

Information about the stack build.

object (StackBuildInstructions)

Additional instructions used when generating this stack build.

Responses
201

Returns a Stack Build.

default

General error response from the platform

post/v1/stacks/{stackId}/builds
Request samples
application/json
{
  • "about": {
    },
  • "instructions": {
    }
}
Response samples
application/json
{
  • "data": {
    }
}

Get Stack Build

Requires the stacks-view capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
stackId
required
string

The ID of the Stack.

buildId
required
string

The ID of the Build.

Responses
200

Returns a Stack Build.

default

General error response from the platform

get/v1/stacks/{stackId}/builds/{buildId}
Response samples
application/json
{
  • "data": {
    }
}

Delete Stack Build

Requires the stacks-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
stackId
required
string

The ID of the Stack.

buildId
required
string

The ID of the Build.

Responses
200

Returns a Job Descriptor.

default

General error response from the platform

delete/v1/stacks/{stackId}/builds/{buildId}
Response samples
application/json
{
  • "data": {
    }
}

Create Stack Build Job

Requires the stacks-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
stackId
required
string

The ID of the Stack.

buildId
required
string

The ID of the Build.

Request Body schema: application/json

Parameters for creating a new Stack Build Job.

action
required
string

The job to do.

Responses
202

Returns a Job Descriptor.

default

General error response from the platform

post/v1/stacks/{stackId}/builds/{buildId}/tasks
Request samples
application/json
{
  • "action": "generate"
}
Response samples
application/json
{
  • "data": {
    }
}