public static interface Azure.Authenticated extends AccessManagement
To access the subscription-specific APIs, use withSubscription(String),
or withDefaultSubscription() if a default subscription has already been previously specified
(for example, in a previously specified authentication file).
| Modifier and Type | Method and Description |
|---|---|
Subscriptions |
subscriptions()
Entry point to subscription management APIs.
|
String |
tenantId() |
Tenants |
tenants()
Entry point to tenant management APIs.
|
Azure |
withDefaultSubscription()
Selects the default subscription as the subscription for the APIs to work with.
|
Azure |
withSubscription(String subscriptionId)
Selects a specific subscription for the APIs to work with.
|
activeDirectoryApplications, activeDirectoryGroups, activeDirectoryUsers, roleAssignments, roleDefinitions, servicePrincipalsString tenantId()
Subscriptions subscriptions()
Tenants tenants()
Azure withSubscription(String subscriptionId)
Most Azure APIs require a specific subscription to be selected.
subscriptionId - the ID of the subscriptionAzure withDefaultSubscription() throws CloudException, IOException
The default subscription can be specified inside the authentication file using Azure.authenticate(File).
If no default subscription has been previously provided, the first subscription as
returned by subscriptions() will be selected.
CloudException - exception thrown from AzureIOException - exception thrown from serialization/deserializationCopyright © 2019. All rights reserved.