Path Parameters
UUID of the environment
Response
Successful response
The directory path of the environment
Example:
"my/env/path"
curl --request GET \
--url https://api.ctrlplane.dev/api/v1/environments/{environmentId}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"systemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"policyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resourceSelector": {},
"directory": "my/env/path",
"createdAt": "2023-11-07T05:31:56Z",
"metadata": {},
"policy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"priority": 123,
"createdAt": "2023-11-07T05:31:56Z",
"enabled": true,
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targets": [
{
"deploymentSelector": {},
"environmentSelector": {},
"resourceSelector": {}
}
],
"denyWindows": [
{
"timeZone": "<string>",
"rrule": {},
"dtend": "2023-11-07T05:31:56Z"
}
],
"deploymentVersionSelector": {
"name": "<string>",
"deploymentVersionSelector": {},
"description": "<string>"
},
"versionAnyApprovals": {
"requiredApprovalsCount": 123
},
"versionUserApprovals": [
{
"userId": "<string>"
}
],
"versionRoleApprovals": [
{
"roleId": "<string>",
"requiredApprovalsCount": 123
}
],
"concurrency": 2,
"environmentVersionRollout": {
"positionGrowthFactor": 123,
"timeScaleInterval": 123,
"rolloutType": "linear"
},
"maxRetries": 2
}
}curl --request GET \
--url https://api.ctrlplane.dev/api/v1/environments/{environmentId}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"systemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"policyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resourceSelector": {},
"directory": "my/env/path",
"createdAt": "2023-11-07T05:31:56Z",
"metadata": {},
"policy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"priority": 123,
"createdAt": "2023-11-07T05:31:56Z",
"enabled": true,
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targets": [
{
"deploymentSelector": {},
"environmentSelector": {},
"resourceSelector": {}
}
],
"denyWindows": [
{
"timeZone": "<string>",
"rrule": {},
"dtend": "2023-11-07T05:31:56Z"
}
],
"deploymentVersionSelector": {
"name": "<string>",
"deploymentVersionSelector": {},
"description": "<string>"
},
"versionAnyApprovals": {
"requiredApprovalsCount": 123
},
"versionUserApprovals": [
{
"userId": "<string>"
}
],
"versionRoleApprovals": [
{
"roleId": "<string>",
"requiredApprovalsCount": 123
}
],
"concurrency": 2,
"environmentVersionRollout": {
"positionGrowthFactor": 123,
"timeScaleInterval": 123,
"rolloutType": "linear"
},
"maxRetries": 2
}
}UUID of the environment
Successful response
The directory path of the environment
"my/env/path"
Show child attributes
Show child attributes