Environments API


get
/ v1 / environments
curl --request GET \
     --url https://api.flexstack.com/v1/environments \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Query Parameters

after
string
limit
integer (int64)
sort_by
enum

Responses

200
OK response.
data
array (object)
required
Show attributes
cloud_version_id
string
required
config
object
required
Show attributes
object
created_at
string (date-time)
required
description
string
id
string
required
name
string
required
project_id
string
required
has_more
boolean
required
next_page
string
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / environments / :id
get
/ v1 / projects / :project_id / environments / :id
curl --request GET \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

id
string
required

Responses

200
OK response.
cloud_version_id
string
required
config
object
required
Show attributes
object
created_at
string (date-time)
required
description
string
id
string
required
name
string
required
project_id
string
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
put
/ v1 / environments / :id
put
/ v1 / projects / :project_id / environments / :id
curl --request PUT \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

id
string
required

Request Body

Important note

PUT requests are used to replace an existing resource. The request body should contain the full representation of the resource, including any fields that are not being updated.

config
object
required
Show attributes
object
description
string
name
string (regexp)
required

Responses

200
OK response.
cloud_version_id
string
required
config
object
required
Show attributes
object
created_at
string (date-time)
required
description
string
id
string
required
name
string
required
project_id
string
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
delete
/ v1 / environments / :id
delete
/ v1 / projects / :project_id / environments / :id
curl --request DELETE \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

id
string
required

Responses

204
No content
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / environments / :id / logs
curl --request GET \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4/logs \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

id
string
required

Query Parameters

filter_pattern
string
start_time
integer (int64)
end_time
integer (int64)
after
string
limit
integer (int64)

Responses

200
OK response.
data
array (object)
required
Show attributes
component
object
Show attributes
deleted_at
string
id
string
required
name
string
required
event_id
string
required
ingestion_time
integer (int64)
required
message
string
required
task_id
string
required
timestamp
integer (int64)
required
has_more
boolean
required
next_page
string
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / environments / :id / members
curl --request GET \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4/members \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

id
string
required

Query Parameters

role
array (string)
after
string
limit
integer (int64)
sort_by
enum

Responses

200
OK response.
data
array (object)
required
Show attributes
account_id
string
required
avatar
string
created_at
string (date-time)
required
display_name
string
required
environment_id
string
required
id
string
required
name
string
required
org_role
enum
profile
object
required
Show attributes
bio
string
github_handle
string
location
string
twitter_handle
string
website
string
role
enum
required
has_more
boolean
required
next_page
string
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
post
/ v1 / environments / :id / members
curl --request POST \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4/members \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

id
string
required

Request Body

account_ids
array (string)
required

Responses

201
Created response.
account_id
string
required
avatar
string
created_at
string (date-time)
required
display_name
string
required
environment_id
string
required
id
string
required
name
string
required
org_role
enum
profile
object
required
Show attributes
bio
string
github_handle
string
location
string
twitter_handle
string
website
string
role
enum
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / projects / :project_id / environments
curl --request GET \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/environments \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

project_id
string
required

Query Parameters

after
string
limit
integer (int64)
sort_by
enum

Responses

200
OK response.
data
array (object)
required
Show attributes
cloud_version_id
string
required
config
object
required
Show attributes
object
created_at
string (date-time)
required
description
string
id
string
required
name
string
required
project_id
string
required
has_more
boolean
required
next_page
string
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
post
/ v1 / projects / :project_id / environments
curl --request POST \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/environments \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

project_id
string
required

Request Body

cloud_version_id
string
required
config
object
required
Show attributes
object
description
string
name
string (regexp)
required

Responses

201
Created response.
cloud_version_id
string
required
config
object
required
Show attributes
object
created_at
string (date-time)
required
description
string
id
string
required
name
string
required
project_id
string
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / environments / :environment_id / members / :id
curl --request GET \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4/members/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

environment_id
string
required
id
string
required

Responses

200
OK response.
account_id
string
required
avatar
string
created_at
string (date-time)
required
display_name
string
required
environment_id
string
required
id
string
required
name
string
required
org_role
enum
profile
object
required
Show attributes
bio
string
github_handle
string
location
string
twitter_handle
string
website
string
role
enum
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
put
/ v1 / environments / :environment_id / members / :id
curl --request PUT \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4/members/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

environment_id
string
required
id
string
required

Request Body

Important note

PUT requests are used to replace an existing resource. The request body should contain the full representation of the resource, including any fields that are not being updated.

role
enum

Responses

200
OK response.
account_id
string
required
avatar
string
created_at
string (date-time)
required
display_name
string
required
environment_id
string
required
id
string
required
name
string
required
org_role
enum
profile
object
required
Show attributes
bio
string
github_handle
string
location
string
twitter_handle
string
website
string
role
enum
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
delete
/ v1 / environments / :environment_id / members / :id
curl --request DELETE \
     --url https://api.flexstack.com/v1/environments/1C8xJnvSBaztoHyxcim7C4/members/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

environment_id
string
required
id
string
required

Responses

204
No content
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
Post to