Files

172 lines
3.1 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[Skip to content](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#VPContent)
Return to top
List Envs[](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#list-envs)
=======================================================================================================
GET
/services/{uuid}/envs
List all envs by service UUID.
Authorizations[](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#authorizations)
-----------------------------------------------------------------------------------------------------------------
bearerAuth
Go to `Keys & Tokens` / `API tokens` and create a new token. Use the token as the bearer token.
Type
HTTP (bearer)
Parameters[](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#parameters)
---------------------------------------------------------------------------------------------------------
### Path Parameters
uuid\*
UUID of the service.
Type
string
Required
Responses[](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#responses)
-------------------------------------------------------------------------------------------------------
200400401404
All environment variables by service UUID.
Content-Type
application/json
SchemaJSON
JSON
\[\
\
{\
\
"id": 0,\
\
"uuid": "string",\
\
"resourceable\_type": "string",\
\
"resourceable\_id": 0,\
\
"is\_literal": true,\
\
"is\_multiline": true,\
\
"is\_preview": true,\
\
"is\_runtime": true,\
\
"is\_buildtime": true,\
\
"is\_shared": true,\
\
"is\_shown\_once": true,\
\
"key": "string",\
\
"value": "string",\
\
"real\_value": "string",\
\
"comment": "string",\
\
"version": "string",\
\
"created\_at": "string",\
\
"updated\_at": "string"\
\
}\
\
\]
GET
/services/{uuid}/envs
Playground[](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#playground)
---------------------------------------------------------------------------------------------------------
Authorization
bearerAuth
Variables
Key
Value
uuid\*
Try it out
Samples[](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#samples)
---------------------------------------------------------------------------------------------------
BrunocURLJavaScriptPHPPython
Bruno
GET https://app.coolify.io/api/v1/services/%7Buuid%7D/envs
Headers
authorization: Token
cURL
curl 'https://app.coolify.io/api/v1/services/{uuid}/envs' \
--header 'Authorization: Token'
JavaScript
fetch('https://app.coolify.io/api/v1/services/{uuid}/envs', {
headers: {
Authorization: 'Token'
}
})
PHP
$ch = curl_init("https://app.coolify.io/api/v1/services/{uuid}/envs");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Token']);
curl_exec($ch);
curl_close($ch);
Python
requests.get(
"https://app.coolify.io/api/v1/services/{uuid}/envs",
headers={
"Authorization": "Token"
}
)
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)