List Environments
GET/apps/:app_id/environments
Retrieve a list of environments for a given app ID.
Args: app_id (str): The ID of the app to retrieve environments for. stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).
Returns: List[EnvironmentOutput]: A list of environment objects.
Request
Path Parameters
app_id App Idrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
name Name (string)required
app_id App Id (string)required
deployed_app_variant_id Deployed App Variant Id (string)
deployed_variant_name Deployed Variant Name (string)
deployed_app_variant_revision_id Deployed App Variant Revision Id (string)
revision Revision (integer)
organization_id Organization Id (string)
workspace_id Workspace Id (string)
[
{
"name": "string",
"app_id": "string",
"deployed_app_variant_id": "string",
"deployed_variant_name": "string",
"deployed_app_variant_revision_id": "string",
"revision": 0,
"organization_id": "string",
"workspace_id": "string"
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...