|
677 | 677 | "$ref": "#/definitions/EnvironmentAuthToken"
|
678 | 678 | }
|
679 | 679 | },
|
680 |
| - "404": { |
681 |
| - "description": "Not found.", |
682 |
| - "x-ms-error-response": true |
683 |
| - }, |
684 | 680 | "default": {
|
685 | 681 | "description": "Error response.",
|
686 | 682 | "schema": {
|
|
694 | 690 | }
|
695 | 691 | }
|
696 | 692 | }
|
| 693 | + }, |
| 694 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates": { |
| 695 | + "get": { |
| 696 | + "tags": [ |
| 697 | + "ManagedEnvironments" |
| 698 | + ], |
| 699 | + "summary": "Get all workload Profile States for a Premium Managed Environment..", |
| 700 | + "description": "Get all workload Profile States for a Premium Managed Environment.", |
| 701 | + "operationId": "ManagedEnvironments_ListWorkloadProfileStates", |
| 702 | + "parameters": [ |
| 703 | + { |
| 704 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" |
| 705 | + }, |
| 706 | + { |
| 707 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" |
| 708 | + }, |
| 709 | + { |
| 710 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" |
| 711 | + }, |
| 712 | + { |
| 713 | + "name": "environmentName", |
| 714 | + "in": "path", |
| 715 | + "description": "Name of the Managed Environment.", |
| 716 | + "required": true, |
| 717 | + "type": "string" |
| 718 | + } |
| 719 | + ], |
| 720 | + "responses": { |
| 721 | + "200": { |
| 722 | + "description": "OK", |
| 723 | + "schema": { |
| 724 | + "$ref": "#/definitions/workloadProfileStatesCollection" |
| 725 | + } |
| 726 | + }, |
| 727 | + "default": { |
| 728 | + "description": "Common error response.", |
| 729 | + "schema": { |
| 730 | + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" |
| 731 | + } |
| 732 | + } |
| 733 | + }, |
| 734 | + "x-ms-pageable": { |
| 735 | + "nextLinkName": "nextLink" |
| 736 | + }, |
| 737 | + "x-ms-examples": { |
| 738 | + "List environments by subscription": { |
| 739 | + "$ref": "./examples/ManagedEnvironments_ListWorkloadProfileStates.json" |
| 740 | + } |
| 741 | + } |
| 742 | + } |
697 | 743 | }
|
698 | 744 | },
|
699 | 745 | "definitions": {
|
|
1025 | 1071 | "required": [
|
1026 | 1072 | "name"
|
1027 | 1073 | ]
|
| 1074 | + }, |
| 1075 | + "workloadProfileStates": { |
| 1076 | + "description": "Collection of all the workload Profile States for a Premium Managed Environment..", |
| 1077 | + "type": "object", |
| 1078 | + "allOf": [ |
| 1079 | + { |
| 1080 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" |
| 1081 | + } |
| 1082 | + ], |
| 1083 | + "properties": { |
| 1084 | + "properties": { |
| 1085 | + "description": "Workload Profile resource specific properties.", |
| 1086 | + "type": "object", |
| 1087 | + "properties": { |
| 1088 | + "minimumCount": { |
| 1089 | + "type": "integer", |
| 1090 | + "format": "int32", |
| 1091 | + "description": "Minimum count of instances." |
| 1092 | + }, |
| 1093 | + "maximumCount": { |
| 1094 | + "type": "integer", |
| 1095 | + "format": "int32", |
| 1096 | + "description": "Maximum count of nodes." |
| 1097 | + }, |
| 1098 | + "currentCount": { |
| 1099 | + "type": "integer", |
| 1100 | + "format": "int32", |
| 1101 | + "description": "Current count of nodes." |
| 1102 | + } |
| 1103 | + } |
| 1104 | + } |
| 1105 | + } |
| 1106 | + }, |
| 1107 | + "workloadProfileStatesCollection": { |
| 1108 | + "description": "Collection of workloadProfileStates", |
| 1109 | + "required": [ |
| 1110 | + "value" |
| 1111 | + ], |
| 1112 | + "type": "object", |
| 1113 | + "properties": { |
| 1114 | + "value": { |
| 1115 | + "description": "Collection of resources.", |
| 1116 | + "type": "array", |
| 1117 | + "items": { |
| 1118 | + "$ref": "#/definitions/workloadProfileStates" |
| 1119 | + } |
| 1120 | + }, |
| 1121 | + "nextLink": { |
| 1122 | + "description": "Link to next page of resources.", |
| 1123 | + "type": "string", |
| 1124 | + "readOnly": true |
| 1125 | + } |
| 1126 | + } |
1028 | 1127 | }
|
1029 | 1128 | },
|
1030 | 1129 | "securityDefinitions": {
|
|
0 commit comments