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 [
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
]
name Name (string)required
app_id App Id (string)required
project_id Project Id (string)required
deployed_app_variant_id
object
required
anyOf
string
deployed_variant_name
object
required
anyOf
string
deployed_app_variant_revision_id
object
required
anyOf
string
revision
object
required
anyOf
integer
organization_id
object
anyOf
string
workspace_id
object
anyOf
string
[
{
"name": "string",
"app_id": "string",
"project_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...