Get Environment Variable

Shows details of the environment variable. Restricted to admins only.

Required scopes: WORKSPACE, VARIABLE_INFO

Resource URL

GET /workspaces/:domain/variables/:variable_id

URL Parameters

NameTypeDescription
domain
Required
StringThe workspace domain.
variable_id
Required
IntegerThe numerical ID of the desired variable.

Example

Request

GET https://api.buddy.works/workspaces/buddy/variables/1

Example response

HTTP

Status: 200 OK
X-Rate-Limit-Limit: 1
X-Rate-Limit-Remaining: 999

JSON

{
  "url": "https://api.buddy.works/workspaces/buddytest/variables/1",
  "id": 1,
  "key": "my_File",
  "value": "secure!5nYmhfvLvsnPk+DTLiyW/AQMuN422SbgNJsDDiVf2pw=.k5fc7ZHzYZ7qXmsPBilHCA==",
  "type": "FILE",
  "settable": true,
  "encrypted": true,
  "description": "My file",
  "file_name": "file.txt",
  "file_path": "/buddy-variables/file.txt",
  "file_chmod": "644",
  "file_place": "CONTAINER",
  "binary": false,
  "checksum": "d092303b0eb7e814ddeee4a2239e9cc930db456f01ce72a14b7d23cc9c2a6ca6"
}
Sign up for Buddy Digest

Best practices on CI/CD and fresh changelogs delivered weekly to your inbox.