Interface ResourceManager.Authenticated
-
- Enclosing class:
- ResourceManager
public static interface ResourceManager.AuthenticatedThe interface exposing resource management API entry points that work across subscriptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subscriptionssubscriptions()Tenantstenants()ResourceManagerwithDefaultSubscription()Specifies to use subscription fromAzureProfile.ResourceManagerwithSubscription(String subscriptionId)Specifies a subscription to expose resource management API entry points that work in a subscription.
-
-
-
Method Detail
-
tenants
Tenants tenants()
- Returns:
- the entry point to tenant management API.
-
subscriptions
Subscriptions subscriptions()
- Returns:
- the entry point to subscription management API.
-
withSubscription
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
-
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.
-
-