Interface SubscriptionsClient


  • public interface SubscriptionsClient
    An instance of this class provides access to all the operations defined in SubscriptionsClient.
    • Method Detail

      • listLocationsAsync

        com.azure.core.http.rest.PagedFlux<LocationInner> listLocationsAsync​(String subscriptionId,
                                                                             Boolean includeExtendedLocations)
        This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
        Parameters:
        subscriptionId - The ID of the target subscription.
        includeExtendedLocations - Whether to include extended locations.
        Returns:
        location list operation response as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listLocationsAsync

        com.azure.core.http.rest.PagedFlux<LocationInner> listLocationsAsync​(String subscriptionId)
        This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
        Parameters:
        subscriptionId - The ID of the target subscription.
        Returns:
        location list operation response as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listLocations

        com.azure.core.http.rest.PagedIterable<LocationInner> listLocations​(String subscriptionId)
        This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
        Parameters:
        subscriptionId - The ID of the target subscription.
        Returns:
        location list operation response as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listLocations

        com.azure.core.http.rest.PagedIterable<LocationInner> listLocations​(String subscriptionId,
                                                                            Boolean includeExtendedLocations,
                                                                            com.azure.core.util.Context context)
        This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
        Parameters:
        subscriptionId - The ID of the target subscription.
        includeExtendedLocations - Whether to include extended locations.
        context - The context to associate with this operation.
        Returns:
        location list operation response as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<SubscriptionInner>> getWithResponseAsync​(String subscriptionId)
        Gets details about a specified subscription.
        Parameters:
        subscriptionId - The ID of the target subscription.
        Returns:
        details about a specified subscription along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAsync

        Mono<SubscriptionInner> getAsync​(String subscriptionId)
        Gets details about a specified subscription.
        Parameters:
        subscriptionId - The ID of the target subscription.
        Returns:
        details about a specified subscription on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • get

        SubscriptionInner get​(String subscriptionId)
        Gets details about a specified subscription.
        Parameters:
        subscriptionId - The ID of the target subscription.
        Returns:
        details about a specified subscription.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<SubscriptionInner> getWithResponse​(String subscriptionId,
                                                                             com.azure.core.util.Context context)
        Gets details about a specified subscription.
        Parameters:
        subscriptionId - The ID of the target subscription.
        context - The context to associate with this operation.
        Returns:
        details about a specified subscription along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAsync

        com.azure.core.http.rest.PagedFlux<SubscriptionInner> listAsync()
        Gets all subscriptions for a tenant.
        Returns:
        all subscriptions for a tenant as paginated response with PagedFlux.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<SubscriptionInner> list()
        Gets all subscriptions for a tenant.
        Returns:
        all subscriptions for a tenant as paginated response with PagedIterable.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<SubscriptionInner> list​(com.azure.core.util.Context context)
        Gets all subscriptions for a tenant.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        all subscriptions for a tenant as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • checkZonePeersWithResponseAsync

        Mono<com.azure.core.http.rest.Response<CheckZonePeersResultInner>> checkZonePeersWithResponseAsync​(String subscriptionId,
                                                                                                           CheckZonePeersRequest parameters)
        Compares a subscriptions logical zone mapping.
        Parameters:
        subscriptionId - The ID of the target subscription.
        parameters - Parameters for checking zone peers.
        Returns:
        result of the Check zone peers operation along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • checkZonePeersAsync

        Mono<CheckZonePeersResultInner> checkZonePeersAsync​(String subscriptionId,
                                                            CheckZonePeersRequest parameters)
        Compares a subscriptions logical zone mapping.
        Parameters:
        subscriptionId - The ID of the target subscription.
        parameters - Parameters for checking zone peers.
        Returns:
        result of the Check zone peers operation on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • checkZonePeers

        CheckZonePeersResultInner checkZonePeers​(String subscriptionId,
                                                 CheckZonePeersRequest parameters)
        Compares a subscriptions logical zone mapping.
        Parameters:
        subscriptionId - The ID of the target subscription.
        parameters - Parameters for checking zone peers.
        Returns:
        result of the Check zone peers operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • checkZonePeersWithResponse

        com.azure.core.http.rest.Response<CheckZonePeersResultInner> checkZonePeersWithResponse​(String subscriptionId,
                                                                                                CheckZonePeersRequest parameters,
                                                                                                com.azure.core.util.Context context)
        Compares a subscriptions logical zone mapping.
        Parameters:
        subscriptionId - The ID of the target subscription.
        parameters - Parameters for checking zone peers.
        context - The context to associate with this operation.
        Returns:
        result of the Check zone peers operation along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.