Interface DedicatedHostsClient
public interface DedicatedHostsClient
An instance of this class provides access to all the operations defined in DedicatedHostsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>, DedicatedHostInner> beginCreateOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>, DedicatedHostInner> beginCreateOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters, com.azure.core.util.Context context) Create or update a dedicated host .com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DedicatedHostInner>, DedicatedHostInner> beginCreateOrUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .beginDelete(String resourceGroupName, String hostGroupName, String hostname) Delete a dedicated host.beginDelete(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Delete a dedicated host.beginDeleteAsync(String resourceGroupName, String hostGroupName, String hostname) Delete a dedicated host.beginRedeploy(String resourceGroupName, String hostGroupName, String hostname) Redeploy the dedicated host.beginRedeploy(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Redeploy the dedicated host.beginRedeployAsync(String resourceGroupName, String hostGroupName, String hostname) Redeploy the dedicated host.beginRestart(String resourceGroupName, String hostGroupName, String hostname) Restart the dedicated host.beginRestart(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Restart the dedicated host.beginRestartAsync(String resourceGroupName, String hostGroupName, String hostname) Restart the dedicated host.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>, DedicatedHostInner> beginUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>, DedicatedHostInner> beginUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters, com.azure.core.util.Context context) Update a dedicated host .com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DedicatedHostInner>, DedicatedHostInner> beginUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .createOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .createOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters, com.azure.core.util.Context context) Create or update a dedicated host .createOrUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .voidDelete a dedicated host.voiddelete(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Delete a dedicated host.deleteAsync(String resourceGroupName, String hostGroupName, String hostname) Delete a dedicated host.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname) Delete a dedicated host.Retrieves information about a dedicated host.Retrieves information about a dedicated host.com.azure.core.http.rest.Response<DedicatedHostInner> getWithResponse(String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand, com.azure.core.util.Context context) Retrieves information about a dedicated host.Mono<com.azure.core.http.rest.Response<DedicatedHostInner>> getWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand) Retrieves information about a dedicated host.com.azure.core.http.rest.PagedIterable<String> listAvailableSizes(String resourceGroupName, String hostGroupName, String hostname) Lists all available dedicated host sizes to which the specified dedicated host can be resized.com.azure.core.http.rest.PagedIterable<String> listAvailableSizes(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Lists all available dedicated host sizes to which the specified dedicated host can be resized.com.azure.core.http.rest.PagedFlux<String> listAvailableSizesAsync(String resourceGroupName, String hostGroupName, String hostname) Lists all available dedicated host sizes to which the specified dedicated host can be resized.com.azure.core.http.rest.PagedIterable<DedicatedHostInner> listByHostGroup(String resourceGroupName, String hostGroupName) Lists all of the dedicated hosts in the specified dedicated host group.com.azure.core.http.rest.PagedIterable<DedicatedHostInner> listByHostGroup(String resourceGroupName, String hostGroupName, com.azure.core.util.Context context) Lists all of the dedicated hosts in the specified dedicated host group.com.azure.core.http.rest.PagedFlux<DedicatedHostInner> listByHostGroupAsync(String resourceGroupName, String hostGroupName) Lists all of the dedicated hosts in the specified dedicated host group.voidRedeploy the dedicated host.voidredeploy(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Redeploy the dedicated host.redeployAsync(String resourceGroupName, String hostGroupName, String hostname) Redeploy the dedicated host.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname) Redeploy the dedicated host.voidRestart the dedicated host.voidrestart(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Restart the dedicated host.restartAsync(String resourceGroupName, String hostGroupName, String hostname) Restart the dedicated host.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname) Restart the dedicated host.update(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .update(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters, com.azure.core.util.Context context) Update a dedicated host .updateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Create Dedicated Host.- Returns:
- specifies information about the Dedicated host along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginCreateOrUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Create Dedicated Host.- Returns:
- the
PollerFluxfor polling of specifies information about the Dedicated host. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginCreateOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Create Dedicated Host.- Returns:
- the
SyncPollerfor polling of specifies information about the Dedicated host. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginCreateOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters, com.azure.core.util.Context context) Create or update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Create Dedicated Host.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies information about the Dedicated host. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<DedicatedHostInner> createOrUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Create Dedicated Host.- Returns:
- specifies information about the Dedicated host on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DedicatedHostInner createOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters) Create or update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Create Dedicated Host.- Returns:
- specifies information about the Dedicated host.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DedicatedHostInner createOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters, com.azure.core.util.Context context) Create or update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Create Dedicated Host.context- The context to associate with this operation.- Returns:
- specifies information about the Dedicated host.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Update Dedicated Host operation.- Returns:
- specifies information about the Dedicated host along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Update Dedicated Host operation.- Returns:
- the
PollerFluxfor polling of specifies information about the Dedicated host. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Update Dedicated Host operation.- Returns:
- the
SyncPollerfor polling of specifies information about the Dedicated host. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters, com.azure.core.util.Context context) Update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Update Dedicated Host operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies information about the Dedicated host. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<DedicatedHostInner> updateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Update Dedicated Host operation.- Returns:
- specifies information about the Dedicated host on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
DedicatedHostInner update(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters) Update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Update Dedicated Host operation.- Returns:
- specifies information about the Dedicated host.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
DedicatedHostInner update(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters, com.azure.core.util.Context context) Update a dedicated host .- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host .parameters- Parameters supplied to the Update Dedicated Host operation.context- The context to associate with this operation.- Returns:
- specifies information about the Dedicated host.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 hostGroupName, String hostname) Delete a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 hostGroupName, String hostname) Delete a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 hostGroupName, String hostname) Delete a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 hostGroupName, String hostname, com.azure.core.util.Context context) Delete a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Delete a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 hostGroupName, String hostname, com.azure.core.util.Context context) Delete a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<DedicatedHostInner>> getWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand) Retrieves information about a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.expand- The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated host.- Returns:
- specifies information about the Dedicated host along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Retrieves information about a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- specifies information about the Dedicated host on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<DedicatedHostInner> getWithResponse(String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand, com.azure.core.util.Context context) Retrieves information about a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.expand- The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated host.context- The context to associate with this operation.- Returns:
- specifies information about the Dedicated host along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Retrieves information about a dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- specifies information about the Dedicated host.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByHostGroupAsync
com.azure.core.http.rest.PagedFlux<DedicatedHostInner> listByHostGroupAsync(String resourceGroupName, String hostGroupName) Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.- Returns:
- the list dedicated host operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByHostGroup
com.azure.core.http.rest.PagedIterable<DedicatedHostInner> listByHostGroup(String resourceGroupName, String hostGroupName) Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.- Returns:
- the list dedicated host operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByHostGroup
com.azure.core.http.rest.PagedIterable<DedicatedHostInner> listByHostGroup(String resourceGroupName, String hostGroupName, com.azure.core.util.Context context) Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.context- The context to associate with this operation.- Returns:
- the list dedicated host operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
restartWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname) Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestartAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRestartAsync(String resourceGroupName, String hostGroupName, String hostname) Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String hostGroupName, String hostname) Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
restartAsync
Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
restart
Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
restart
void restart(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redeployWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname) Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRedeployAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeployAsync(String resourceGroupName, String hostGroupName, String hostname) Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRedeploy
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String hostGroupName, String hostname) Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRedeploy
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redeployAsync
Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redeploy
Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redeploy
void redeploy(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAvailableSizesAsync
com.azure.core.http.rest.PagedFlux<String> listAvailableSizesAsync(String resourceGroupName, String hostGroupName, String hostname) Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the List Dedicated Host sizes operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAvailableSizes
com.azure.core.http.rest.PagedIterable<String> listAvailableSizes(String resourceGroupName, String hostGroupName, String hostname) Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.- Returns:
- the List Dedicated Host sizes operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAvailableSizes
com.azure.core.http.rest.PagedIterable<String> listAvailableSizes(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context) Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host.- Parameters:
resourceGroupName- The name of the resource group.hostGroupName- The name of the dedicated host group.hostname- The name of the dedicated host.context- The context to associate with this operation.- Returns:
- the List Dedicated Host sizes operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-