public interface AvailabilitySetsClient extends InnerSupportsGet<AvailabilitySetInner>, InnerSupportsListing<AvailabilitySetInner>, InnerSupportsDelete<Void>
Modifier and Type | Method and Description |
---|---|
AvailabilitySetInner |
createOrUpdate(String resourceGroupName,
String availabilitySetName,
AvailabilitySetInner parameters)
Create or update an availability set.
|
Mono<AvailabilitySetInner> |
createOrUpdateAsync(String resourceGroupName,
String availabilitySetName,
AvailabilitySetInner parameters)
Create or update an availability set.
|
com.azure.core.http.rest.Response<AvailabilitySetInner> |
createOrUpdateWithResponse(String resourceGroupName,
String availabilitySetName,
AvailabilitySetInner parameters,
com.azure.core.util.Context context)
Create or update an availability set.
|
Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> |
createOrUpdateWithResponseAsync(String resourceGroupName,
String availabilitySetName,
AvailabilitySetInner parameters)
Create or update an availability set.
|
void |
delete(String resourceGroupName,
String availabilitySetName)
Delete an availability set.
|
Mono<Void> |
deleteAsync(String resourceGroupName,
String availabilitySetName)
Delete an availability set.
|
com.azure.core.http.rest.Response<Void> |
deleteWithResponse(String resourceGroupName,
String availabilitySetName,
com.azure.core.util.Context context)
Delete an availability set.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteWithResponseAsync(String resourceGroupName,
String availabilitySetName)
Delete an availability set.
|
AvailabilitySetInner |
getByResourceGroup(String resourceGroupName,
String availabilitySetName)
Retrieves information about an availability set.
|
Mono<AvailabilitySetInner> |
getByResourceGroupAsync(String resourceGroupName,
String availabilitySetName)
Retrieves information about an availability set.
|
com.azure.core.http.rest.Response<AvailabilitySetInner> |
getByResourceGroupWithResponse(String resourceGroupName,
String availabilitySetName,
com.azure.core.util.Context context)
Retrieves information about an availability set.
|
Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> |
getByResourceGroupWithResponseAsync(String resourceGroupName,
String availabilitySetName)
Retrieves information about an availability set.
|
com.azure.core.http.rest.PagedIterable<AvailabilitySetInner> |
list()
Lists all availability sets in a subscription.
|
com.azure.core.http.rest.PagedIterable<AvailabilitySetInner> |
list(String expand,
com.azure.core.util.Context context)
Lists all availability sets in a subscription.
|
com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> |
listAsync()
Lists all availability sets in a subscription.
|
com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> |
listAsync(String expand)
Lists all availability sets in a subscription.
|
com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> |
listAvailableSizes(String resourceGroupName,
String availabilitySetName)
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing
availability set.
|
com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> |
listAvailableSizes(String resourceGroupName,
String availabilitySetName,
com.azure.core.util.Context context)
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing
availability set.
|
com.azure.core.http.rest.PagedFlux<VirtualMachineSizeInner> |
listAvailableSizesAsync(String resourceGroupName,
String availabilitySetName)
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing
availability set.
|
com.azure.core.http.rest.PagedIterable<AvailabilitySetInner> |
listByResourceGroup(String resourceGroupName)
Lists all availability sets in a resource group.
|
com.azure.core.http.rest.PagedIterable<AvailabilitySetInner> |
listByResourceGroup(String resourceGroupName,
com.azure.core.util.Context context)
Lists all availability sets in a resource group.
|
com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> |
listByResourceGroupAsync(String resourceGroupName)
Lists all availability sets in a resource group.
|
AvailabilitySetInner |
update(String resourceGroupName,
String availabilitySetName,
AvailabilitySetUpdate parameters)
Update an availability set.
|
Mono<AvailabilitySetInner> |
updateAsync(String resourceGroupName,
String availabilitySetName,
AvailabilitySetUpdate parameters)
Update an availability set.
|
com.azure.core.http.rest.Response<AvailabilitySetInner> |
updateWithResponse(String resourceGroupName,
String availabilitySetName,
AvailabilitySetUpdate parameters,
com.azure.core.util.Context context)
Update an availability set.
|
Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> |
updateWithResponseAsync(String resourceGroupName,
String availabilitySetName,
AvailabilitySetUpdate parameters)
Update an availability set.
|
Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.parameters
- Specifies information about the availability set that the virtual machine should be assigned
to. Virtual machines specified in the same availability set are allocated to different nodes to maximize
availability. For more information about availability sets, see [Manage the availability of virtual
machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
<br><br> For more information on Azure planned maintenance, see [Planned maintenance for virtual
machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation time. An existing VM
cannot be added to an availability set.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<AvailabilitySetInner> createOrUpdateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.parameters
- Specifies information about the availability set that the virtual machine should be assigned
to. Virtual machines specified in the same availability set are allocated to different nodes to maximize
availability. For more information about availability sets, see [Manage the availability of virtual
machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
<br><br> For more information on Azure planned maintenance, see [Planned maintenance for virtual
machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation time. An existing VM
cannot be added to an availability set.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.AvailabilitySetInner createOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.parameters
- Specifies information about the availability set that the virtual machine should be assigned
to. Virtual machines specified in the same availability set are allocated to different nodes to maximize
availability. For more information about availability sets, see [Manage the availability of virtual
machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
<br><br> For more information on Azure planned maintenance, see [Planned maintenance for virtual
machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation time. An existing VM
cannot be added to an availability set.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<AvailabilitySetInner> createOrUpdateWithResponse(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.parameters
- Specifies information about the availability set that the virtual machine should be assigned
to. Virtual machines specified in the same availability set are allocated to different nodes to maximize
availability. For more information about availability sets, see [Manage the availability of virtual
machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
<br><br> For more information on Azure planned maintenance, see [Planned maintenance for virtual
machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation time. An existing VM
cannot be added to an availability set.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<AvailabilitySetInner>> updateWithResponseAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.parameters
- Specifies information about the availability set that the virtual machine should be assigned
to. Only tags may be updated.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<AvailabilitySetInner> updateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.parameters
- Specifies information about the availability set that the virtual machine should be assigned
to. Only tags may be updated.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.AvailabilitySetInner update(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.parameters
- Specifies information about the availability set that the virtual machine should be assigned
to. Only tags may be updated.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<AvailabilitySetInner> updateWithResponse(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.parameters
- Specifies information about the availability set that the virtual machine should be assigned
to. Only tags may be updated.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<Void>> deleteWithResponseAsync(String resourceGroupName, String availabilitySetName)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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 availabilitySetName)
deleteAsync
in interface InnerSupportsDelete<Void>
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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 availabilitySetName)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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<Void> deleteWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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<AvailabilitySetInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String availabilitySetName)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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<AvailabilitySetInner> getByResourceGroupAsync(String resourceGroupName, String availabilitySetName)
getByResourceGroupAsync
in interface InnerSupportsGet<AvailabilitySetInner>
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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.AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetName)
getByResourceGroup
in interface InnerSupportsGet<AvailabilitySetInner>
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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<AvailabilitySetInner> getByResourceGroupWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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<AvailabilitySetInner> listAsync(String expand)
expand
- The expand expression to apply to the operation. Allowed values are 'instanceView'.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<AvailabilitySetInner> listAsync()
listAsync
in interface InnerSupportsListing<AvailabilitySetInner>
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<AvailabilitySetInner> list(String expand, com.azure.core.util.Context context)
expand
- The expand expression to apply to the operation. Allowed values are 'instanceView'.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.PagedIterable<AvailabilitySetInner> list()
list
in interface InnerSupportsListing<AvailabilitySetInner>
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<AvailabilitySetInner> listByResourceGroupAsync(String resourceGroupName)
listByResourceGroupAsync
in interface InnerSupportsListing<AvailabilitySetInner>
resourceGroupName
- The name of the 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.PagedIterable<AvailabilitySetInner> listByResourceGroup(String resourceGroupName)
listByResourceGroup
in interface InnerSupportsListing<AvailabilitySetInner>
resourceGroupName
- The name of the 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.PagedIterable<AvailabilitySetInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
resourceGroupName
- The name of the 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.com.azure.core.http.rest.PagedFlux<VirtualMachineSizeInner> listAvailableSizesAsync(String resourceGroupName, String availabilitySetName)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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.PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String availabilitySetName)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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.PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.availabilitySetName
- The name of the availability set.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 © 2020 Microsoft Corporation. All rights reserved.