Subscription Interface

public interface Subscription extends Indexable,HasInner

An immutable client-side representation of an Azure subscription.

Method Summary

Modifier and Type Method and Description
String displayName()
Location getLocationByRegion(Region region)

Gets the data center location for the specified region, if the selected subscription has access to it.

PagedList<Location> listLocations()

List the locations the subscription has access to.

SubscriptionState state()
String subscriptionId()
SubscriptionPolicies subscriptionPolicies()

Inherited Members

Method Details

displayName

public String displayName()

Returns:

the name of the subscription for humans to read

getLocationByRegion

public Location getLocationByRegion(Region region)

Gets the data center location for the specified region, if the selected subscription has access to it.

Parameters:

region - an Azure region

Returns:

an Azure data center location, or null if the location is not accessible to this subscription

listLocations

public PagedList listLocations()

List the locations the subscription has access to.

Returns:

the lazy list of locations

state

public SubscriptionState state()

Returns:

the state of the subscription.

subscriptionId

public String subscriptionId()

Returns:

the UUID of the subscription

subscriptionPolicies

public SubscriptionPolicies subscriptionPolicies()

Returns:

the policies defined in the subscription

Applies to