你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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