Skip to content

Commit

Permalink
[Hub Generated] Publish private branch 'dev-msi-Microsoft.ManagedIden…
Browse files Browse the repository at this point in the history
…tity-2022-01-31-preview-federated-identities' (#19548)

* Adds base for updating Microsoft.ManagedIdentity from version stable/2018-11-30 to version 2022-01-31-preview

* Updates readme

* Updates API version in new specs and examples

* Add associated resources preview API. See Azure/azure-rest-api-specs-pr#4969

* Add federated identity credentials API

* Incorporating changes from 'msi-associated-resources-preview-api-2021-09-30'

* Examples default values are updated based on private preview feedback

Co-authored-by: Yannick <[email protected]>
Co-authored-by: Yannick Pobiega <[email protected]>
Co-authored-by: Igor Solenov <[email protected]>
  • Loading branch information
4 people authored Jun 22, 2022
1 parent 96e52e2 commit 5b33620
Show file tree
Hide file tree
Showing 15 changed files with 1,484 additions and 2 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"api-version": "2022-01-31-preview",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName",
"federatedIdentityCredentialResourceName": "ficResourceName",
"parameters": {
"properties": {
"issuer": "https://oidc.prod-aks.azure.com/IssuerGUID",
"subject": "system:serviceaccount:ns:svcaccount",
"audiences": [
"api://AzureADTokenExchange"
]
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName/federatedIdentityCredentials/ficResourceName",
"name": "ficResourceName",
"properties": {
"issuer": "https://oidc.prod-aks.azure.com/IssuerGUID",
"subject": "system:serviceaccount:ns:svcaccount",
"audiences": [
"api://AzureADTokenExchange"
]
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials"
}
},
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName/federatedIdentityCredentials/ficResourceName",
"name": "ficResourceName",
"properties": {
"issuer": "https://oidc.prod-aks.azure.com/IssuerGUID",
"subject": "system:serviceaccount:ns:svcaccount",
"audiences": [
"api://AzureADTokenExchange"
]
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2022-01-31-preview",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName",
"federatedIdentityCredentialResourceName": "ficResourceName"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2022-01-31-preview",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName",
"federatedIdentityCredentialResourceName": "ficResourceName"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName/federatedIdentityCredentials/ficResourceName",
"name": "ficResourceName",
"properties": {
"issuer": "https://oidc.prod-aks.azure.com/IssuerGUID",
"subject": "system:serviceaccount:ns:svcaccount",
"audiences": [
"api://AzureADTokenExchange"
]
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2022-01-31-preview",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName",
"top": "20"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName/federatedIdentityCredentials/ficResourceName",
"name": "ficResourceName",
"properties": {
"issuer": "https://oidc.prod-aks.azure.com/IssuerGUID",
"subject": "system:serviceaccount:ns:svcaccount",
"audiences": [
"api://AzureADTokenExchange"
]
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials"
}
],
"nextLink": "https://serviceRoot/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/resourceName/federatedIdentityCredentials?api-version=2020-11-30-preview&$skipToken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"api-version": "2022-01-31-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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2022-01-31-preview",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2022-01-31-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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2022-01-31-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"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2022-01-31-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=2022-01-31-preview&$skiptoken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2022-01-31-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=2022-01-31-preview&$skiptoken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2022-01-31-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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"api-version": "2022-01-31-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=2022-01-31-preview&$skiptoken=X'12345'"
}
}
}
}
Loading

0 comments on commit 5b33620

Please sign in to comment.