Interface ResourceManager.Authenticated
- Enclosing class:
ResourceManager
public static interface ResourceManager.Authenticated
The interface exposing resource management API entry points that work across subscriptions.
-
Method Summary
Modifier and TypeMethodDescriptionGets the entry point to subscription management API.tenants()Gets the entry point to tenant management API.Specifies to use subscription fromAzureProfile.withSubscription(String subscriptionId) Specifies a subscription to expose resource management API entry points that work in a subscription.
-
Method Details
-
tenants
Tenants tenants()Gets the entry point to tenant management API.- Returns:
- the entry point to tenant management API.
-
subscriptions
Subscriptions subscriptions()Gets the entry point to subscription management API.- Returns:
- the entry point to subscription management API.
-
withSubscription
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
-
withDefaultSubscription
ResourceManager withDefaultSubscription()Specifies to use subscription fromAzureProfile. If no subscription provided, we will try to set the only subscription if applicable returned bysubscriptions().- Returns:
- the ResourceManager instance with entry points that work in a subscription
- Throws:
IllegalStateException- when no subscription or more than one subscription found in the tenant.
-