Provides the overall applicable provisioning policy for the supplied cloud and stage in this workspace
GET/api/v2/workspaces/:workspace/provisioningpolicy/:cloud/:stage/:resourceType
Provides the overall applicable provisioning policy for the supplied cloud and stage in this workspace
Request
Path Parameters
Workspace to use
Cloud provider to get the policy for
Stage being used
Resource Type to get policy for
Responses
- 200
- 401
- 403
- 404
- 500
Applicable provisioning policy for the given resource type in this cloud/stage/workspace
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
AllowedRegions provides a list of regions in which provisioning can be done. If empty, all regions are allowed.
Cloud refers to the cloud provider this policy applies to type (e.g. aws, azure, gcp)
clusterLimits
ClusterLimits provide specific limits for provisiong policies of resource type Cluster
perCluster
PerCluster provides limits that apply to each cluster individually.
allowedInstanceTypes
undefined[]
AllowedInstanceTypes provides the list of instance types allowed for clusters. If empty, all instance types are allowed.
InstanceType is the cloud-provide-specific name of the instance type this limit applies to.
MaxNodes provides an optional maximum number of nodes of this type across all clusters in a workspace.
Where auto-scaling is enabled, this applies to the maximum size of that auto-scaling configuration.
CostPerMonth limits the maximum estimated cost (in USD) for each individual cluster under the scope of this policy.
A standard of 30 days / 720 hours per month is assumed when validating this limit against hourly infrastructure costs.
TotalNodes is a limit on the total number of nodes that a cluster is allowed to be configured with.
Where auto-scaling is enabled, this applies to the maximum size of that auto-scaling configuration.
perWorkspace
PerWorkspace provides limits that apply across the total set of clusters of the given cloud provider in a workspace.
MaxClusters provides the maximum number of clusters in a workspace.
Description provides a short description of this policy, i.e. why it exists.
ResourceType is the type of cloud resource this policy applies to.
scope
required
Scope allows targeting of this policy to a specific or all workspaces and/or stages. If multiple policies are applicable, the most specific scoped policy that defines a limit is used. The order of specificity is as follows: 1. Any policy with the specific stage and workspace 2. Any policy with the specific workspace and all stages 3. Any policy with the specific stage and all workspaces 4. Any policy with all stages and all workspaces Where multiple policies are found at the same level of specificity, the least restrictive intersection of those will apply.
{
"allowedRegions": [
"string"
],
"cloud": "string",
"clusterLimits": {
"perCluster": {
"allowedInstanceTypes": [
{
"instanceType": "string",
"maxNodes": 0
}
],
"costPerMonth": 0,
"totalNodes": 0
},
"perWorkspace": {
"maxClusters": 0
}
},
"description": "string",
"resourceType": "string",
"scope": {
"allStages": true,
"allWorkspaces": true,
"allowedStages": [
"string"
],
"allowedWorkspaces": [
"string"
]
}
}
If not authenticated
If authenticated but not authorized
Workspace does not exist
A generic API error containing the cause of the error
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"detail": "string",
"message": "string",
"uri": "string",
"verb": "string"
}