MockableComputeScheduleSubscriptionResource.SubmitVirtualMachineHibernate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate
- Operation Id: ScheduledActions_SubmitVirtualMachineHibernate
- Default Api Version: 2025-04-15-preview
- Resource: ScheduledActionResource
public virtual Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.HibernateResourceOperationResult> SubmitVirtualMachineHibernate(Azure.Core.AzureLocation locationparameter, Azure.ResourceManager.ComputeSchedule.Models.SubmitHibernateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member SubmitVirtualMachineHibernate : Azure.Core.AzureLocation * Azure.ResourceManager.ComputeSchedule.Models.SubmitHibernateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.HibernateResourceOperationResult>
override this.SubmitVirtualMachineHibernate : Azure.Core.AzureLocation * Azure.ResourceManager.ComputeSchedule.Models.SubmitHibernateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.HibernateResourceOperationResult>
Public Overridable Function SubmitVirtualMachineHibernate (locationparameter As AzureLocation, content As SubmitHibernateContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of HibernateResourceOperationResult)
Parameters
- locationparameter
- AzureLocation
The ___location name.
- content
- SubmitHibernateContent
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content
is null.