Requires the stacks-view
permission.
Returns a list of Stacks.
General error response from the platform
{- "data": [
- {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "hub_id": "651586fca6078e98982dbd90",
- "creator": {
- "type": "account",
- "id": "651586fca6078e98982dbd90"
}, - "source": {
- "type": "git-repo",
- "details": {
- "stack_file": "string",
- "url": "string",
- "branch": "string",
- "auth": {
- "type": "http",
- "credentials": {
- "username": "string",
- "password": "string"
}
}, - "ref": {
- "type": "string",
- "value": "string"
}
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "variables": {
- "property1": "string",
- "property2": "string"
}, - "acl": {
- "roles": {
- "property1": {
- "view": true,
- "modify": true,
- "manage": true
}, - "property2": {
- "view": true,
- "modify": true,
- "manage": true
}
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "last_build": "2021-01-30T08:30:00Z"
}, - "meta": {
- "containers_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "builds_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}
}
}
], - "includes": {
- "creators": {
- "accounts": {
- "property1": {
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string"
}, - "id": "string",
- "events": {
- "property1": "2021-01-30T08:30:00Z",
- "property2": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}, - "property2": {
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string"
}, - "id": "string",
- "events": {
- "property1": "2021-01-30T08:30:00Z",
- "property2": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}
}, - "employees": {
- "property1": {
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string"
}, - "id": "string",
- "events": {
- "property1": "2021-01-30T08:30:00Z",
- "property2": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}, - "property2": {
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string"
}, - "id": "string",
- "events": {
- "property1": "2021-01-30T08:30:00Z",
- "property2": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}
}, - "visitors": {
- "property1": {
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string"
}, - "id": "string",
- "events": {
- "property1": "2021-01-30T08:30:00Z",
- "property2": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}, - "property2": {
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string"
}, - "id": "string",
- "events": {
- "property1": "2021-01-30T08:30:00Z",
- "property2": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}
}, - "environments": {
- "property1": {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "cluster": "string",
- "about": {
- "description": "string",
- "favorite": true
}, - "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "hub_id": "651586fca6078e98982dbd90",
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}, - "features": {
- "legacy_networking": true,
- "monitoring": {
- "tier": "limited"
}
}, - "services": {
- "loadbalancer": {
- "enable": true,
- "container_id": "string",
- "high_availability": true,
- "auto_update": true,
- "config": {
- "ipv4": null,
- "ipv6": null,
- "type": null,
- "details": null,
- "bind_host": null
}
}, - "discovery": {
- "enable": true,
- "container_id": "string",
- "high_availability": true,
- "auto_update": true,
- "config": {
- "empty_set_delay": null,
- "hosts": { },
- "custom_resolvers": [ ]
}
}, - "vpn": {
- "enable": true,
- "container_id": "string",
- "auto_update": true,
- "config": {
- "allow_internet": null,
- "auth": { }
}
}, - "scheduler": {
- "enable": true,
- "container_id": "string",
- "high_availability": true,
- "auto_update": true,
- "config": {
- "public": null,
- "access_keys": [ ]
}
}
}, - "acl": {
- "roles": {
- "property1": {
- "view": null,
- "modify": null,
- "manage": null
}, - "property2": {
- "view": null,
- "modify": null,
- "manage": null
}
}
}, - "private_network": {
- "vxlan_tag": 0,
- "subnet": "string",
- "ipv6": {
- "ip": "fd00::21:0:0:0",
- "cidr": "fd00::21:0:0:0/96"
}, - "legacy": {
- "subnet": 0,
- "ipv4": {
- "ip": null,
- "cidr": null
}
}
}, - "deployments": {
- "tags": {
- "property1": "v1.2.3-dev",
- "property2": "v1.2.3-dev"
}
}, - "meta": {
- "containers_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "instances_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "containers": [
- {
- "id": null,
- "name": null,
- "state": null,
- "image": null,
- "environment": null
}
]
}
}, - "property2": {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "cluster": "string",
- "about": {
- "description": "string",
- "favorite": true
}, - "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "hub_id": "651586fca6078e98982dbd90",
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}, - "features": {
- "legacy_networking": true,
- "monitoring": {
- "tier": "limited"
}
}, - "services": {
- "loadbalancer": {
- "enable": true,
- "container_id": "string",
- "high_availability": true,
- "auto_update": true,
- "config": {
- "ipv4": null,
- "ipv6": null,
- "type": null,
- "details": null,
- "bind_host": null
}
}, - "discovery": {
- "enable": true,
- "container_id": "string",
- "high_availability": true,
- "auto_update": true,
- "config": {
- "empty_set_delay": null,
- "hosts": { },
- "custom_resolvers": [ ]
}
}, - "vpn": {
- "enable": true,
- "container_id": "string",
- "auto_update": true,
- "config": {
- "allow_internet": null,
- "auth": { }
}
}, - "scheduler": {
- "enable": true,
- "container_id": "string",
- "high_availability": true,
- "auto_update": true,
- "config": {
- "public": null,
- "access_keys": [ ]
}
}
}, - "acl": {
- "roles": {
- "property1": {
- "view": null,
- "modify": null,
- "manage": null
}, - "property2": {
- "view": null,
- "modify": null,
- "manage": null
}
}
}, - "private_network": {
- "vxlan_tag": 0,
- "subnet": "string",
- "ipv6": {
- "ip": "fd00::21:0:0:0",
- "cidr": "fd00::21:0:0:0/96"
}, - "legacy": {
- "subnet": 0,
- "ipv4": {
- "ip": null,
- "cidr": null
}
}
}, - "deployments": {
- "tags": {
- "property1": "v1.2.3-dev",
- "property2": "v1.2.3-dev"
}
}, - "meta": {
- "containers_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "instances_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "containers": [
- {
- "id": null,
- "name": null,
- "state": null,
- "image": null,
- "environment": null
}
]
}
}
}, - "api_keys": {
- "property1": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "hub_id": "651586fca6078e98982dbd90",
- "secret": "string",
- "permissions": {
- "all_environments": true,
- "environments": [
- {
- "id": null,
- "manage": null
}
]
}, - "capabilities": {
- "all": true,
- "specific": [
- "string"
]
}, - "ips": [
- "string"
], - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "property1": "2021-01-30T08:30:00Z",
- "property2": "2021-01-30T08:30:00Z"
}
}, - "property2": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "hub_id": "651586fca6078e98982dbd90",
- "secret": "string",
- "permissions": {
- "all_environments": true,
- "environments": [
- {
- "id": null,
- "manage": null
}
]
}, - "capabilities": {
- "all": true,
- "specific": [
- "string"
]
}, - "ips": [
- "string"
], - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "property1": "2021-01-30T08:30:00Z",
- "property2": "2021-01-30T08:30:00Z"
}
}
}
}
}
}
Requires the stacks-manage
capability.
Parameters for creating a new Stack.
Returns a Stack.
General error response from the platform
{- "name": "string",
- "identifier": "string",
- "acl": {
- "roles": {
- "property1": {
- "view": true,
- "modify": true,
- "manage": true
}, - "property2": {
- "view": true,
- "modify": true,
- "manage": true
}
}
}, - "variables": {
- "property1": "string",
- "property2": "string"
}, - "source": {
- "type": "git-repo",
- "details": {
- "stack_file": "string",
- "url": "string",
- "branch": "string",
- "auth": {
- "type": "http",
- "credentials": {
- "username": "string",
- "password": "string"
}
}, - "ref": {
- "type": "string",
- "value": "string"
}
}
}
}
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "hub_id": "651586fca6078e98982dbd90",
- "creator": {
- "type": "account",
- "id": "651586fca6078e98982dbd90"
}, - "source": {
- "type": "git-repo",
- "details": {
- "stack_file": "string",
- "url": "string",
- "branch": "string",
- "auth": {
- "type": "http",
- "credentials": {
- "username": "string",
- "password": "string"
}
}, - "ref": {
- "type": "string",
- "value": "string"
}
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "variables": {
- "property1": "string",
- "property2": "string"
}, - "acl": {
- "roles": {
- "property1": {
- "view": true,
- "modify": true,
- "manage": true
}, - "property2": {
- "view": true,
- "modify": true,
- "manage": true
}
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "last_build": "2021-01-30T08:30:00Z"
}, - "meta": {
- "containers_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "builds_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}
}
}
}
Requires the stacks-view
capability.
Returns a Stack resource.
General error response from the platform
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "hub_id": "651586fca6078e98982dbd90",
- "creator": {
- "type": "account",
- "id": "651586fca6078e98982dbd90"
}, - "source": {
- "type": "git-repo",
- "details": {
- "stack_file": "string",
- "url": "string",
- "branch": "string",
- "auth": {
- "type": "http",
- "credentials": {
- "username": "string",
- "password": "string"
}
}, - "ref": {
- "type": "string",
- "value": "string"
}
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "variables": {
- "property1": "string",
- "property2": "string"
}, - "acl": {
- "roles": {
- "property1": {
- "view": true,
- "modify": true,
- "manage": true
}, - "property2": {
- "view": true,
- "modify": true,
- "manage": true
}
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "last_build": "2021-01-30T08:30:00Z"
}, - "meta": {
- "containers_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "builds_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}
}
}
}
Requires the stacks-manage
capability.
Parameters for updating a Stack.
Returns the updated Stack.
General error response from the platform
{- "name": "string",
- "variables": {
- "property1": "string",
- "property2": "string"
}, - "source": {
- "type": "git-repo",
- "details": {
- "stack_file": "string",
- "url": "string",
- "branch": "string",
- "auth": {
- "type": "http",
- "credentials": {
- "username": "string",
- "password": "string"
}
}, - "ref": {
- "type": "string",
- "value": "string"
}
}
}
}
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "hub_id": "651586fca6078e98982dbd90",
- "creator": {
- "type": "account",
- "id": "651586fca6078e98982dbd90"
}, - "source": {
- "type": "git-repo",
- "details": {
- "stack_file": "string",
- "url": "string",
- "branch": "string",
- "auth": {
- "type": "http",
- "credentials": {
- "username": "string",
- "password": "string"
}
}, - "ref": {
- "type": "string",
- "value": "string"
}
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "variables": {
- "property1": "string",
- "property2": "string"
}, - "acl": {
- "roles": {
- "property1": {
- "view": true,
- "modify": true,
- "manage": true
}, - "property2": {
- "view": true,
- "modify": true,
- "manage": true
}
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "last_build": "2021-01-30T08:30:00Z"
}, - "meta": {
- "containers_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "builds_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}
}
}
}
Requires the stacks-manage
capability.
Returns a Job Descriptor.
General error response from the platform
{- "data": {
- "action": "string",
- "job": {
- "id": "string",
- "accepted": true,
- "queue": "string",
- "schedule": "2021-01-30T08:30:00Z",
- "parallel": {
- "sub_queue": "string",
- "tasks": true
}, - "tasks": [
- {
- "caption": "string",
- "header": "string",
- "steps": [
- {
- "caption": "string",
- "description": "string",
- "started": "2021-01-30T08:30:00Z",
- "completed": "2021-01-30T08:30:00Z"
}
], - "input": {
- "property1": null,
- "property2": null
}
}
]
}
}
}
Requires the stacks-manage
capability. If an ACL is present, requires the manage
privilege.
Returns the updated Stack.
General error response from the platform
{- "acl": {
- "roles": {
- "property1": {
- "view": true,
- "modify": true,
- "manage": true
}, - "property2": {
- "view": true,
- "modify": true,
- "manage": true
}
}
}
}
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "hub_id": "651586fca6078e98982dbd90",
- "creator": {
- "type": "account",
- "id": "651586fca6078e98982dbd90"
}, - "source": {
- "type": "git-repo",
- "details": {
- "stack_file": "string",
- "url": "string",
- "branch": "string",
- "auth": {
- "type": "http",
- "credentials": {
- "username": "string",
- "password": "string"
}
}, - "ref": {
- "type": "string",
- "value": "string"
}
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "variables": {
- "property1": "string",
- "property2": "string"
}, - "acl": {
- "roles": {
- "property1": {
- "view": true,
- "modify": true,
- "manage": true
}, - "property2": {
- "view": true,
- "modify": true,
- "manage": true
}
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "last_build": "2021-01-30T08:30:00Z"
}, - "meta": {
- "containers_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "builds_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}
}
}
}
Requires the stacks-manage
capability.
Returns a Job Descriptor.
General error response from the platform
{- "action": "prune"
}
{- "data": {
- "action": "string",
- "job": {
- "id": "string",
- "accepted": true,
- "queue": "string",
- "schedule": "2021-01-30T08:30:00Z",
- "parallel": {
- "sub_queue": "string",
- "tasks": true
}, - "tasks": [
- {
- "caption": "string",
- "header": "string",
- "steps": [
- {
- "caption": "string",
- "description": "string",
- "started": "2021-01-30T08:30:00Z",
- "completed": "2021-01-30T08:30:00Z"
}
], - "input": {
- "property1": null,
- "property2": null
}
}
]
}
}
}