AzureResourceManager.Authenticated Interface
Implements
public static interface AzureResourceManager.Authenticated
extends AccessManagement
Provides authenticated access to a subset of Azure APIs that do not require a specific subscription.
To access the subscription-specific APIs, use Authenticated#withSubscription(String), or withDefaultSubscription() if a default subscription has already been previously specified (for example, in a previously specified authentication file).
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Subscriptions |
subscriptions()
Entry point to subscription management APIs. |
abstract String | tenantId() |
abstract Tenants |
tenants()
Entry point to tenant management APIs. |
abstract
Azure |
withDefaultSubscription()
Selects the default subscription as the subscription for the APIs to work with. |
abstract
Azure |
withSubscription(String subscriptionId)
Selects a specific subscription for the APIs to work with. |
abstract Authenticated |
withTenantId(String tenantId)
Specifies a specific tenant for azure. |
Method Details
subscriptions
public abstract Subscriptions subscriptions()
Entry point to subscription management APIs.
Returns:
tenantId
public abstract String tenantId()
Returns:
tenants
public abstract Tenants tenants()
Entry point to tenant management APIs.
Returns:
withDefaultSubscription
public abstract AzureResourceManager withDefaultSubscription()
Selects the default subscription as the subscription for the APIs to work with.
The default subscription can be specified inside the Azure profile using AzureProfile. If no default subscription provided, we will try to set the only subscription if applicable returned by Authenticated#subscriptions()
Returns:
withSubscription
public abstract AzureResourceManager withSubscription(String subscriptionId)
Selects a specific subscription for the APIs to work with.
Most Azure APIs require a specific subscription to be selected.
Parameters:
Returns:
withTenantId
public abstract AzureResourceManager.Authenticated withTenantId(String tenantId)
Specifies a specific tenant for azure.
Only Graph RBAC APIs require a tenant to be selected.
Parameters:
Returns: