Interface ResourceManager.Authenticated

  • Enclosing class:
    ResourceManager

    public static interface ResourceManager.Authenticated
    The interface exposing resource management API entry points that work across subscriptions.
    • 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 from AzureProfile. If no subscription provided, we will try to set the only subscription if applicable returned by subscriptions().
        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.