Get environment

environment(input: GetEnvironmentInput!): Environment

Requires project.read.

Arguments

ArgumentTypeRequired
inputGetEnvironmentInput!Yes

Input fields

input

GetEnvironmentInput

FieldTypeRequired
idID!Yes

Response

Returns Environment. Open the type for its fields and nested types.

FieldType
idID
nameString
projectIdID
protectedBoolean
domains[String]
environmentVariables[EnvironmentVariable!]!
createdAtDateTime
updatedAtDateTime

All fields of Environment.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query Environment($input: GetEnvironmentInput!) {
  environment(input: $input) {
    id
    projectId
    name
    createdAt
    updatedAt
  }
}
json
{
  "input": {
    "id": "00000000-0000-4000-8000-000000000001"
  }
}