Interface NameAvailabilities


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

    • checkGloballyWithResponse

      com.azure.core.http.rest.Response<NameAvailabilityModel> checkGloballyWithResponse(CheckNameAvailabilityRequest parameters, com.azure.core.util.Context context)
      Checks the validity and availability of the given name, to assign it to a new server or to use it as the base name of a new pair of virtual endpoints.
      Parameters:
      parameters - Parameters required to check if a given name is valid and available to assign it to a new server or to use it as the base name of a new pair of virtual endpoints.
      context - The context to associate with this operation.
      Returns:
      availability of a name 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.
    • checkGlobally

      Checks the validity and availability of the given name, to assign it to a new server or to use it as the base name of a new pair of virtual endpoints.
      Parameters:
      parameters - Parameters required to check if a given name is valid and available to assign it to a new server or to use it as the base name of a new pair of virtual endpoints.
      Returns:
      availability of a name.
      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.
    • checkWithLocationWithResponse

      com.azure.core.http.rest.Response<NameAvailabilityModel> checkWithLocationWithResponse(String locationName, CheckNameAvailabilityRequest parameters, com.azure.core.util.Context context)
      Check the availability of name for resource.
      Parameters:
      locationName - The name of the location.
      parameters - Parameters required to check if a given name is valid and available to assign it to a new server or to use it as the base name of a new pair of virtual endpoints.
      context - The context to associate with this operation.
      Returns:
      availability of a name 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.
    • checkWithLocation

      NameAvailabilityModel checkWithLocation(String locationName, CheckNameAvailabilityRequest parameters)
      Check the availability of name for resource.
      Parameters:
      locationName - The name of the location.
      parameters - Parameters required to check if a given name is valid and available to assign it to a new server or to use it as the base name of a new pair of virtual endpoints.
      Returns:
      availability of a name.
      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.