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
  • string

The unique identifier for a Microsoft Azure subscription.

resourceGroupName
path True
  • string

Name of the resource group within the Azure subscription.

mediaServiceName
path True
  • string

Name of the Media Service.

Regex pattern: ^[a-z0-9]{3,24}$

api-version
query True
  • string

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
  • string

Error code.

message
  • string

Error message.

Name Type Description
primaryAuthEndpoint
  • string

The primary authorization endpoint.

primaryKey
  • string

The primary key for the Media Service resource.

scope
  • string

The authorization scope.

secondaryAuthEndpoint
  • string

The secondary authorization endpoint.

secondaryKey
  • string

The secondary key for the Media Service resource.