List Environments
GET/api/v1/environments
Get a collection of Environment information.
Request
Query Parameters
Include the full detail of the environments.
Responses
- 200
- 400
- 401
- 403
- 500
- 502
- 503
- 504
A collection of environment information.
- application/json
- Schema
- Environments Response
Schema
- MOD1
- MOD2
Array [
]
Array [
]
data
object
required
A collection of environment information.
anyOf
All Environment Information
The Snowflake account name.
The Workspace description.
The Workspace name.
If Snowflake OAuth is enabled.
tagColors
object
The tag color from the Environment settings.
The Project ID.
createdBy
object
Summary information about a user.
The user ID.
User first name.
User last name.
The branch most recently run on this environment.
An array of any running Jobs. If there are not Jobs running, this will return empty.
The most recently deployed commit ID.
Possible values: [Deleting
, Deploying
, Failed Deploy
, Failed Refresh
, Initializing
, Refreshing
, Waiting
]
runTimeParameters
object
The default Environment parameters. Parameters changed during deploy will not show here.
The default Environment parameters. Parameters changed during deploy will not show here.
currentMappings
object
The Storage Mapping name.
property name*
object
The Snowflake database name.
The database schema.
Environment information - no details
createdBy
object
Summary information about a user.
The user ID.
User first name.
User last name.
The Environment ID.
Name of the Environment.
The Project ID.
Possible values: [Deleting
, Deploying
, Failed Deploy
, Failed Dev Run
, Failed Refresh
, Initializing
, Refreshing
, Running Dev Run
, Waiting
]
Status of the Environment.
{
"data": [
{
"connectionAccount": "string",
"defaultStorageMapping": "string",
"description": "string",
"name": "string",
"oauthEnabled": true,
"tagColors": {
"backgroundColor": "string",
"textColor": "string"
},
"project": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"id": "string",
"firstName": "string",
"lastName": "string"
},
"updatedAt": "2019-08-24T14:15:22Z",
"currentGitBranch": "string",
"currentGitCommit": "string",
"currentGitURL": "string",
"currentlyRunningJobs": [
0
],
"id": "string",
"deployedCommit": "string",
"status": "Deleting",
"runTimeParameters": {},
"currentMappings": {
"property1": {
"database": "string",
"schema": "string"
},
"property2": {
"database": "string",
"schema": "string"
}
}
}
]
}
The request was invalid.
- application/json
- Schema
- Invalid Request Error
Schema
error
object
required
The error message.
Additional detail about the error.
{
"error": {
"errorString": "string",
"errorDetail": "string"
}
}
User lacks authorization to perform this action.
- application/json
- Schema
- Unauthorized
Schema
error
object
required
The error message.
Additional detail about the error.
{
"error": {
"errorString": "string",
"errorDetail": "string"
}
}
The client is not permitted to perform the requested operation.
- application/json
- Schema
- Forbidden Error
Schema
error
object
required
The error message.
Additional detail about the error.
{
"error": {
"errorString": "string",
"errorDetail": "string"
}
}
The server encountered an unexpected condition that prevented it from fulfilling the request.
- application/json
- Schema
- Internal Server Error
Schema
error
object
required
The error message.
Additional detail about the error.
{
"error": {
"errorString": "string",
"errorDetail": "string"
}
}
The server received an error from an upstream system.
- application/json
- Schema
- Bad Gateway Error
Schema
error
object
required
The error message.
Additional detail about the error.
{
"error": {
"errorString": "string",
"errorDetail": "string"
}
}
The service is currently unavailable.
- application/json
- Schema
- Service Unavailable Error
Schema
error
object
required
The error message.
Additional detail about the error.
{
"error": {
"errorString": "string",
"errorDetail": "string"
}
}
The server did not receive a response in time from an upstream system.
- application/json
- Schema
- Gateway Timeout Error
Schema
error
object
required
The error message.
Additional detail about the error.
{
"error": {
"errorString": "string",
"errorDetail": "string"
}
}