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": "id_myKey",
"value": "secure!GvzY/ffwelVnYYXse/J8h1LUpRbdXcue5MPs23Gbe5qe53kCjv/OHKWJHQBREsyLfeN7eZacG3mGtKeO3Av5Y/azHqxFJ8gVFBTOV6KvkksjP9f1eVMc3enL6O5PYA4TXCotpcwaPrCPAxbkoJsluEwxRBS16CJBhtzP5oRkgp6vdv8pkqNDBYmfiQTZFi3BwOa1EZg9qWwte/uf+kHGbllDEnmf3i6qWf+sgokgBOMVA/1WD/GL8HnxDq1v5ydD5+LzI6A3NWqQKpIDm34rjpMlunC9pUi5sV1gRMYyyG34soozCKgtZmTjeAJSFbAim8Qdkoz9mSaevo5tbYrYdx+FihACt72222y8NaG2jIJfbgAieMoLipahkoCfngkHPkeiloVvSFgsLBPYB1jH1LquT/VR2YZH7sSlFei/6a4h21CKq4QCr//C4uKHKX37lv44z4vW1FJUzoHpSEOwLSRvS/3czpHFMy5K//K00Z7wFChkkUJxkI1AiUxsT4AtfTDAve3Mx51vaakldmvN37r+5mvIu6XVZu+cStPb7Y7669WfRNn26hIDXFOYyWXOvVcKR8PyThjsCF8zk3K/VON5UbDdTKANAbdTwgPSBW83cS9G9KyE74uERGWGTs2uP3LtcZJiWXkk8e8XYgjj5yKbir3YIvDkZunieeEnDrSvyVEU652AzmT8sLUNfP+xsqCRB1/YCMy1JV2se7kmPjnYXPuQWbIJMOC+44pyikNy2AvQWCq7Q7377vMlQisaqETy8L5aYUpPG9p0wrpx+5wG+rC9YZ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0yrmH4BbshtGjjti/ZevQXwdX8V0ShRmh5xA+dXmMmRrD4OXGDmqwR9/iDhtndE/b0EUYgAZhoAIqHCvP9BNs2DHyosievyjOs5fMBOZmdbPuNG0pkDKkhVxupyFpDK8jm/TiSxOhLlhP8+9xp54bu6CP7biwCgGEMuyjHDBiSFQx70YomHaJqd8VG+8bIPgw56xs0dONsUiYl8yb1DsqYxFZckhDXYKoBj+HbC7G6BGwfnlMhBQqp+ZkY17GAt6shc0QIxrW1XrxcOlFBkR2YWv7SBhC8oPMKBPa5IyInevlOPYQ==",
"ssh_key": true,
"encrypted": true,
"description": "My Server Key"
}