Graph

get

Return direct descendants of a provided node

🔒 Requires the read:deployment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
typestring · enumRequired

The type of provided node to retrieve edges for:

  • environment - edges will consist of blueprint nodes based on deployments for provided environment id
  • deployment - edges will consist of blueprint nodes for provided deployment id
  • blueprint - edges will consist of either blueprint nodes (if nested under provided blueprint) or property nodes for provided blueprint id.
Possible values:
idstringRequired

Graph node id to retrieve edges for

Responses
200

List of edges for provided node

application/json
get
/api/v1/graph/edges/{type}/{id}
get

Return properties of a provided node alongside with its siblings and parent recursively to the beginning of the graph

🔒 Requires the read:deployment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
typestring · enumRequired

The type of provided node to retrieve details for:

  • environment - response will consist of environment details for provided id alongside with its siblings
  • deployment - response will consist of deployment details for provided id alongside with its siblings within same environment, parent environment and its siblings
  • blueprint - response will consist of blueprint details for provided id alongside with its siblings within same deployment, parent deployment, parent environment and their siblings correspondingly
  • property - response will consist of property details for provided id alongside with its siblings within same blueprint, parent blueprint, parent deployment, parent environment and its siblings correspondingly
Possible values:
idstringRequired

Graph node id to retrieve details, siblings and parent for

Query parameters
no_siblingsbooleanOptional

If true, response will not include siblings of provided and parent nodes

Default: false
Responses
200

Detailed node information with graph relations

application/json
Responseone of

Detailed node information with graph relations

or
or
or
get
/api/v1/graph/{type}/{id}
get

Return all nodes for provided type

🔒 Requires the read:deployment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
typestring · enumRequired

Node type

Possible values:
Query parameters
filterstringOptional

Structure: [key1=value1,key2=value2&value3]

searchstringOptional

Enables searching within the list of node names that match a particular querye.g. my_env

Responses
200

List of nodes for provided type

application/json
get
/api/v1/graph/{type}
post

Import state from a file

🔒 Requires the create:deployment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
state_filestring · binaryRequired

State file to import

Example: state_file=@path/to/tfstate.json
deployment_namestringOptional

Deployment name for imported state (optional)

Responses
200

Imported state node details

application/json
post
/api/v1/graph/state/import
delete

Delete imported state

🔒 Requires the update:deployment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
deployment_idstringRequired

Deployment id to delete imported state

Responses
200

State deleted successfully

application/json
Responseany

State deleted successfully

delete
/api/v1/graph/state/delete

No content

Last updated

Was this helpful?