Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

currentworkloadProfileStates - GET #20550

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,6 @@
"$ref": "#/definitions/EnvironmentAuthToken"
}
},
"404": {
"description": "Not found.",
"x-ms-error-response": true
},
"default": {
"description": "Error response.",
"schema": {
Expand All @@ -694,6 +690,56 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates": {
"get": {
"tags": [
"ManagedEnvironments"
],
"summary": "Get all workload Profile States for a Premium Managed Environment..",
"description": "Get all workload Profile States for a Premium Managed Environment.",
"operationId": "ManagedEnvironments_ListWorkloadProfileStates",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "environmentName",
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/workloadProfileStatesCollection"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List environments by subscription": {
"$ref": "./examples/ManagedEnvironments_ListWorkloadProfileStates.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1025,6 +1071,59 @@
"required": [
"name"
]
},
"workloadProfileStates": {
"description": "Collection of all the workload Profile States for a Premium Managed Environment..",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
}
],
"properties": {
"properties": {
"description": "Workload Profile resource specific properties.",
"type": "object",
"properties": {
"minimumCount": {
"type": "integer",
"format": "int32",
"description": "Minimum count of instances."
},
"maximumCount": {
"type": "integer",
"format": "int32",
"description": "Maximum count of nodes."
},
"currentCount": {
"type": "integer",
"format": "int32",
"description": "Current count of nodes."
}
}
}
}
},
"workloadProfileStatesCollection": {
"description": "Collection of workloadProfileStates",
"required": [
"value"
],
"type": "object",
"properties": {
"value": {
"description": "Collection of resources.",
"type": "array",
"items": {
"$ref": "#/definitions/workloadProfileStates"
}
},
"nextLink": {
"description": "Link to next page of resources.",
"type": "string",
"readOnly": true
}
}
}
},
"securityDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
"environmentName": "jlaw-demo1",
"api-version": "2022-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/workloadProfileStates/GP1",
"name": "GP1",
"type": "/providers/Microsoft.App/workloadProfileStates",
"properties": {
tdaroly marked this conversation as resolved.
Show resolved Hide resolved
"minimumCount": 3,
"maximumCount": 10,
"currentCount": 3
}
},
{
"id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/workloadProfileStates/MO3",
"name": "MO3",
"type": "/providers/Microsoft.App/workloadProfileStates",
"properties": {
"minimumCount": 0,
"maximumCount": 2,
"currentCount": 0
}
}
]
}
}
}
}