Media Service - List Keys
Lists the keys for a Media Service.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/listKeys?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. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Success. The keys for the Media Services account were listed. |
|
| Other Status Codes |
List Media Service keys failed. |
Examples
MediaServiceListKeys
Sample Request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia/listKeys?api-version=2015-10-01
Sample Response
{
"primaryAuthEndpoint": "https://wamsprodglobal001acs.accesscontrol.windows.net/",
"secondaryAuthEndpoint": "https://wamsprodglobal002acs.accesscontrol.windows.net/",
"primaryKey": "",
"secondaryKey": "",
"scope": "urn:windowsazuremediaservices"
}
Definitions
| ApiError | |
| ServiceKeys |
| Name | Type | Description |
|---|---|---|
| code |
|
Error code. |
| message |
|
Error message. |
| Name | Type | Description |
|---|---|---|
| primaryAuthEndpoint |
|
The primary authorization endpoint. |
| primaryKey |
|
The primary key for the Media Service resource. |
| scope |
|
The authorization scope. |
| secondaryAuthEndpoint |
|
The secondary authorization endpoint. |
| secondaryKey |
|
The secondary key for the Media Service resource. |