Microsoft.ComputeSchedule (stable:2024-10-01)

2024/12/09 • 6 updated methods

ScheduledActions_VirtualMachinesExecuteDeallocate (updated)
Description ExecuteDeallocate: 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",
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@added_504ebd5d3db9443a84843b481c60cc4e": {
              "#name": "optimizationPreference",
              "Description": "Details that could optimize the user's request",
              "Enum": [
                [
                  "Cost",
                  "Optimize while considering cost savings"
                ],
                [
                  "Availability",
                  "Optimize while considering availability of resources"
                ],
                [
                  "CostAvailabilityBalanced",
                  "Optimize while considering a balance of cost and availability"
                ]
              ],
              "Required": false,
              "Type": "string"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 ,
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 ExecuteHibernate: 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",
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@added_e842d5f83d244a3397961c9c687e6cd1": {
              "#name": "optimizationPreference",
              "Description": "Details that could optimize the user's request",
              "Enum": [
                [
                  "Cost",
                  "Optimize while considering cost savings"
                ],
                [
                  "Availability",
                  "Optimize while considering availability of resources"
                ],
                [
                  "CostAvailabilityBalanced",
                  "Optimize while considering a balance of cost and availability"
                ]
              ],
              "Required": false,
              "Type": "string"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 ,
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 ExecuteStart: 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",
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@added_1104364e0dae4f5b98dd50fda30b3729": {
              "#name": "optimizationPreference",
              "Description": "Details that could optimize the user's request",
              "Enum": [
                [
                  "Cost",
                  "Optimize while considering cost savings"
                ],
                [
                  "Availability",
                  "Optimize while considering availability of resources"
                ],
                [
                  "CostAvailabilityBalanced",
                  "Optimize while considering a balance of cost and availability"
                ]
              ],
              "Required": false,
              "Type": "string"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 ,
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 SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitDeallocate",
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@added_134e2e5e503d44a0bf1733ffa71c2a81": {
              "#name": "optimizationPreference",
              "Description": "Details that could optimize the user's request",
              "Enum": [
                [
                  "Cost",
                  "Optimize while considering cost savings"
                ],
                [
                  "Availability",
                  "Optimize while considering availability of resources"
                ],
                [
                  "CostAvailabilityBalanced",
                  "Optimize while considering a balance of cost and availability"
                ]
              ],
              "Required": false,
              "Type": "string"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadline: string ,
deadLine: string ,
timezone: 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 ,
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 SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitHibernate",
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@added_8e7a24c2700349979ac13d5a23edefc8": {
              "#name": "optimizationPreference",
              "Description": "Details that could optimize the user's request",
              "Enum": [
                [
                  "Cost",
                  "Optimize while considering cost savings"
                ],
                [
                  "Availability",
                  "Optimize while considering availability of resources"
                ],
                [
                  "CostAvailabilityBalanced",
                  "Optimize while considering a balance of cost and availability"
                ]
              ],
              "Required": false,
              "Type": "string"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadline: string ,
deadLine: string ,
timezone: 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 ,
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 SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitStart",
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@added_478be14fefab48e8b27464f7e1df0fa0": {
              "#name": "optimizationPreference",
              "Description": "Details that could optimize the user's request",
              "Enum": [
                [
                  "Cost",
                  "Optimize while considering cost savings"
                ],
                [
                  "Availability",
                  "Optimize while considering availability of resources"
                ],
                [
                  "CostAvailabilityBalanced",
                  "Optimize while considering a balance of cost and availability"
                ]
              ],
              "Required": false,
              "Type": "string"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadline: string ,
deadLine: string ,
timezone: 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 ,
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 ,
}
,
]
,
}
,
}