List environment variables

environmentVariables(input: EnvironmentVariablesInput!): EnvironmentVariablePage!

Requires project.read.

Arguments

ArgumentTypeRequired
inputEnvironmentVariablesInput!Yes

Input fields

input

EnvironmentVariablesInput

FieldTypeRequiredDescription
environmentIdID!YesEnvironment UUID.
keys[String!]NoOnly these keys, at most 100 of at most 255 characters each. The filter applies before pagination; a key that does not exist is not in data.
limitIntNoVariables per page, 1 to 100 (default 20).
cursorStringNopageInfo.endCursor of the previous page; send it with the same sort.
sortByEnvironmentVariableSortByNoSort field: key (default) or updated_at. Ties break by variable ID ascending.
sortOrderEnvironmentVariableSortOrderNoSort direction: asc (default) or desc.

Response

Returns EnvironmentVariablePage!. Open the type for its fields and nested types.

FieldTypeDescription
data[EnvironmentVariable!]!Variables of this page.
pageInfoPageInfo!Continue from endCursor while hasNextPage is true.

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

Example

query.graphql
query EnvironmentVariables($input: EnvironmentVariablesInput!) {  environmentVariables(input: $input) {    data {      id      hasValue      key      value    }    pageInfo {      hasNextPage      endCursor      hasPreviousPage      startCursor    }  }}
variables.json
{  "input": {    "environmentId": "00000000-0000-4000-8000-000000000001"  }}