Media Service - Sync Storage Keys
Synchronizes storage account keys for a storage account associated with the Media Service account.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/syncStorageKeys?api-version={api-version}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscriptionId
|
path | True |
|
The unique identifier for a Microsoft Azure subscription. |
|
resourceGroupName
|
path | True |
|
Name of the resource group within the Azure subscription. |
|
mediaServiceName
|
path | True |
|
Name of the Media Service. Regex pattern: |
|
api-version
|
query | True |
|
Version of the API to be used with the client request. The current version is 2015-10-01. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| id | True |
|
The id of the storage account resource. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Success. The keys for the storage account were synchronized. |
|
| Other Status Codes |
Synch Media Service storage keys failed. |
Examples
MediaServiceSyncStorageKeys
Sample Request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia/syncStorageKeys?api-version=2015-10-01
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore"
}
Sample Response
Definitions
| Name | Type | Description |
|---|---|---|
| code |
|
Error code. |
| message |
|
Error message. |