Media Service - List By Resource Group
Lists all of the Media Services in a resource group.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices?api-version={api-version}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
mediaServiceName
|
path | True |
|
Name of the Media Service.
Regex pattern: |
|
subscriptionId
|
path | True |
|
The unique identifier for a Microsoft Azure subscription. |
|
resourceGroupName
|
path | True |
|
Name of the resource group within the Azure subscription. |
|
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. Returns a list of all of the Media Services accounts in a resource group. |
|
| Other Status Codes |
List Media Services failed. |
Examples
MediaServiceListByResourceGroup
Sample Request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices?api-version=2015-10-01
Sample Response
{
"value": [
{
"name": "contosmedia",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia",
"type": "Microsoft.Media/mediaservices",
"tags": [],
"location": "East US",
"properties": {
"apiEndpoints": [
{
"endpoint": "https://contosmedia.restv2.eastus.media.azure.net/api/",
"majorVersion": "2"
}
],
"storageAccounts": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore",
"isPrimary": true
}
]
}
},
{
"name": "contosmedia2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia2",
"type": "Microsoft.Media/mediaservices",
"tags": [],
"location": "West US",
"properties": {
"apiEndpoints": [
{
"endpoint": "https://contosmedia2.restv2.westus.media.azure.net/api/",
"majorVersion": "2"
}
],
"storageAccounts": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/microsoft.storage/storageAccounts/contosostore2",
"isPrimary": true
}
]
}
}
]
}
Definitions
| ApiEndpoint |
The properties for a Media Services REST API endpoint. |
| ApiError | |
| MediaService |
The properties of a Media Service resource. |
| MediaServiceCollection | |
| StorageAccount |
The properties of a storage account associated with this resource. |
The properties for a Media Services REST API endpoint.
| Name | Type | Description |
|---|---|---|
| endpoint |
|
The Media Services REST endpoint. |
| majorVersion |
|
The version of Media Services REST API. |
| Name | Type | Description |
|---|---|---|
| code |
|
Error code. |
| message |
|
Error message. |
The properties of a Media Service resource.
| Name | Type | Description |
|---|---|---|
| apiEndpoints |
Read-only property that lists the Media Services REST API endpoints for this resource. If supplied on a PUT or PATCH, the value will be ignored. |
|
| id |
|
The id of the resource. |
| location |
|
The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth). |
| name |
|
The name of the resource. |
| storageAccounts |
The storage accounts for this resource. |
|
| tags |
|
Tags to help categorize the resource in the Azure portal. |
| type |
|
The type of the resource |
| Name | Type | Description |
|---|---|---|
| value |
The collection of Media Service resources. |
The properties of a storage account associated with this resource.
| Name | Type | Description |
|---|---|---|
| id |
|
The id of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts (isPrimary false). |
| isPrimary |
|
Is this storage account resource the primary storage account for the Media Service resource. Blob only storage must set this to false. |