Interface ZonesClient

All Superinterfaces:
InnerSupportsDelete<Void>, InnerSupportsGet<ZoneInner>, InnerSupportsListing<ZoneInner>

An instance of this class provides access to all the operations defined in ZonesClient.
  • Method Details

    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ZoneInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String zoneName, ZoneInner parameters, String ifMatch, String ifNoneMatch)
      Creates or updates a DNS zone. Does not modify DNS records within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      parameters - Parameters supplied to the CreateOrUpdate operation.
      ifMatch - The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.
      ifNoneMatch - Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored.
      Returns:
      describes a DNS zone 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.
    • createOrUpdateAsync

      Mono<ZoneInner> createOrUpdateAsync(String resourceGroupName, String zoneName, ZoneInner parameters)
      Creates or updates a DNS zone. Does not modify DNS records within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      parameters - Parameters supplied to the CreateOrUpdate operation.
      Returns:
      describes a DNS zone 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ZoneInner> createOrUpdateWithResponse(String resourceGroupName, String zoneName, ZoneInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context)
      Creates or updates a DNS zone. Does not modify DNS records within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      parameters - Parameters supplied to the CreateOrUpdate operation.
      ifMatch - The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.
      ifNoneMatch - Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored.
      context - The context to associate with this operation.
      Returns:
      describes a DNS zone 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.
    • createOrUpdate

      ZoneInner createOrUpdate(String resourceGroupName, String zoneName, ZoneInner parameters)
      Creates or updates a DNS zone. Does not modify DNS records within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      parameters - Parameters supplied to the CreateOrUpdate operation.
      Returns:
      describes a DNS zone.
      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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String zoneName, String ifMatch)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      ifMatch - The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
      Returns:
      the 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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String zoneName, String ifMatch)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      ifMatch - The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
      Returns:
      the PollerFlux for polling of long-running 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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String zoneName)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      Returns:
      the PollerFlux for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String zoneName)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      Returns:
      the SyncPoller for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String zoneName, String ifMatch, com.azure.core.util.Context context)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      ifMatch - The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running 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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String zoneName, String ifMatch)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      ifMatch - The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
      Returns:
      A Mono that completes when a successful response is received.
      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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String zoneName)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Specified by:
      deleteAsync in interface InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      Returns:
      A Mono that completes when a successful response is received.
      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.
    • delete

      void delete(String resourceGroupName, String zoneName)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      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.
    • delete

      void delete(String resourceGroupName, String zoneName, String ifMatch, com.azure.core.util.Context context)
      Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      ifMatch - The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
      context - The context to associate with this 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.
    • getByResourceGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ZoneInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String zoneName)
      Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      Returns:
      a DNS zone 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.
    • getByResourceGroupAsync

      Mono<ZoneInner> getByResourceGroupAsync(String resourceGroupName, String zoneName)
      Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
      Specified by:
      getByResourceGroupAsync in interface InnerSupportsGet<ZoneInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      Returns:
      a DNS zone 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<ZoneInner> getByResourceGroupWithResponse(String resourceGroupName, String zoneName, com.azure.core.util.Context context)
      Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      context - The context to associate with this operation.
      Returns:
      a DNS zone 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.
    • getByResourceGroup

      ZoneInner getByResourceGroup(String resourceGroupName, String zoneName)
      Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
      Specified by:
      getByResourceGroup in interface InnerSupportsGet<ZoneInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      Returns:
      a DNS zone.
      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.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ZoneInner>> updateWithResponseAsync(String resourceGroupName, String zoneName, ZoneUpdate parameters, String ifMatch)
      Updates a DNS zone. Does not modify DNS records within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      parameters - Parameters supplied to the Update operation.
      ifMatch - The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.
      Returns:
      describes a DNS zone 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.
    • updateAsync

      Mono<ZoneInner> updateAsync(String resourceGroupName, String zoneName, ZoneUpdate parameters)
      Updates a DNS zone. Does not modify DNS records within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      parameters - Parameters supplied to the Update operation.
      Returns:
      describes a DNS zone 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.
    • updateWithResponse

      com.azure.core.http.rest.Response<ZoneInner> updateWithResponse(String resourceGroupName, String zoneName, ZoneUpdate parameters, String ifMatch, com.azure.core.util.Context context)
      Updates a DNS zone. Does not modify DNS records within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      parameters - Parameters supplied to the Update operation.
      ifMatch - The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.
      context - The context to associate with this operation.
      Returns:
      describes a DNS zone 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.
    • update

      ZoneInner update(String resourceGroupName, String zoneName, ZoneUpdate parameters)
      Updates a DNS zone. Does not modify DNS records within the zone.
      Parameters:
      resourceGroupName - The name of the resource group.
      zoneName - The name of the DNS zone (without a terminating dot).
      parameters - Parameters supplied to the Update operation.
      Returns:
      describes a DNS zone.
      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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<ZoneInner> listByResourceGroupAsync(String resourceGroupName, Integer top)
      Lists the DNS zones within a resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      top - The maximum number of record sets to return. If not specified, returns up to 100 record sets.
      Returns:
      the response to a Zone List or ListAll operation 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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<ZoneInner> listByResourceGroupAsync(String resourceGroupName)
      Lists the DNS zones within a resource group.
      Specified by:
      listByResourceGroupAsync in interface InnerSupportsListing<ZoneInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      the response to a Zone List or ListAll operation 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ZoneInner> listByResourceGroup(String resourceGroupName)
      Lists the DNS zones within a resource group.
      Specified by:
      listByResourceGroup in interface InnerSupportsListing<ZoneInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      the response to a Zone List or ListAll operation 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ZoneInner> listByResourceGroup(String resourceGroupName, Integer top, com.azure.core.util.Context context)
      Lists the DNS zones within a resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      top - The maximum number of record sets to return. If not specified, returns up to 100 record sets.
      context - The context to associate with this operation.
      Returns:
      the response to a Zone List or ListAll operation 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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<ZoneInner> listAsync(Integer top)
      Lists the DNS zones in all resource groups in a subscription.
      Parameters:
      top - The maximum number of DNS zones to return. If not specified, returns up to 100 zones.
      Returns:
      the response to a Zone List or ListAll operation 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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<ZoneInner> listAsync()
      Lists the DNS zones in all resource groups in a subscription.
      Specified by:
      listAsync in interface InnerSupportsListing<ZoneInner>
      Returns:
      the response to a Zone List or ListAll operation 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<ZoneInner> list()
      Lists the DNS zones in all resource groups in a subscription.
      Specified by:
      list in interface InnerSupportsListing<ZoneInner>
      Returns:
      the response to a Zone List or ListAll operation 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<ZoneInner> list(Integer top, com.azure.core.util.Context context)
      Lists the DNS zones in all resource groups in a subscription.
      Parameters:
      top - The maximum number of DNS zones to return. If not specified, returns up to 100 zones.
      context - The context to associate with this operation.
      Returns:
      the response to a Zone List or ListAll operation 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.