Partilhar via


ResourceManager.Authenticated Interface

public static interface ResourceManager.Authenticated

The interface exposing resource management API entry points that work across subscriptions.

Method Summary

Modifier and Type Method and Description
abstract Subscriptions subscriptions()
abstract Tenants tenants()
abstract ResourceManager withDefaultSubscription()

Specifies to use subscription from AzureProfile.

abstract ResourceManager withSubscription(String subscriptionId)

Specifies a subscription to expose resource management API entry points that work in a subscription.

Method Details

subscriptions

public abstract Subscriptions subscriptions()

Returns:

the entry point to subscription management API.

tenants

public abstract Tenants tenants()

Returns:

the entry point to tenant management API.

withDefaultSubscription

public abstract ResourceManager withDefaultSubscription()

Specifies to use subscription from AzureProfile. If no subscription provided, we will try to set the only subscription if applicable returned by Authenticated#subscriptions().

Returns:

the ResourceManager instance with entry points that work in a subscription

withSubscription

public abstract ResourceManager withSubscription(String subscriptionId)

Specifies a subscription to expose resource management API entry points that work in a subscription.

Parameters:

subscriptionId - the subscription UUID

Returns:

the ResourceManager instance with entry points that work in a subscription

Applies to