List Available Variable References
List the sources and keys a service's variables can reference: team, project and environment variables, and the variables and Unbind-provided addresses of every service in the project, the service itself included. A key of a service is referenced as ${{service:<source_id>.KEY}}, the others as ${{team.KEY}}, ${{project.KEY}} and ${{environment.KEY}}.
List the sources and keys a service's variables can reference: team, project and environment variables, and the variables and Unbind-provided addresses of every service in the project, the service itself included. A key of a service is referenced as ${{service:<source_id>.KEY}}, the others as ${{team.KEY}}, ${{project.KEY}} and ${{environment.KEY}}.
Authorization
bearerAuth Access token or API key (unb_...) passed as Authorization: Bearer <token>.
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/variables/references/available?team_id=string&project_id=string&environment_id=string&service_id=string"{ "data": [ { "keys": [ "string" ], "source_icon": "string", "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81", "source_kubernetes_name": "string", "source_name": "string", "source_type": "team", "type": "variable" } ]}List Variables GET
List variables for a service, environment, project, or team. Service variables include their rendered values. Values are blank and values_redacted is true unless the connection has the read_variable_values privilege; names and references are always listed.
Create or Update Variables POST
Upsert variables by key for a service, environment, project, or team. Values may contain ${{service:<id>.KEY}}, ${{team.KEY}}, ${{project.KEY}} and ${{environment.KEY}} references, which follow the source when it changes, for example API_URL=${{service:<id>.UNBIND_URL_PRIVATE}}. list-available-references lists the keys. A service may reference its own variables and addresses, but a variable cannot reference itself. A referenced value that holds references is rendered too. A service's protected_variables, such as database credentials, are managed by Unbind and cannot be changed.