List Available Regions

Note

It is now recommended to use the Azure Resource Manager (ARM) REST API endpoints, as described in Media Services management REST API reference.

The GET request method described in this topic returns SupportedRegions in the specified subscription. The data contract for SupportedRegion is defined later in this topic.

The request may be specified as follows (replace <subscription-id> with your subscription ID):

Method Request URI
GET https://endpoint/<subscriptionId>/services/mediaservices/SupportedRegions

A successful operation returns status code 200 (OK). For information about error codes, see Media Services Management Error Codes.

Data Contract

The data contract for SupportedRegion is defined as follows:

[DataContract]   
public class SupportedRegion   
{   
    public SupportedRegion();   
    [DataMember]   
    public string RegionName { get; set; }   
}  

For more information about request and response formats, see Media Services Operations REST

Example

See How to: Use Media Services Management REST API.