Skip to content

Commit 9e6fdea

Browse files
arndt-snatronqYannick Pobiega
authored
[Hub Generated] Public private branch 'msi-associated-resources-preview-api-2021-09-30' (#18123)
* Adds base for updating Microsoft.ManagedIdentity from version stable/2018-11-30 to version 2021-09-30-preview * Updates readme * Updates API version in new specs and examples * Associated resources preview API * Fix linter issues * Use POST instead of GET * Fix example * fix skiptoken parameter to lowercase * fix formats in examples * replace empty with random GUIDs Co-authored-by: Yannick <6431099+natronq@users.noreply.github.com> Co-authored-by: Yannick Pobiega <ypobiega@microsoft.com>
1 parent 7ba63c3 commit 9e6fdea

File tree

11 files changed

+1121
-8
lines changed

11 files changed

+1121
-8
lines changed

specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2021-09-30-preview/ManagedIdentity.json

Lines changed: 816 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rgName",
6+
"resourceName": "resourceName",
7+
"parameters": {
8+
"location": "eastus",
9+
"tags": {
10+
"key1": "value1",
11+
"key2": "value2"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"201": {
17+
"body": {
18+
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
19+
"location": "eastus",
20+
"name": "identityName",
21+
"properties": {
22+
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29",
23+
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad",
24+
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969"
25+
},
26+
"tags": {
27+
"key1": "value1",
28+
"key2": "value2"
29+
},
30+
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
31+
}
32+
},
33+
"200": {
34+
"body": {
35+
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
36+
"location": "eastus",
37+
"name": "identityName",
38+
"properties": {
39+
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29",
40+
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad",
41+
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969"
42+
},
43+
"tags": {
44+
"key1": "value1",
45+
"key2": "value2"
46+
},
47+
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
48+
}
49+
}
50+
}
51+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rgName",
6+
"resourceName": "resourceName"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rgName",
6+
"resourceName": "resourceName"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
12+
"location": "eastus",
13+
"name": "identityName",
14+
"properties": {
15+
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29",
16+
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad",
17+
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969"
18+
},
19+
"tags": {
20+
"key1": "value1",
21+
"key2": "value2"
22+
},
23+
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview",
4+
"subscriptionId": "1cscb752-d7c9-463f-9731-fd31edada74a",
5+
"resourceGroupName": "testrg",
6+
"resourceName": "testid",
7+
"$filter": "contains(name, 'test')",
8+
"$orderby": "name asc",
9+
"$top": 10,
10+
"$skip": 1
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"totalCount": 4,
16+
"value": [
17+
{
18+
"id": "/subscriptions/1cscb752-d7c9-463f-9731-fd31edada74a/resourceGroups/testrg/providers/Microsoft.CognitiveServices/accounts/test1",
19+
"name": "test1",
20+
"type": "microsoft.cognitiveservices/accounts",
21+
"resourceGroup": "testrg",
22+
"subscriptionId": "1cscb752-d7c9-463f-9731-fd31edada74a",
23+
"subscriptionDisplayName": "TestSubscription"
24+
},
25+
{
26+
"id": "/subscriptions/1cscb752-d7c9-463f-9731-fd31edada74a/resourceGroups/testrg/providers/Microsoft.CognitiveServices/accounts/test2",
27+
"name": "test2",
28+
"type": "microsoft.cognitiveservices/accounts",
29+
"resourceGroup": "testrg",
30+
"subscriptionId": "1cscb752-d7c9-463f-9731-fd31edada74a",
31+
"subscriptionDisplayName": "TestSubscription"
32+
}
33+
]
34+
},
35+
"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"
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rgName"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
13+
"location": "eastus",
14+
"name": "identityName",
15+
"properties": {
16+
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29",
17+
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad",
18+
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969"
19+
},
20+
"tags": {
21+
"key1": "value1",
22+
"key2": "value2"
23+
},
24+
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
25+
}
26+
],
27+
"nextLink": "https://serviceRoot/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2021-09-30-preview&$skiptoken=X'12345'"
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview",
4+
"subscriptionId": "subid"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
12+
"location": "eastus",
13+
"name": "identityName",
14+
"properties": {
15+
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29",
16+
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad",
17+
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969"
18+
},
19+
"tags": {
20+
"key1": "value1",
21+
"key2": "value2"
22+
},
23+
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
24+
}
25+
],
26+
"nextLink": "https://serviceRoot/subscriptions/subId/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2021-09-30-preview&$skiptoken=X'12345'"
27+
}
28+
}
29+
}
30+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rgName",
6+
"resourceName": "resourceName",
7+
"parameters": {
8+
"location": "eastus",
9+
"tags": {
10+
"key1": "value1",
11+
"key2": "value2"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
19+
"location": "eastus",
20+
"name": "identityName",
21+
"properties": {
22+
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29",
23+
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad",
24+
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969"
25+
},
26+
"tags": {
27+
"key1": "value1",
28+
"key2": "value2"
29+
},
30+
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
31+
}
32+
}
33+
}
34+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"display": {
11+
"description": "Gets an existing user assigned identity",
12+
"operation": "Get User Assigned Identity",
13+
"resource": "User Assigned Identities",
14+
"provider": "Managed Service Identity"
15+
},
16+
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/read"
17+
},
18+
{
19+
"display": {
20+
"description": "Creates a new user assigned identity or updates the tags associated with an existing user assigned identity",
21+
"operation": "Create/Update User Assigned Identity",
22+
"resource": "User Assigned Identities",
23+
"provider": "Managed Service Identity"
24+
},
25+
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/write"
26+
},
27+
{
28+
"display": {
29+
"description": "Deletes an existing user assigned identity",
30+
"operation": "Delete User Assigned Identity",
31+
"resource": "User Assigned Identities",
32+
"provider": "Managed Service Identity"
33+
},
34+
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/delete"
35+
}
36+
],
37+
"nextLink": "https://serviceRoot/providers/Microsoft.ManagedIdentity/operations?api-version=2021-09-30-preview&$skiptoken=X'12345'"
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-30-preview",
4+
"scope": "scope"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/scope",
10+
"location": "cus",
11+
"name": "resourceName",
12+
"properties": {
13+
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29",
14+
"clientSecretUrl": "https://serviceRoot/scope/credentials?tid=tenantId&oid=principalId&aid=clientId",
15+
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad",
16+
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969"
17+
},
18+
"type": "ResourceProvider"
19+
}
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)