public interface ResourceGroupsClient
| Modifier and Type | Method and Description |
|---|---|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginDelete(String resourceGroupName,
String forceDeletionResourceTypes)
When you delete a resource group, all of its resources are also deleted.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginDelete(String resourceGroupName,
String forceDeletionResourceTypes,
com.azure.core.util.Context context)
When you delete a resource group, all of its resources are also deleted.
|
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> |
beginDeleteAsync(String resourceGroupName,
String forceDeletionResourceTypes)
When you delete a resource group, all of its resources are also deleted.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourceGroupExportResultInner>,ResourceGroupExportResultInner> |
beginExportTemplate(String resourceGroupName,
ExportTemplateRequest parameters)
Captures the specified resource group as a template.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourceGroupExportResultInner>,ResourceGroupExportResultInner> |
beginExportTemplate(String resourceGroupName,
ExportTemplateRequest parameters,
com.azure.core.util.Context context)
Captures the specified resource group as a template.
|
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ResourceGroupExportResultInner>,ResourceGroupExportResultInner> |
beginExportTemplateAsync(String resourceGroupName,
ExportTemplateRequest parameters)
Captures the specified resource group as a template.
|
boolean |
checkExistence(String resourceGroupName)
Checks whether a resource group exists.
|
Mono<Boolean> |
checkExistenceAsync(String resourceGroupName)
Checks whether a resource group exists.
|
com.azure.core.http.rest.Response<Boolean> |
checkExistenceWithResponse(String resourceGroupName,
com.azure.core.util.Context context)
Checks whether a resource group exists.
|
Mono<com.azure.core.http.rest.Response<Boolean>> |
checkExistenceWithResponseAsync(String resourceGroupName)
Checks whether a resource group exists.
|
ResourceGroupInner |
createOrUpdate(String resourceGroupName,
ResourceGroupInner parameters)
Creates or updates a resource group.
|
Mono<ResourceGroupInner> |
createOrUpdateAsync(String resourceGroupName,
ResourceGroupInner parameters)
Creates or updates a resource group.
|
com.azure.core.http.rest.Response<ResourceGroupInner> |
createOrUpdateWithResponse(String resourceGroupName,
ResourceGroupInner parameters,
com.azure.core.util.Context context)
Creates or updates a resource group.
|
Mono<com.azure.core.http.rest.Response<ResourceGroupInner>> |
createOrUpdateWithResponseAsync(String resourceGroupName,
ResourceGroupInner parameters)
Creates or updates a resource group.
|
void |
delete(String resourceGroupName)
When you delete a resource group, all of its resources are also deleted.
|
void |
delete(String resourceGroupName,
String forceDeletionResourceTypes)
When you delete a resource group, all of its resources are also deleted.
|
void |
delete(String resourceGroupName,
String forceDeletionResourceTypes,
com.azure.core.util.Context context)
When you delete a resource group, all of its resources are also deleted.
|
Mono<Void> |
deleteAsync(String resourceGroupName)
When you delete a resource group, all of its resources are also deleted.
|
Mono<Void> |
deleteAsync(String resourceGroupName,
String forceDeletionResourceTypes)
When you delete a resource group, all of its resources are also deleted.
|
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> |
deleteWithResponseAsync(String resourceGroupName,
String forceDeletionResourceTypes)
When you delete a resource group, all of its resources are also deleted.
|
ResourceGroupExportResultInner |
exportTemplate(String resourceGroupName,
ExportTemplateRequest parameters)
Captures the specified resource group as a template.
|
ResourceGroupExportResultInner |
exportTemplate(String resourceGroupName,
ExportTemplateRequest parameters,
com.azure.core.util.Context context)
Captures the specified resource group as a template.
|
Mono<ResourceGroupExportResultInner> |
exportTemplateAsync(String resourceGroupName,
ExportTemplateRequest parameters)
Captures the specified resource group as a template.
|
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> |
exportTemplateWithResponseAsync(String resourceGroupName,
ExportTemplateRequest parameters)
Captures the specified resource group as a template.
|
ResourceGroupInner |
get(String resourceGroupName)
Gets a resource group.
|
Mono<ResourceGroupInner> |
getAsync(String resourceGroupName)
Gets a resource group.
|
com.azure.core.http.rest.Response<ResourceGroupInner> |
getWithResponse(String resourceGroupName,
com.azure.core.util.Context context)
Gets a resource group.
|
Mono<com.azure.core.http.rest.Response<ResourceGroupInner>> |
getWithResponseAsync(String resourceGroupName)
Gets a resource group.
|
com.azure.core.http.rest.PagedIterable<ResourceGroupInner> |
list()
Gets all the resource groups for a subscription.
|
com.azure.core.http.rest.PagedIterable<ResourceGroupInner> |
list(String filter,
Integer top,
com.azure.core.util.Context context)
Gets all the resource groups for a subscription.
|
com.azure.core.http.rest.PagedFlux<ResourceGroupInner> |
listAsync()
Gets all the resource groups for a subscription.
|
com.azure.core.http.rest.PagedFlux<ResourceGroupInner> |
listAsync(String filter,
Integer top)
Gets all the resource groups for a subscription.
|
ResourceGroupInner |
update(String resourceGroupName,
ResourceGroupPatchable parameters)
Resource groups can be updated through a simple PATCH operation to a group address.
|
Mono<ResourceGroupInner> |
updateAsync(String resourceGroupName,
ResourceGroupPatchable parameters)
Resource groups can be updated through a simple PATCH operation to a group address.
|
com.azure.core.http.rest.Response<ResourceGroupInner> |
updateWithResponse(String resourceGroupName,
ResourceGroupPatchable parameters,
com.azure.core.util.Context context)
Resource groups can be updated through a simple PATCH operation to a group address.
|
Mono<com.azure.core.http.rest.Response<ResourceGroupInner>> |
updateWithResponseAsync(String resourceGroupName,
ResourceGroupPatchable parameters)
Resource groups can be updated through a simple PATCH operation to a group address.
|
Mono<com.azure.core.http.rest.Response<Boolean>> checkExistenceWithResponseAsync(String resourceGroupName)
resourceGroupName - The name of the resource group to check. The name is case insensitive.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.Mono<Boolean> checkExistenceAsync(String resourceGroupName)
resourceGroupName - The name of the resource group to check. The name is case insensitive.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.boolean checkExistence(String resourceGroupName)
resourceGroupName - The name of the resource group to check. The name is case insensitive.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.com.azure.core.http.rest.Response<Boolean> checkExistenceWithResponse(String resourceGroupName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group to check. The name is case insensitive.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<ResourceGroupInner>> createOrUpdateWithResponseAsync(String resourceGroupName, ResourceGroupInner parameters)
resourceGroupName - The name of the resource group to create or update. Can include alphanumeric,
underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed
characters.parameters - Parameters supplied to the create or update a resource group.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.Mono<ResourceGroupInner> createOrUpdateAsync(String resourceGroupName, ResourceGroupInner parameters)
resourceGroupName - The name of the resource group to create or update. Can include alphanumeric,
underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed
characters.parameters - Parameters supplied to the create or update a resource group.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.ResourceGroupInner createOrUpdate(String resourceGroupName, ResourceGroupInner parameters)
resourceGroupName - The name of the resource group to create or update. Can include alphanumeric,
underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed
characters.parameters - Parameters supplied to the create or update a resource group.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.com.azure.core.http.rest.Response<ResourceGroupInner> createOrUpdateWithResponse(String resourceGroupName, ResourceGroupInner parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group to create or update. Can include alphanumeric,
underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed
characters.parameters - Parameters supplied to the create or update a resource group.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String forceDeletionResourceTypes)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.forceDeletionResourceTypes - The resource types you want to force delete. Currently, only the following is
supported:
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String forceDeletionResourceTypes)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.forceDeletionResourceTypes - The resource types you want to force delete. Currently, only the following is
supported:
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String forceDeletionResourceTypes)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.forceDeletionResourceTypes - The resource types you want to force delete. Currently, only the following is
supported:
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String forceDeletionResourceTypes, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.forceDeletionResourceTypes - The resource types you want to force delete. Currently, only the following is
supported:
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.context - The context to associate with this operation.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.Mono<Void> deleteAsync(String resourceGroupName, String forceDeletionResourceTypes)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.forceDeletionResourceTypes - The resource types you want to force delete. Currently, only the following is
supported:
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.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.Mono<Void> deleteAsync(String resourceGroupName)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.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.void delete(String resourceGroupName, String forceDeletionResourceTypes)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.forceDeletionResourceTypes - The resource types you want to force delete. Currently, only the following is
supported:
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.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.void delete(String resourceGroupName)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.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.void delete(String resourceGroupName, String forceDeletionResourceTypes, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group to delete. The name is case insensitive.forceDeletionResourceTypes - The resource types you want to force delete. Currently, only the following is
supported:
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<ResourceGroupInner>> getWithResponseAsync(String resourceGroupName)
resourceGroupName - The name of the resource group to get. The name is case insensitive.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.Mono<ResourceGroupInner> getAsync(String resourceGroupName)
resourceGroupName - The name of the resource group to get. The name is case insensitive.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.ResourceGroupInner get(String resourceGroupName)
resourceGroupName - The name of the resource group to get. The name is case insensitive.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.com.azure.core.http.rest.Response<ResourceGroupInner> getWithResponse(String resourceGroupName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group to get. The name is case insensitive.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<ResourceGroupInner>> updateWithResponseAsync(String resourceGroupName, ResourceGroupPatchable parameters)
resourceGroupName - The name of the resource group to update. The name is case insensitive.parameters - Parameters supplied to update a resource group.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.Mono<ResourceGroupInner> updateAsync(String resourceGroupName, ResourceGroupPatchable parameters)
resourceGroupName - The name of the resource group to update. The name is case insensitive.parameters - Parameters supplied to update a resource group.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.ResourceGroupInner update(String resourceGroupName, ResourceGroupPatchable parameters)
resourceGroupName - The name of the resource group to update. The name is case insensitive.parameters - Parameters supplied to update a resource group.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.com.azure.core.http.rest.Response<ResourceGroupInner> updateWithResponse(String resourceGroupName, ResourceGroupPatchable parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group to update. The name is case insensitive.parameters - Parameters supplied to update a resource group.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> exportTemplateWithResponseAsync(String resourceGroupName, ExportTemplateRequest parameters)
resourceGroupName - The name of the resource group. The name is case insensitive.parameters - Parameters for exporting the template.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ResourceGroupExportResultInner>,ResourceGroupExportResultInner> beginExportTemplateAsync(String resourceGroupName, ExportTemplateRequest parameters)
resourceGroupName - The name of the resource group. The name is case insensitive.parameters - Parameters for exporting the template.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourceGroupExportResultInner>,ResourceGroupExportResultInner> beginExportTemplate(String resourceGroupName, ExportTemplateRequest parameters)
resourceGroupName - The name of the resource group. The name is case insensitive.parameters - Parameters for exporting the template.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourceGroupExportResultInner>,ResourceGroupExportResultInner> beginExportTemplate(String resourceGroupName, ExportTemplateRequest parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.parameters - Parameters for exporting the template.context - The context to associate with this operation.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.Mono<ResourceGroupExportResultInner> exportTemplateAsync(String resourceGroupName, ExportTemplateRequest parameters)
resourceGroupName - The name of the resource group. The name is case insensitive.parameters - Parameters for exporting the template.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.ResourceGroupExportResultInner exportTemplate(String resourceGroupName, ExportTemplateRequest parameters)
resourceGroupName - The name of the resource group. The name is case insensitive.parameters - Parameters for exporting the template.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.ResourceGroupExportResultInner exportTemplate(String resourceGroupName, ExportTemplateRequest parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.parameters - Parameters for exporting the template.context - The context to associate with this operation.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.com.azure.core.http.rest.PagedFlux<ResourceGroupInner> listAsync(String filter, Integer top)
filter - The filter to apply on the operation.<br><br>You can filter by tag names and values.
For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'.top - The number of results to return. If null is passed, returns all resource groups.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.com.azure.core.http.rest.PagedFlux<ResourceGroupInner> listAsync()
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.com.azure.core.http.rest.PagedIterable<ResourceGroupInner> list()
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.com.azure.core.http.rest.PagedIterable<ResourceGroupInner> list(String filter, Integer top, com.azure.core.util.Context context)
filter - The filter to apply on the operation.<br><br>You can filter by tag names and values.
For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'.top - The number of results to return. If null is passed, returns all resource groups.context - The context to associate with this operation.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.Copyright © 2021 Microsoft Corporation. All rights reserved.