Pipelines

Get a variable for a user

Retrieve a user level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

get/users/{selected_user}/pipelines_config/variables/{variable_uuid}

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/users/{selected_user}/pipelines_config/variables/{variable_uuid}
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: pipeline
    • or HTTP basic
    • or API key in header Authorization

Path parameters

selected_userstring required

Either the UUID of the account surrounded by curly-braces, for example {account UUID}, OR an Atlassian Account ID.

variable_uuidstring required

The UUID of the variable to retrieve.

Response

The variable.

typestring required
uuidstring

The UUID identifying the variable.

keystring

The unique name of the variable.

valuestring

The value of the variable. If the variable is secured, this will be empty.

securedboolean

If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.

Changes

No recorded changes to this operation across all 15 revisions of this API.