Subscriptions interface

Interface representing a Subscriptions.

Methods

get(string, SubscriptionsGetOptionalParams)

Gets details about a specified subscription.

list(SubscriptionsListOptionalParams)

Gets all subscriptions for a tenant.

listLocations(string, SubscriptionsListLocationsOptionalParams)

This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.

Method Details

get(string, SubscriptionsGetOptionalParams)

Gets details about a specified subscription.

function get(subscriptionId: string, options?: SubscriptionsGetOptionalParams): Promise<Subscription>

Parameters

subscriptionId

string

The ID of the target subscription.

options
SubscriptionsGetOptionalParams

The options parameters.

Returns

Promise<Subscription>

list(SubscriptionsListOptionalParams)

Gets all subscriptions for a tenant.

function list(options?: SubscriptionsListOptionalParams): PagedAsyncIterableIterator<Subscription, Subscription[], PageSettings>

Parameters

options
SubscriptionsListOptionalParams

The options parameters.

Returns

listLocations(string, SubscriptionsListLocationsOptionalParams)

This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.

function listLocations(subscriptionId: string, options?: SubscriptionsListLocationsOptionalParams): PagedAsyncIterableIterator<Location_2, Location_2[], PageSettings>

Parameters

subscriptionId

string

The ID of the target subscription.

options
SubscriptionsListLocationsOptionalParams

The options parameters.

Returns