Interface ZonesClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<ZoneInner>,InnerSupportsListing<ZoneInner>
public interface ZonesClient
extends InnerSupportsGet<ZoneInner>, InnerSupportsListing<ZoneInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in ZonesClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginDelete(String resourceGroupName, String zoneName) Deletes a DNS zone.beginDelete(String resourceGroupName, String zoneName, String ifMatch, com.azure.core.util.Context context) Deletes a DNS zone.beginDeleteAsync(String resourceGroupName, String zoneName) Deletes a DNS zone.beginDeleteAsync(String resourceGroupName, String zoneName, String ifMatch) Deletes a DNS zone.createOrUpdate(String resourceGroupName, String zoneName, ZoneInner parameters) Creates or updates a DNS zone.createOrUpdateAsync(String resourceGroupName, String zoneName, ZoneInner parameters) Creates or updates a DNS zone.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.createOrUpdateWithResponseAsync(String resourceGroupName, String zoneName, ZoneInner parameters, String ifMatch, String ifNoneMatch) Creates or updates a DNS zone.voidDeletes a DNS zone.voiddelete(String resourceGroupName, String zoneName, String ifMatch, com.azure.core.util.Context context) Deletes a DNS zone.deleteAsync(String resourceGroupName, String zoneName) Deletes a DNS zone.deleteAsync(String resourceGroupName, String zoneName, String ifMatch) Deletes a DNS zone.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String zoneName, String ifMatch) Deletes a DNS zone.getByResourceGroup(String resourceGroupName, String zoneName) Gets a DNS zone.getByResourceGroupAsync(String resourceGroupName, String zoneName) Gets a DNS zone.com.azure.core.http.rest.Response<ZoneInner> getByResourceGroupWithResponse(String resourceGroupName, String zoneName, com.azure.core.util.Context context) Gets a DNS zone.getByResourceGroupWithResponseAsync(String resourceGroupName, String zoneName) Gets a DNS zone.com.azure.core.http.rest.PagedIterable<ZoneInner> list()Lists the DNS zones in all resource groups in a subscription.com.azure.core.http.rest.PagedIterable<ZoneInner> Lists the DNS zones in all resource groups in a subscription.com.azure.core.http.rest.PagedFlux<ZoneInner> Lists the DNS zones in all resource groups in a subscription.com.azure.core.http.rest.PagedFlux<ZoneInner> Lists the DNS zones in all resource groups in a subscription.com.azure.core.http.rest.PagedIterable<ZoneInner> listByResourceGroup(String resourceGroupName) Lists the DNS zones within a resource group.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.com.azure.core.http.rest.PagedFlux<ZoneInner> listByResourceGroupAsync(String resourceGroupName) Lists the DNS zones within a resource group.com.azure.core.http.rest.PagedFlux<ZoneInner> listByResourceGroupAsync(String resourceGroupName, Integer top) Lists the DNS zones within a resource group.update(String resourceGroupName, String zoneName, ZoneUpdate parameters) Updates a DNS zone.updateAsync(String resourceGroupName, String zoneName, ZoneUpdate parameters) Updates a DNS zone.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.updateWithResponseAsync(String resourceGroupName, String zoneName, ZoneUpdate parameters, String ifMatch) Updates a DNS zone.
-
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
Responseon successful completion ofMono. - 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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.zoneName- The name of the DNS zone (without a terminating dot).- Returns:
- A
Monothat 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
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
Responseon successful completion ofMono. - 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
Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<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
Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<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
Responseon successful completion ofMono. - 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
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
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
Lists the DNS zones within a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<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
Lists the DNS zones within a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<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
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:
listAsyncin interfaceInnerSupportsListing<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:
listin interfaceInnerSupportsListing<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.
-