-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Hub Generated] Public private branch 'msi-associated-resources-preview-api-2021-09-30' #18123
Merged
lirenhe
merged 10 commits into
main
from
published/natronq/azure-rest-api-specs-pr/msi-associated-resources-preview-api-2021-09-30
Mar 16, 2022
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b20ad0d
Adds base for updating Microsoft.ManagedIdentity from version stable/…
natronq 8e129d8
Updates readme
natronq 02dac23
Updates API version in new specs and examples
natronq 283e2cd
Associated resources preview API
0a8cddf
Fix linter issues
ade20f3
Use POST instead of GET
82ade83
Fix example
081629b
fix skiptoken parameter to lowercase
arndt-s f03662c
fix formats in examples
arndt-s 8f323d3
replace empty with random GUIDs
arndt-s 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
816 changes: 816 additions & 0 deletions
816
...esource-manager/Microsoft.ManagedIdentity/preview/2021-09-30-preview/ManagedIdentity.json
Large diffs are not rendered by default.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
...manager/Microsoft.ManagedIdentity/preview/2021-09-30-preview/examples/IdentityCreate.json
This file contains 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,51 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rgName", | ||
"resourceName": "resourceName", | ||
"parameters": { | ||
"location": "eastus", | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", | ||
"location": "eastus", | ||
"name": "identityName", | ||
"properties": { | ||
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29", | ||
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad", | ||
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969" | ||
}, | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
}, | ||
"type": "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", | ||
"location": "eastus", | ||
"name": "identityName", | ||
"properties": { | ||
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29", | ||
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad", | ||
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969" | ||
}, | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
}, | ||
"type": "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...manager/Microsoft.ManagedIdentity/preview/2021-09-30-preview/examples/IdentityDelete.json
This file contains 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,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rgName", | ||
"resourceName": "resourceName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...ce-manager/Microsoft.ManagedIdentity/preview/2021-09-30-preview/examples/IdentityGet.json
This file contains 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,27 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rgName", | ||
"resourceName": "resourceName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", | ||
"location": "eastus", | ||
"name": "identityName", | ||
"properties": { | ||
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29", | ||
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad", | ||
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969" | ||
}, | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
}, | ||
"type": "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
....ManagedIdentity/preview/2021-09-30-preview/examples/IdentityListAssociatedResources.json
This file contains 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,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview", | ||
"subscriptionId": "1cscb752-d7c9-463f-9731-fd31edada74a", | ||
"resourceGroupName": "testrg", | ||
"resourceName": "testid", | ||
"$filter": "contains(name, 'test')", | ||
"$orderby": "name asc", | ||
"$top": 10, | ||
"$skip": 1 | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"totalCount": 4, | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/1cscb752-d7c9-463f-9731-fd31edada74a/resourceGroups/testrg/providers/Microsoft.CognitiveServices/accounts/test1", | ||
"name": "test1", | ||
"type": "microsoft.cognitiveservices/accounts", | ||
"resourceGroup": "testrg", | ||
"subscriptionId": "1cscb752-d7c9-463f-9731-fd31edada74a", | ||
"subscriptionDisplayName": "TestSubscription" | ||
}, | ||
{ | ||
"id": "/subscriptions/1cscb752-d7c9-463f-9731-fd31edada74a/resourceGroups/testrg/providers/Microsoft.CognitiveServices/accounts/test2", | ||
"name": "test2", | ||
"type": "microsoft.cognitiveservices/accounts", | ||
"resourceGroup": "testrg", | ||
"subscriptionId": "1cscb752-d7c9-463f-9731-fd31edada74a", | ||
"subscriptionDisplayName": "TestSubscription" | ||
} | ||
] | ||
}, | ||
"nextLink": "https://management.azure.com/subscriptions/1cscb752-d7c9-463f-9731-fd31edada74a/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testid?skiptoken=ew0KICAiJGlkIjogIjEiLA0KICAiTWF4Um93cyI6IDIsDQogICJSb3dzVG9Ta2lwIjogMiwNCiAgIkt1c3RvQ2x1c3RlclVybCI6ICJodHRwczovL2FybXRvcG9sb2d5Lmt1c3RvLndpbmRvd3MubmV0Ig0KfQ%253d%253d&api-version=2021-09-30" | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...soft.ManagedIdentity/preview/2021-09-30-preview/examples/IdentityListByResourceGroup.json
This file contains 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,31 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rgName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", | ||
"location": "eastus", | ||
"name": "identityName", | ||
"properties": { | ||
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29", | ||
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad", | ||
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969" | ||
}, | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
}, | ||
"type": "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
} | ||
], | ||
"nextLink": "https://serviceRoot/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2021-09-30-preview&$skiptoken=X'12345'" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...osoft.ManagedIdentity/preview/2021-09-30-preview/examples/IdentityListBySubscription.json
This file contains 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,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", | ||
"location": "eastus", | ||
"name": "identityName", | ||
"properties": { | ||
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29", | ||
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad", | ||
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969" | ||
}, | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
}, | ||
"type": "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
} | ||
], | ||
"nextLink": "https://serviceRoot/subscriptions/subId/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2021-09-30-preview&$skiptoken=X'12345'" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...manager/Microsoft.ManagedIdentity/preview/2021-09-30-preview/examples/IdentityUpdate.json
This file contains 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,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rgName", | ||
"resourceName": "resourceName", | ||
"parameters": { | ||
"location": "eastus", | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", | ||
"location": "eastus", | ||
"name": "identityName", | ||
"properties": { | ||
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29", | ||
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad", | ||
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969" | ||
}, | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
}, | ||
"type": "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...ager/Microsoft.ManagedIdentity/preview/2021-09-30-preview/examples/MsiOperationsList.json
This file contains 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,41 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"display": { | ||
"description": "Gets an existing user assigned identity", | ||
"operation": "Get User Assigned Identity", | ||
"resource": "User Assigned Identities", | ||
"provider": "Managed Service Identity" | ||
}, | ||
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/read" | ||
}, | ||
{ | ||
"display": { | ||
"description": "Creates a new user assigned identity or updates the tags associated with an existing user assigned identity", | ||
"operation": "Create/Update User Assigned Identity", | ||
"resource": "User Assigned Identities", | ||
"provider": "Managed Service Identity" | ||
}, | ||
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/write" | ||
}, | ||
{ | ||
"display": { | ||
"description": "Deletes an existing user assigned identity", | ||
"operation": "Delete User Assigned Identity", | ||
"resource": "User Assigned Identities", | ||
"provider": "Managed Service Identity" | ||
}, | ||
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/delete" | ||
} | ||
], | ||
"nextLink": "https://serviceRoot/providers/Microsoft.ManagedIdentity/operations?api-version=2021-09-30-preview&$skiptoken=X'12345'" | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...rosoft.ManagedIdentity/preview/2021-09-30-preview/examples/SystemAssignedIdentityGet.json
This file contains 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,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-30-preview", | ||
"scope": "scope" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/scope", | ||
"location": "cus", | ||
"name": "resourceName", | ||
"properties": { | ||
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29", | ||
"clientSecretUrl": "https://serviceRoot/scope/credentials?tid=tenantId&oid=principalId&aid=clientId", | ||
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad", | ||
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969" | ||
}, | ||
"type": "ResourceProvider" | ||
} | ||
} | ||
} | ||
} |
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the inconsistency between the api-version and folder name is caused by the tag name of the SDK should be added with the date information, such as
package-preview-2021-09-30
, otherwise the folder name of the SDK version will default to2021_09_01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created #18850 for the fix