Interface NameAvailabilities


public interface NameAvailabilities
Resource collection API of NameAvailabilities.
  • Method Details

    • checkLocalWithResponse

      com.azure.core.http.rest.Response<CheckNameAvailabilityResponse> checkLocalWithResponse(String location, CheckNameAvailabilityRequest body, com.azure.core.util.Context context)
      Check whether the resource name is available in the given region.
      Parameters:
      location - The location in which uniqueness will be verified.
      body - The check availability request body.
      context - The context to associate with this operation.
      Returns:
      the check availability result 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.
    • checkLocal

      Check whether the resource name is available in the given region.
      Parameters:
      location - The location in which uniqueness will be verified.
      body - The check availability request body.
      Returns:
      the check availability result.
      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.