Microsoft.ComputeSchedule (preview:2024-08-15)

2024/12/09 • 9 updated methods

ScheduledActions_VirtualMachinesCancelOperations (updated)
Description VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesCancelOperations",
  "Description": {
    "new": "VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request",
    "old": "CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations"
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
operationIds:
[
string ,
]
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesExecuteDeallocate (updated)
Description VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesExecuteDeallocate",
  "Description": {
    "new": "VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.",
    "old": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it."
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesExecuteHibernate (updated)
Description VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesExecuteHibernate",
  "Description": {
    "new": "VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.",
    "old": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it."
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesExecuteStart (updated)
Description VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesExecuteStart",
  "Description": {
    "new": "VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.",
    "old": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it."
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesGetOperationErrors (updated)
Description VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesGetOperationErrors",
  "Description": {
    "new": "VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.",
    "old": "GetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist."
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
operationIds:
[
string ,
]
,
}
,
}

⚐ Response (200)

{
results:
[
{
operationId: string ,
creationTime: string ,
activationTime: string ,
completedAt: string ,
operationErrors:
[
{
errorCode: string ,
errorDetails: string ,
timeStamp: string ,
crpOperationId: string ,
}
,
]
,
requestErrorCode: string ,
requestErrorDetails: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesGetOperationStatus (updated)
Description VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesGetOperationStatus",
  "Description": {
    "new": "VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines",
    "old": "GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines"
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
operationIds:
[
string ,
]
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesSubmitDeallocate (updated)
Description VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitDeallocate",
  "Description": {
    "new": "VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.",
    "old": "SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future."
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadLine: string ,
timeZone: string ,
deadlineType: enum ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesSubmitHibernate (updated)
Description VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitHibernate",
  "Description": {
    "new": "VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.",
    "old": "SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future."
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadLine: string ,
timeZone: string ,
deadlineType: enum ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesSubmitStart (updated)
Description VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitStart",
  "Description": {
    "new": "VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.",
    "old": "SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future."
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadLine: string ,
timeZone: string ,
deadlineType: enum ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}