Get Environment
GET/api/v1/environments/:environmentID
Get information about an environment.
Request
Path Parameters
The environment ID.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- 502
- 503
- 504
Information about an environment.
- application/json
- Schema
- Environment Response
Schema
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.
{
"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 requested resource could not be found.
- application/json
- Schema
- Not Found 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"
}
}