Subscriptions Interface

public interface Subscriptions

Resource collection API of Subscriptions.

Method Summary

Modifier and Type Method and Description
abstract Subscription get(String subscriptionId)

Gets details about a specified subscription.

abstract Response<Subscription> getWithResponse(String subscriptionId, Context context)

Gets details about a specified subscription.

abstract PagedIterable<Subscription> list()

Gets all subscriptions for a tenant.

abstract PagedIterable<Subscription> list(Context context)

Gets all subscriptions for a tenant.

abstract PagedIterable<Location> listLocations(String subscriptionId)

Gets all available geo-locations.

abstract PagedIterable<Location> listLocations(String subscriptionId, Context context)

Gets all available geo-locations.

Method Details

get

public abstract Subscription get(String subscriptionId)

Gets details about a specified subscription.

Parameters:

subscriptionId - The ID of the target subscription.

Returns:

details about a specified subscription.

getWithResponse

public abstract Response getWithResponse(String subscriptionId, Context context)

Gets details about a specified subscription.

Parameters:

subscriptionId - The ID of the target subscription.
context - The context to associate with this operation.

Returns:

details about a specified subscription along with Response<T>.

list

public abstract PagedIterable list()

Gets all subscriptions for a tenant.

Returns:

all subscriptions for a tenant as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(Context context)

Gets all subscriptions for a tenant.

Parameters:

context - The context to associate with this operation.

Returns:

all subscriptions for a tenant as paginated response with PagedIterable<T>.

listLocations

public abstract PagedIterable listLocations(String subscriptionId)

Gets all available geo-locations.

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

Parameters:

subscriptionId - The ID of the target subscription.

Returns:

location list operation response as paginated response with PagedIterable<T>.

listLocations

public abstract PagedIterable listLocations(String subscriptionId, Context context)

Gets all available geo-locations.

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

Parameters:

subscriptionId - The ID of the target subscription.
context - The context to associate with this operation.

Returns:

location list operation response as paginated response with PagedIterable<T>.

Applies to