environmentVariables

List the variables of an environment, with masked values. Requires project.read.

Arguments

  • inputEnvironmentVariablesInput!required

  • input.environmentIdID!required

    Environment UUID.

  • input.keys[String!]

    Only 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.

  • input.limitInt

    Variables per page, 1 to 100 (default 20).

  • input.cursorString

    pageInfo.endCursor of the previous page; send it with the same sort.

  • input.sortByEnvironmentVariableSortBy

    Sort field: key (default) or updated_at. Ties break by variable ID ascending. One of key, updated_at.

  • input.sortOrderEnvironmentVariableSortOrder

    Sort direction: asc (default) or desc. One of asc, desc.

Responses

query EnvironmentVariables($input: EnvironmentVariablesInput!) {  environmentVariables(input: $input) {    data {      id      key      value      hasValue    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }  }}
{  "data": {    "environmentVariables": {      "data": [        {          "id": "string",          "key": "string",          "value": "string",          "hasValue": false        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      }    }  }}

The EnvironmentVariablePage! in data.environmentVariables.