-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global CheckNameAvailability for VideoIndexer Accounts (#4469)
* Global CheckNameAvailability for VideoIndexer Accounts * Fixes * Fix prettier * Fix prittier 2 * New ApiVersion * Remove changes to old version * Fix readme * Model as string fix * Change parameter name * Fix examples
- Loading branch information
Showing
25 changed files
with
1,928 additions
and
4 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
....VideoIndexer/preview/2021-08-01-preview/examples/ViAccountCheckNameAvailabilityFree.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,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-01-preview", | ||
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e", | ||
"checkNameAvailabilityParameters": { | ||
"name": "vi1", | ||
"type": "Microsoft.VideoIndexer/accounts" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...VideoIndexer/preview/2021-08-01-preview/examples/ViAccountCheckNameAvailabilityTaken.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,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-01-preview", | ||
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e", | ||
"checkNameAvailabilityParameters": { | ||
"name": "vi1", | ||
"type": "Microsoft.VideoIndexer/accounts" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "Resource name already exists" | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...e-manager/Microsoft.VideoIndexer/preview/2021-08-01-preview/examples/ViAccountDelete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "contosto-videoanalyzer", | ||
"resourceGroupName": "contoso-rg", | ||
"api-version": "2021-08-01-preview", | ||
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...urce-manager/Microsoft.VideoIndexer/preview/2021-08-01-preview/examples/ViAccountGet.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": { | ||
"accountName": "contosto-videoanalyzer", | ||
"resourceGroupName": "contoso-rg", | ||
"api-version": "2021-08-01-preview", | ||
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contoso-videoanalyzer", | ||
"name": "vi1", | ||
"type": "Microsoft.VideoIndexer/accounts", | ||
"location": "NorthEurope", | ||
"tags": {}, | ||
"properties": { | ||
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", | ||
"accountName": "contosto-videoanalyzer", | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
}, | ||
"provisioningState": "Succeeded" | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"tenantId": "58b626e9-af53-4351-84c0-5adc7b39f1a3", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { | ||
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", | ||
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
...e-manager/Microsoft.VideoIndexer/preview/2021-08-01-preview/examples/ViAccountPatch1.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,88 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "contosto-videoanalyzer", | ||
"resourceGroupName": "contosto-videoanalyzer-rg", | ||
"api-version": "2021-08-01-preview", | ||
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", | ||
"parameters": { | ||
"properties": { | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
} | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", | ||
"name": "contosto-videoanalyzer", | ||
"location": "NorthEurope", | ||
"type": "Microsoft.VideoIndexer/accounts", | ||
"tags": {}, | ||
"properties": { | ||
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", | ||
"accountName": "contosto-videoanalyzer", | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
}, | ||
"provisioningState": "Succeeded" | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"tenantId": "58b626e9-af53-4351-84c0-5adc7b39f1a3", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { | ||
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", | ||
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", | ||
"name": "contosto-videoanalyzer", | ||
"location": "NorthEurope", | ||
"type": "Microsoft.VideoIndexer/accounts", | ||
"tags": {}, | ||
"properties": { | ||
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", | ||
"accountName": "contosto-videoanalyzer", | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"tenantId": "58b626e9-af53-4351-84c0-5adc7b39f1a3", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { | ||
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", | ||
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "EVENT_GRID_NOT_REGISTERED", | ||
"message": "Microsoft.EventGrid resource provider is not registered in subscription" | ||
} | ||
} | ||
} | ||
} | ||
} |
81 changes: 81 additions & 0 deletions
81
...e-manager/Microsoft.VideoIndexer/preview/2021-08-01-preview/examples/ViAccountPatch2.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,81 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "contosto-videoanalyzer", | ||
"resourceGroupName": "contosto-videoanalyzer-rg", | ||
"api-version": "2021-08-01-preview", | ||
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", | ||
"parameters": { | ||
"properties": { | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", | ||
"name": "contosto-videoanalyzer", | ||
"location": "NorthEurope", | ||
"type": "Microsoft.VideoIndexer/accounts", | ||
"tags": {}, | ||
"properties": { | ||
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", | ||
"accountName": "contosto-videoanalyzer", | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
}, | ||
"provisioningState": "Succeeded" | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"tenantId": "58b626e9-af53-4351-84c0-5adc7b39f1a3", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { | ||
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", | ||
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", | ||
"name": "contosto-videoanalyzer", | ||
"location": "NorthEurope", | ||
"type": "Microsoft.VideoIndexer/accounts", | ||
"tags": {}, | ||
"properties": { | ||
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", | ||
"accountName": "contosto-videoanalyzer", | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"tenantId": "58b626e9-af53-4351-84c0-5adc7b39f1a3", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { | ||
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", | ||
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "MS_IN_ANOTHER_LOCATION", | ||
"message": "Can not connect to a Media Services account which is not in the same location as the VideoIndexer account" | ||
} | ||
} | ||
} | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
...e-manager/Microsoft.VideoIndexer/preview/2021-08-01-preview/examples/ViAccountPatch3.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,87 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "contosto-videoanalyzer", | ||
"resourceGroupName": "contosto-videoanalyzer-rg", | ||
"api-version": "2021-08-01-preview", | ||
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", | ||
"parameters": { | ||
"properties": { | ||
"mediaServices": { | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
} | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", | ||
"name": "contosto-videoanalyzer", | ||
"location": "NorthEurope", | ||
"type": "Microsoft.VideoIndexer/accounts", | ||
"tags": {}, | ||
"properties": { | ||
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", | ||
"accountName": "contosto-videoanalyzer", | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
}, | ||
"provisioningState": "Succeeded" | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"tenantId": "58b626e9-af53-4351-84c0-5adc7b39f1a3", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { | ||
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", | ||
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", | ||
"name": "contosto-videoanalyzer", | ||
"location": "NorthEurope", | ||
"type": "Microsoft.VideoIndexer/accounts", | ||
"tags": {}, | ||
"properties": { | ||
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", | ||
"accountName": "contosto-videoanalyzer", | ||
"mediaServices": { | ||
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", | ||
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" | ||
}, | ||
"provisioningState": "Succeeded" | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"tenantId": "58b626e9-af53-4351-84c0-5adc7b39f1a3", | ||
"userAssignedIdentities": { | ||
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { | ||
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", | ||
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "MS_UNREACHABLE", | ||
"message": "Failed to connect to Media Services account" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.