Environments
On this page
- List available pre-defined environment types.
- List environments in an organisation.
- Create an environments in an organisation.
- Count environments in an organisation.
- List available pre-defined environment types.
- Delete an environment from an organisation.
- Get an environments in an organisation.
- Update an environments in an organisation.
A grouping of clusters inside an organisation with optional custom user access.
List available pre-defined environment types.
HTTP Responses codes for "List available pre-defined environment types."
Status Code | Description |
---|---|
200 | Request was successfully processed. The response body contains the requested data. |
400 | Invalid request parameters. Please review the documentation for valid parameter values. |
403 | You do not have the necessary permissions to access this resource. |
404 | The requested resource could not be found. Please check the resource URL or identifier. |
500 | An internal error occurred on the server. |
GET /api/v1/environments/types
Response
No Content
{ "items": { "type": "string" }, "type": "array" }
List environments in an organisation.
Path Parameters:
organisationSlug
Query Parameters:
pageable
(Optional. When omitted: pageSize=50, pageNumber=0, sortDirection=ASC)
HTTP Responses codes for "List environments in an organisation."
Status Code | Description |
---|---|
200 | Request was successfully processed. The response body contains the requested data. |
400 | Invalid request parameters. Please review the documentation for valid parameter values. |
403 | You do not have the necessary permissions to access this resource. |
404 | The requested resource could not be found. Please check the resource URL or identifier. |
500 | An internal error occurred on the server. |
Related Objects
EnvironmentResponse
createdAt
date-timedeletedAt
date-timedescription
stringid
int64identity
uuidmodifiedAt
date-timename
stringorganisationSlug
objectOne of#/components/schemas/Slug
purpose
stringslug
objectOne of#/components/schemas/Slug
totalClusters
int64totalCpu
int64totalMemory
int64type
string
PageableObject
offset
int64pageNumber
int32pageSize
int32paged
booleansort
arrayList of#/components/schemas/SortObject
unpaged
boolean
SortObject
ascending
booleandirection
stringignoreCase
booleannullHandling
stringproperty
string
GET /api/v1/orgs/{organisationSlug}/environments
Response
content
arrayList of#/components/schemas/EnvironmentResponse
empty
booleanfirst
booleanlast
booleannumber
int32numberOfElements
int32pageable
objectOne of#/components/schemas/PageableObject
size
int32sort
arrayList of#/components/schemas/SortObject
totalElements
int64totalPages
int32
{ "properties": { "content": { "items": { "$ref": "#/components/schemas/EnvironmentResponse" }, "type": "array" }, "empty": { "type": "boolean" }, "first": { "type": "boolean" }, "last": { "type": "boolean" }, "number": { "format": "int32", "type": "integer" }, "numberOfElements": { "format": "int32", "type": "integer" }, "pageable": { "$ref": "#/components/schemas/PageableObject" }, "size": { "format": "int32", "type": "integer" }, "sort": { "items": { "$ref": "#/components/schemas/SortObject" }, "type": "array" }, "totalElements": { "format": "int64", "type": "integer" }, "totalPages": { "format": "int32", "type": "integer" } }, "type": "object" }
Create an environments in an organisation.
Path Parameters:
organisationSlug
HTTP Responses codes for "Create an environments in an organisation."
Status Code | Description |
---|---|
200 | Request was successfully processed. The response body contains the requested data. |
400 | Invalid request parameters. Please review the documentation for valid parameter values. |
403 | You do not have the necessary permissions to access this resource. |
404 | The requested resource could not be found. Please check the resource URL or identifier. |
500 | An internal error occurred on the server. |
Request Body Parameters
description
stringmax length: 500
name
string Requiredmin length: 3
max length: 25
purpose
stringmax length: 255
type
stringOne ofproduction
staging
development
demo
other
Related Objects
Slug
slugValue
string
POST /api/v1/orgs/{organisationSlug}/environments
Response
createdAt
date-timedeletedAt
date-timedescription
stringid
int64identity
uuidmodifiedAt
date-timename
stringorganisationSlug
objectOne of#/components/schemas/Slug
purpose
stringslug
objectOne of#/components/schemas/Slug
totalClusters
int64totalCpu
int64totalMemory
int64type
string
{ "properties": { "createdAt": { "format": "date-time", "type": "string" }, "deletedAt": { "format": "date-time", "type": "string" }, "description": { "type": "string" }, "id": { "format": "int64", "type": "integer" }, "identity": { "format": "uuid", "type": "string" }, "modifiedAt": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "organisationSlug": { "$ref": "#/components/schemas/Slug" }, "purpose": { "type": "string" }, "slug": { "$ref": "#/components/schemas/Slug" }, "totalClusters": { "format": "int64", "type": "integer" }, "totalCpu": { "format": "int64", "type": "integer" }, "totalMemory": { "format": "int64", "type": "integer" }, "type": { "type": "string" } }, "type": "object" }
Count environments in an organisation.
Path Parameters:
organisationSlug
HTTP Responses codes for "Count environments in an organisation."
Status Code | Description |
---|---|
200 | Request was successfully processed. The response body contains the requested data. |
400 | Invalid request parameters. Please review the documentation for valid parameter values. |
403 | You do not have the necessary permissions to access this resource. |
404 | The requested resource could not be found. Please check the resource URL or identifier. |
500 | An internal error occurred on the server. |
GET /api/v1/orgs/{organisationSlug}/environments/count
Response
count
int64
{ "properties": { "count": { "format": "int64", "type": "integer" } }, "type": "object" }
List available pre-defined environment types.
Path Parameters:
organisationSlug
HTTP Responses codes for "List available pre-defined environment types."
Status Code | Description |
---|---|
200 | Request was successfully processed. The response body contains the requested data. |
400 | Invalid request parameters. Please review the documentation for valid parameter values. |
403 | You do not have the necessary permissions to access this resource. |
404 | The requested resource could not be found. Please check the resource URL or identifier. |
500 | An internal error occurred on the server. |
GET /api/v1/orgs/{organisationSlug}/environments/types
Response
No Content
{ "items": { "type": "string" }, "type": "array" }
Delete an environment from an organisation.
Path Parameters:
organisationSlug
environmentSlug
HTTP Responses codes for "Delete an environment from an organisation."
Status Code | Description |
---|---|
204 | Request was successfully processed, but there is no response body to return. |
400 | Invalid request parameters. Please review the documentation for valid parameter values. |
403 | You do not have the necessary permissions to access this resource. |
404 | The requested resource could not be found. Please check the resource URL or identifier. |
500 | An internal error occurred on the server. |
DELETE /api/v1/orgs/{organisationSlug}/environments/{environmentSlug}
Response
No Content
Get an environments in an organisation.
Path Parameters:
organisationSlug
environmentSlug
HTTP Responses codes for "Get an environments in an organisation."
Status Code | Description |
---|---|
200 | Request was successfully processed. The response body contains the requested data. |
400 | Invalid request parameters. Please review the documentation for valid parameter values. |
403 | You do not have the necessary permissions to access this resource. |
404 | The requested resource could not be found. Please check the resource URL or identifier. |
500 | An internal error occurred on the server. |
Related Objects
Slug
slugValue
string
GET /api/v1/orgs/{organisationSlug}/environments/{environmentSlug}
Response
createdAt
date-timedeletedAt
date-timedescription
stringid
int64identity
uuidmodifiedAt
date-timename
stringorganisationSlug
objectOne of#/components/schemas/Slug
purpose
stringslug
objectOne of#/components/schemas/Slug
totalClusters
int64totalCpu
int64totalMemory
int64type
string
{ "properties": { "createdAt": { "format": "date-time", "type": "string" }, "deletedAt": { "format": "date-time", "type": "string" }, "description": { "type": "string" }, "id": { "format": "int64", "type": "integer" }, "identity": { "format": "uuid", "type": "string" }, "modifiedAt": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "organisationSlug": { "$ref": "#/components/schemas/Slug" }, "purpose": { "type": "string" }, "slug": { "$ref": "#/components/schemas/Slug" }, "totalClusters": { "format": "int64", "type": "integer" }, "totalCpu": { "format": "int64", "type": "integer" }, "totalMemory": { "format": "int64", "type": "integer" }, "type": { "type": "string" } }, "type": "object" }
Update an environments in an organisation.
Path Parameters:
organisationSlug
environmentSlug
HTTP Responses codes for "Update an environments in an organisation."
Status Code | Description |
---|---|
200 | Request was successfully processed. The response body contains the requested data. |
400 | Invalid request parameters. Please review the documentation for valid parameter values. |
403 | You do not have the necessary permissions to access this resource. |
404 | The requested resource could not be found. Please check the resource URL or identifier. |
500 | An internal error occurred on the server. |
Request Body Parameters
description
stringmax length: 500
name
stringmin length: 3
max length: 25
purpose
stringmax length: 255
type
stringOne ofproduction
staging
development
demo
other
Related Objects
Slug
slugValue
string
PATCH /api/v1/orgs/{organisationSlug}/environments/{environmentSlug}
Response
createdAt
date-timedeletedAt
date-timedescription
stringid
int64identity
uuidmodifiedAt
date-timename
stringorganisationSlug
objectOne of#/components/schemas/Slug
purpose
stringslug
objectOne of#/components/schemas/Slug
totalClusters
int64totalCpu
int64totalMemory
int64type
string
{ "properties": { "createdAt": { "format": "date-time", "type": "string" }, "deletedAt": { "format": "date-time", "type": "string" }, "description": { "type": "string" }, "id": { "format": "int64", "type": "integer" }, "identity": { "format": "uuid", "type": "string" }, "modifiedAt": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "organisationSlug": { "$ref": "#/components/schemas/Slug" }, "purpose": { "type": "string" }, "slug": { "$ref": "#/components/schemas/Slug" }, "totalClusters": { "format": "int64", "type": "integer" }, "totalCpu": { "format": "int64", "type": "integer" }, "totalMemory": { "format": "int64", "type": "integer" }, "type": { "type": "string" } }, "type": "object" }