Subscription Interface

Implements

HasInner<com.microsoft.azure.management.resources.implementation.SubscriptionInner> Indexable

public interface Subscription
extends Indexable, HasInner<com.microsoft.azure.management.resources.implementation.SubscriptionInner>

An immutable client-side representation of an Azure subscription.

Method Summary

Modifier and Type Method and Description
abstract java.lang.String displayName()
abstract Location getLocationByRegion(Region region)

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

abstract com.microsoft.azure.PagedList<Location> listLocations()

List the locations the subscription has access to.

abstract java.util.List<ManagedByTenant> managedByTenants()
abstract SubscriptionState state()
abstract java.lang.String subscriptionId()
abstract SubscriptionPolicies subscriptionPolicies()
abstract java.lang.String tenantId()

Method Details

displayName

public abstract String displayName()

Returns:

the name of the subscription for humans to read

getLocationByRegion

public abstract 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 abstract PagedList listLocations()

List the locations the subscription has access to.

Returns:

the lazy list of locations

managedByTenants

public abstract List managedByTenants()

Returns:

the array containing the tenants managing the subscription

state

public abstract SubscriptionState state()

Returns:

the state of the subscription.

subscriptionId

public abstract String subscriptionId()

Returns:

the UUID of the subscription

subscriptionPolicies

public abstract SubscriptionPolicies subscriptionPolicies()

Returns:

the policies defined in the subscription

tenantId

public abstract String tenantId()

Returns:

the UUID of the subscription tenant

Applies to