-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Availableworkloadprofiles - GET endpoint #20650
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
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
24d1f09
Adds base for updating Microsoft.App from version stable/2022-03-01 t…
ruslany 5e1015c
Updates readme
ruslany bbd4441
Updates API version in new specs and examples
ruslany fabf9a5
Add app diag to 2022-05-01 (#18678)
michimune 7077134
Fix definition for customhostnameesult (#19014)
Juliehzl a33bd39
Cherry pick for the parameter name fixes for the 2022-03-01 and makin…
ruslany 0fd5e26
Fix description in all API versions (#19313)
ruslany 056cc51
Add traffic info to revisions api (#19054)
ruslany 5421cc7
Add httpReadBufferSize to dapr config in Microsoft.App-2022-05-01 (#1…
ahmelsayed 8e5d315
Adds base for updating Microsoft.App from version stable/2022-05-01 t…
Juliehzl 45cd59b
Updates readme
Juliehzl 481bb59
Updates API version in new specs and examples
Juliehzl ec34aa3
Add new resources for 2022-06-01-preview (#19494)
Juliehzl 83d8432
Enable Dapr AI Connection string for Microsoft.App connected environm…
LaylaLiu-gmail 8f6ff49
update (#20013)
Juliehzl 6d7a4b0
Fixdescriptions on microsoft.app 2022 06 01 preview (#20133)
ruslany baa9b05
Added `secretsStoreComponent` in 2022-06-01 spec (#20044)
ItalyPaleAle bb43ed1
Add custom domain configuration for managed environment (#20149)
mjqin 94d84ee
Add additional Dapr options (2022-06-01-preview) (#19886)
ahmelsayed 3450a5c
adding ip-restriction feat (#19841)
tdaroly 903da55
Remove Traffic Labels from revisions because they haven't been impele…
ruslany 2b61c76
Add property for tcp apps (#20193)
zhenqxuMSFT fba4c8b
Add Init Containers to common definitions (#19855)
p-bouchon 68a1c9e
Update container app provisioningstate (#20411)
Juliehzl e4568a1
add property: maxInactiveRevisions (#20334)
njuCZ 62f0c62
Add premium sku related properties for managed environment (#19770)
jijohn14 483d3a4
Fix source control status code in 2022-06-01-preview. (#20429)
yalixiang 9845076
Swagger documentation for /locations/{location}/billingMeters - GET e…
trajkobal 404bde2
Add example, fix validation errors
trajkobal 51042c8
Fix ARM validation errors, code review comments
trajkobal 54d80fd
Fix response validation
trajkobal c6e7c42
Remove 20220501 because we will not support it in server side (#20427)
Juliehzl 10ea6b0
add proxy resource properties
trajkobal df7c4b8
Response formatting
trajkobal b1aab39
Added support for user defined routing (#20464)
desokey cebac94
add default error response
trajkobal 5faf48b
Add available workprofiles -GET endpoint
trajkobal 04a072c
Remove duplicate schema name WorkloadProfile
trajkobal 1fe7a2a
Change memoryGiB to memoryGB as suggested in code review
trajkobal cd99a4b
Add x-ms-pageable - nextLink support to not introduce breaking change…
trajkobal e4b6e9d
rename to memory in GiB because our case is Gibibytes base 1024
trajkobal 6712d92
change friendlyName to displayName
trajkobal 0cce38c
Some more APIs (#20448)
xwang971 2fcf2eb
Add new property to the response object
trajkobal e3d090a
add last active time for revision (#20658)
njuCZ 0624af2
Add custom domain for connected env (#20731)
Juliehzl c371e7c
billingMeters - GET endpoint (#20485)
trajkobal d0f6acb
Change the boolean value for default to enum
trajkobal 41a50c3
change error response to v3/ErrorResponse
trajkobal 20dc2c8
Fix 2022-06-01-preview branch merge conflicts (#20773)
ruslany c49d3c4
Merge branch 'Microsoft.App-2022-06-01-preview' into availableworkloa…
trajkobal 37504c5
Merge branch 'main' into availableworkloadprofiles
trajkobal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
153 changes: 153 additions & 0 deletions
153
.../resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2022-06-01-preview", | ||
"title": "ContainerApps API Client" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes": { | ||
"get": { | ||
"tags": [ | ||
"AvailableWorkloadProfiles" | ||
], | ||
"summary": "Get available workload profiles by location.", | ||
"description": "Get all available workload profiles for a location.", | ||
"operationId": "AvailableWorkloadProfiles_Get", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/AvailableWorkloadProfilesCollection" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
}, | ||
"x-ms-examples": { | ||
"BillingMeters_Get": { | ||
"$ref": "./examples/AvailableWorkloadProfiles_Get.json" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"AvailableWorkloadProfile": { | ||
"description": "A premium workload profile.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" | ||
} | ||
], | ||
"properties": { | ||
"location": { | ||
"type": "string", | ||
"description": "Region of the workload profile." | ||
}, | ||
"properties": { | ||
"description": "Revision resource specific properties", | ||
"type": "object", | ||
"properties": { | ||
"billingMeterCategory": { | ||
"description": "Used to map workload profile types to billing meter.", | ||
"type": "string", | ||
"enum": [ | ||
"PremiumSkuGeneralPurpose", | ||
"PremiumSkuMemoryOptimized", | ||
"PremiumSkuComputeOptimized" | ||
], | ||
"x-ms-enum": { | ||
"name": "Category", | ||
"modelAsString": true | ||
} | ||
}, | ||
"applicability": { | ||
"type": "string", | ||
"description": "indicates whether the profile is default for the location.", | ||
"enum": [ | ||
"LocationDefault", | ||
"Custom" | ||
], | ||
"x-ms-enum": { | ||
"name": "Applicability", | ||
"modelAsString": true | ||
} | ||
}, | ||
"cores": { | ||
"type": "integer", | ||
"format": "int32", | ||
"description": "Number of cores in CPU." | ||
}, | ||
"memoryGiB": { | ||
trajkobal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "integer", | ||
"format": "int32", | ||
"description": "Memory in GiB." | ||
}, | ||
"displayName": { | ||
"type": "string", | ||
"description": "The everyday name of the workload profile." | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"AvailableWorkloadProfilesCollection": { | ||
"description": "Collection of available workload profiles in the location.", | ||
"required": [ | ||
"value" | ||
], | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"description": "Collection of workload profiles.", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/AvailableWorkloadProfile" | ||
} | ||
}, | ||
"nextLink": { | ||
"description": "Link to next page of resources.", | ||
"type": "string", | ||
"readOnly": true | ||
} | ||
} | ||
} | ||
}, | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
} | ||
} |
132 changes: 132 additions & 0 deletions
132
...ager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"location": "East US", | ||
"api-version": "2022-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "General Compute 1", | ||
"billingMeterCategory": "PremiumSkuGeneralCompute", | ||
"applicability": "LocationDefault", | ||
"cores": 4, | ||
"memoryGiB": 16 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-1", | ||
"name": "GeneralCompute-1", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
}, | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "General Compute 2", | ||
"billingMeterCategory": "PremiumSkuGeneralCompute", | ||
"applicability": "Custom", | ||
"cores": 8, | ||
"memoryGiB": 32 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-2", | ||
"name": "GeneralCompute-2", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
}, | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "General Compute 3", | ||
"billingMeterCategory": "PremiumSkuGeneralCompute", | ||
"applicability": "Custom", | ||
"cores": 16, | ||
"memoryGiB": 64 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-3", | ||
"name": "GeneralCompute-3", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
}, | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "Memory Optimized 1", | ||
"billingMeterCategory": "PremiumSkuMemoryOptimized", | ||
"applicability": "Custom", | ||
"cores": 4, | ||
"memoryGiB": 32 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", | ||
"name": "MemoryOptimized-1", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
}, | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "Memory Optimized 2", | ||
"billingMeterCategory": "PremiumSkuMemoryOptimized", | ||
"applicability": "Custom", | ||
"cores": 8, | ||
"memoryGiB": 64 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", | ||
"name": "MemoryOptimized-1", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
}, | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "Memory Optimized 3", | ||
"billingMeterCategory": "PremiumSkuMemoryOptimized", | ||
"applicability": "Custom", | ||
"cores": 16, | ||
"memoryGiB": 128 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", | ||
"name": "MemoryOptimized-1", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
}, | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "CPU Optimized 1", | ||
"billingMeterCategory": "PremiumSkuComputeOptimized", | ||
"applicability": "Custom", | ||
"cores": 4, | ||
"memoryGiB": 8 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-1", | ||
"name": "CPUOptimized-1", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
}, | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "CPU Optimized 2", | ||
"billingMeterCategory": "PremiumSkuComputeOptimized", | ||
"applicability": "Custom", | ||
"cores": 8, | ||
"memoryGiB": 16 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-2", | ||
"name": "CPUOptimized-2", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
}, | ||
{ | ||
"location": "East US", | ||
"properties": { | ||
"displayName": "CPU Optimized 3", | ||
"billingMeterCategory": "PremiumSkuComputeOptimized", | ||
"applicability": "Custom", | ||
"cores": 16, | ||
"memoryGiB": 32 | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-3", | ||
"name": "CPUOptimized-3", | ||
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.