From c62d944b5aa287b105ca42238be9d9280ebffd34 Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Wed, 2 Oct 2024 14:51:02 -0700 Subject: [PATCH 1/5] updating typespec to 2024-07-01.20.0 api --- specification/batch/Azure.Batch/client.tsp | 9 +- .../Applications_GetApplication.json | 2 +- .../Applications_ListApplications.json | 2 +- .../JobSchedules_CreateJobSchedule_Basic.json | 2 +- ...obSchedules_CreateJobSchedule_Complex.json | 12 +- .../JobSchedules_DeleteJobSchedule.json | 2 +- .../JobSchedules_DisableJobSchedule.json | 2 +- .../JobSchedules_EnableJobSchedule.json | 2 +- .../JobSchedules_GetJobSchedule.json | 2 +- .../JobSchedules_JobScheduleExists.json | 2 +- .../JobSchedules_ListJobSchedules.json | 2 +- .../JobSchedules_ReplaceJobSchedule.json | 2 +- .../JobSchedules_TerminateJobSchedule.json | 2 +- .../JobSchedules_UpdateJobSchedule.json | 2 +- .../Jobs_CreateJob_Basic.json | 2 +- .../Jobs_CreateJob_Complex.json | 12 +- .../Jobs_DeleteJob.json | 2 +- .../Jobs_DisableJob.json | 2 +- .../Jobs_EnableJob.json | 2 +- .../Jobs_GetJob.json | 2 +- .../Jobs_GetJobTaskCounts.json | 2 +- ...istJobPreparationAndReleaseTaskStatus.json | 4 +- .../Jobs_ListJobs.json | 2 +- .../Jobs_ListJobsFromSchedule.json | 2 +- .../Jobs_ReplaceJob.json | 2 +- .../Jobs_TerminateJob.json | 2 +- .../Jobs_UpdateJob.json | 2 +- .../2024-07-01.20.0/Node_DeallocateNode.json | 18 + .../2024-07-01.20.0/Node_StartNode.json | 15 + .../Nodes_CreateNodeUser.json | 2 +- .../Nodes_DeleteNodeFile.json | 2 +- .../Nodes_DeleteNodeUser.json | 2 +- .../Nodes_DisableNodeScheduling.json | 2 +- .../Nodes_EnableNodeScheduling.json | 2 +- .../Nodes_GetNode.json | 2 +- .../Nodes_GetNodeExtension.json | 2 +- .../Nodes_GetNodeFile.json | 2 +- .../Nodes_GetNodeFileProperties.json | 2 +- .../Nodes_GetNodeRemoteLoginSettings.json | 2 +- .../Nodes_ListNodeExtensions.json | 2 +- .../Nodes_ListNodeFiles.json | 2 +- .../Nodes_ListNodes.json | 2 +- .../2024-07-01.20.0/Nodes_NodeReimage.json | 18 + .../Nodes_RebootNode.json | 2 +- .../Nodes_ReplaceNodeUser.json | 2 +- .../Nodes_UploadNodeLogs.json | 2 +- ...ools_CreatePool_AcceleratedNetworking.json | 2 +- .../Pools_CreatePool_MountConfiguration.json | 2 +- .../Pools_CreatePool_OSDisk.json | 2 +- .../Pools_CreatePool_ResourceTags.json | 2 +- .../Pools_CreatePool_SecurityProfile.json | 2 +- ...reatePool_VirtualMachineConfiguration.json | 2 +- ...ualMachineConfigurationWithContainers.json | 2 +- ...ualMachineConfigurationWithExtensions.json | 2 +- ...igurationWithServiceArtifactReference.json | 2 +- .../Pools_DeletePool.json | 2 +- .../Pools_DisablePoolAutoScale.json | 2 +- .../Pools_EnablePoolAutoscale.json | 2 +- .../Pools_EvaluatePoolAutoscale.json | 2 +- .../Pools_GetPool_AcceleratedNetworking.json | 2 +- .../Pools_GetPool_Basic.json | 2 +- .../Pools_GetPool_SecurityProfile.json | 2 +- ...ualMachineConfigurationWithExtensions.json | 2 +- ...VirtualMachineConfigurationWithOSDisk.json | 2 +- ...igurationWithServiceArtifactReference.json | 2 +- .../Pools_ListPoolNodeCounts.json | 14 +- .../Pools_ListPoolUsageMetrics.json | 2 +- .../Pools_ListPools_Basic.json | 4 +- .../Pools_ListSupportedImages.json | 2 +- .../Pools_PoolExists.json | 2 +- .../Pools_RemoveNodes.json | 2 +- .../Pools_ReplacePoolProperties.json | 2 +- .../Pools_ResizePool.json | 2 +- .../Pools_StopPoolResize.json | 2 +- .../Pools_UpdatePool.json | 2 +- .../Tasks_CreateTaskCollection_Basic.json | 2 +- .../Tasks_CreateTaskCollection_Complex.json | 2 +- .../Tasks_CreateTask_Basic.json | 2 +- .../Tasks_CreateTask_ContainerSettings.json | 2 +- ...sk_ContainerSettingsWithDataIsolation.json | 33 + ...ngsWithDataIsolation_DuplicateSources.json | 37 + .../Tasks_CreateTask_ExitConditions.json | 2 +- .../Tasks_CreateTask_RequiredSlots.json | 2 +- .../Tasks_DeleteTask.json | 2 +- .../Tasks_DeleteTaskFile.json | 2 +- .../Tasks_GetTask.json | 2 +- .../Tasks_GetTaskFile.json | 2 +- .../Tasks_GetTaskFileProperties.json | 2 +- .../Tasks_ListSubTasks.json | 2 +- .../Tasks_ListTaskFiles.json | 2 +- .../Tasks_ListTasks.json | 2 +- .../Tasks_ReactivateTask.json | 2 +- .../Tasks_ReplaceTask.json | 2 +- .../Tasks_TerminateTask.json | 2 +- specification/batch/Azure.Batch/main.tsp | 4 +- specification/batch/Azure.Batch/models.tsp | 194 +- specification/batch/Azure.Batch/routes.tsp | 112 +- .../batch/Azure.Batch/tspconfig.yaml | 4 +- .../stable/2024-07-01.20.0/BatchService.json | 16615 ++++++++++++++++ .../examples/Applications_GetApplication.json | 22 + .../Applications_ListApplications.json | 25 + .../JobSchedules_CreateJobSchedule_Basic.json | 24 + ...obSchedules_CreateJobSchedule_Complex.json | 132 + .../JobSchedules_DeleteJobSchedule.json | 14 + .../JobSchedules_DisableJobSchedule.json | 14 + .../JobSchedules_EnableJobSchedule.json | 14 + .../examples/JobSchedules_GetJobSchedule.json | 48 + .../JobSchedules_JobScheduleExists.json | 15 + .../JobSchedules_ListJobSchedules.json | 79 + .../JobSchedules_ReplaceJobSchedule.json | 30 + .../JobSchedules_TerminateJobSchedule.json | 14 + .../JobSchedules_UpdateJobSchedule.json | 30 + .../examples/Jobs_CreateJob_Basic.json | 20 + .../examples/Jobs_CreateJob_Complex.json | 124 + .../examples/Jobs_DeleteJob.json | 14 + .../examples/Jobs_DisableJob.json | 17 + .../examples/Jobs_EnableJob.json | 14 + .../2024-07-01.20.0/examples/Jobs_GetJob.json | 45 + .../examples/Jobs_GetJobTaskCounts.json | 31 + ...istJobPreparationAndReleaseTaskStatus.json | 42 + .../examples/Jobs_ListJobs.json | 46 + .../examples/Jobs_ListJobsFromSchedule.json | 47 + .../examples/Jobs_ReplaceJob.json | 24 + .../examples/Jobs_TerminateJob.json | 17 + .../examples/Jobs_UpdateJob.json | 24 + .../examples/Node_DeallocateNode.json | 18 + .../examples/Node_StartNode.json | 15 + .../examples/Nodes_CreateNodeUser.json | 21 + .../examples/Nodes_DeleteNodeFile.json | 17 + .../examples/Nodes_DeleteNodeUser.json | 16 + .../examples/Nodes_DisableNodeScheduling.json | 18 + .../examples/Nodes_EnableNodeScheduling.json | 15 + .../examples/Nodes_GetNode.json | 54 + .../examples/Nodes_GetNodeExtension.json | 37 + .../examples/Nodes_GetNodeFile.json | 23 + .../examples/Nodes_GetNodeFileProperties.json | 22 + .../Nodes_GetNodeRemoteLoginSettings.json | 20 + .../examples/Nodes_ListNodeExtensions.json | 61 + .../examples/Nodes_ListNodeFiles.json | 48 + .../examples/Nodes_ListNodes.json | 136 + .../examples/Nodes_NodeReimage.json | 18 + .../examples/Nodes_RebootNode.json | 18 + .../examples/Nodes_ReplaceNodeUser.json | 20 + .../examples/Nodes_UploadNodeLogs.json | 24 + ...ools_CreatePool_AcceleratedNetworking.json | 30 + .../Pools_CreatePool_MountConfiguration.json | 72 + .../examples/Pools_CreatePool_OSDisk.json | 40 + .../Pools_CreatePool_ResourceTags.json | 31 + .../Pools_CreatePool_SecurityProfile.json | 35 + ...reatePool_VirtualMachineConfiguration.json | 44 + ...ualMachineConfigurationWithContainers.json | 43 + ...ualMachineConfigurationWithExtensions.json | 59 + ...igurationWithServiceArtifactReference.json | 33 + .../examples/Pools_DeletePool.json | 14 + .../examples/Pools_DisablePoolAutoScale.json | 14 + .../examples/Pools_EnablePoolAutoscale.json | 18 + .../examples/Pools_EvaluatePoolAutoscale.json | 22 + .../Pools_GetPool_AcceleratedNetworking.json | 52 + .../examples/Pools_GetPool_Basic.json | 58 + .../Pools_GetPool_SecurityProfile.json | 55 + ...ualMachineConfigurationWithExtensions.json | 74 + ...VirtualMachineConfigurationWithOSDisk.json | 58 + ...igurationWithServiceArtifactReference.json | 54 + .../examples/Pools_ListPoolNodeCounts.json | 141 + .../examples/Pools_ListPoolUsageMetrics.json | 32 + .../examples/Pools_ListPools_Basic.json | 61 + .../examples/Pools_ListSupportedImages.json | 78 + .../examples/Pools_PoolExists.json | 15 + .../examples/Pools_RemoveNodes.json | 20 + .../examples/Pools_ReplacePoolProperties.json | 21 + .../examples/Pools_ResizePool.json | 18 + .../examples/Pools_StopPoolResize.json | 14 + .../examples/Pools_UpdatePool.json | 19 + .../Tasks_CreateTaskCollection_Basic.json | 45 + .../Tasks_CreateTaskCollection_Complex.json | 80 + .../examples/Tasks_CreateTask_Basic.json | 18 + .../Tasks_CreateTask_ContainerSettings.json | 28 + ...sk_ContainerSettingsWithDataIsolation.json | 33 + ...ngsWithDataIsolation_DuplicateSources.json | 37 + .../Tasks_CreateTask_ExitConditions.json | 35 + .../Tasks_CreateTask_RequiredSlots.json | 19 + .../examples/Tasks_DeleteTask.json | 15 + .../examples/Tasks_DeleteTaskFile.json | 17 + .../examples/Tasks_GetTask.json | 46 + .../examples/Tasks_GetTaskFile.json | 23 + .../examples/Tasks_GetTaskFileProperties.json | 22 + .../examples/Tasks_ListSubTasks.json | 52 + .../examples/Tasks_ListTaskFiles.json | 43 + .../examples/Tasks_ListTasks.json | 71 + .../examples/Tasks_ReactivateTask.json | 15 + .../examples/Tasks_ReplaceTask.json | 22 + .../examples/Tasks_TerminateTask.json | 15 + specification/batch/data-plane/readme.md | 9 + 193 files changed, 20525 insertions(+), 143 deletions(-) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Applications_GetApplication.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Applications_ListApplications.json (93%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_CreateJobSchedule_Basic.json (93%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_CreateJobSchedule_Complex.json (91%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_DeleteJobSchedule.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_DisableJobSchedule.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_EnableJobSchedule.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_GetJobSchedule.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_JobScheduleExists.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_ListJobSchedules.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_ReplaceJobSchedule.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_TerminateJobSchedule.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/JobSchedules_UpdateJobSchedule.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_CreateJob_Basic.json (91%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_CreateJob_Complex.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_DeleteJob.json (88%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_DisableJob.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_EnableJob.json (88%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_GetJob.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_GetJobTaskCounts.json (94%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_ListJobPreparationAndReleaseTaskStatus.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_ListJobs.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_ListJobsFromSchedule.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_ReplaceJob.json (93%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_TerminateJob.json (91%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Jobs_UpdateJob.json (93%) create mode 100644 specification/batch/Azure.Batch/examples/2024-07-01.20.0/Node_DeallocateNode.json create mode 100644 specification/batch/Azure.Batch/examples/2024-07-01.20.0/Node_StartNode.json rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_CreateNodeUser.json (93%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_DeleteNodeFile.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_DeleteNodeUser.json (91%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_DisableNodeScheduling.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_EnableNodeScheduling.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_GetNode.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_GetNodeExtension.json (96%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_GetNodeFile.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_GetNodeFileProperties.json (94%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_GetNodeRemoteLoginSettings.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_ListNodeExtensions.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_ListNodeFiles.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_ListNodes.json (99%) create mode 100644 specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_NodeReimage.json rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_RebootNode.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_ReplaceNodeUser.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Nodes_UploadNodeLogs.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_AcceleratedNetworking.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_MountConfiguration.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_OSDisk.json (96%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_ResourceTags.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_SecurityProfile.json (96%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_VirtualMachineConfiguration.json (96%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json (96%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json (96%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_DeletePool.json (89%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_DisablePoolAutoScale.json (89%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_EnablePoolAutoscale.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_EvaluatePoolAutoscale.json (93%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_GetPool_AcceleratedNetworking.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_GetPool_Basic.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_GetPool_SecurityProfile.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_ListPoolNodeCounts.json (89%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_ListPoolUsageMetrics.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_ListPools_Basic.json (96%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_ListSupportedImages.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_PoolExists.json (89%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_RemoveNodes.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_ReplacePoolProperties.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_ResizePool.json (91%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_StopPoolResize.json (89%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Pools_UpdatePool.json (91%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_CreateTaskCollection_Basic.json (96%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_CreateTaskCollection_Complex.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_CreateTask_Basic.json (91%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_CreateTask_ContainerSettings.json (94%) create mode 100644 specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json create mode 100644 specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_CreateTask_ExitConditions.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_CreateTask_RequiredSlots.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_DeleteTask.json (89%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_DeleteTaskFile.json (91%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_GetTask.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_GetTaskFile.json (95%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_GetTaskFileProperties.json (94%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_ListSubTasks.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_ListTaskFiles.json (97%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_ListTasks.json (98%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_ReactivateTask.json (90%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_ReplaceTask.json (92%) rename specification/batch/Azure.Batch/examples/{2024-02-01.19.0 => 2024-07-01.20.0}/Tasks_TerminateTask.json (89%) create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/BatchService.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_GetApplication.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_ListApplications.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DeleteJob.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DisableJob.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_EnableJob.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJob.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobs.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ReplaceJob.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_TerminateJob.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_UpdateJob.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_DeallocateNode.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_StartNode.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNode.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFile.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodes.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_NodeReimage.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_RebootNode.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DeletePool.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_Basic.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPools_Basic.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListSupportedImages.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_PoolExists.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_RemoveNodes.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ResizePool.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_StopPoolResize.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_UpdatePool.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTask.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTask.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFile.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListSubTasks.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTasks.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReactivateTask.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReplaceTask.json create mode 100644 specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_TerminateTask.json diff --git a/specification/batch/Azure.Batch/client.tsp b/specification/batch/Azure.Batch/client.tsp index d8a623867040..dfaaf95a8a32 100644 --- a/specification/batch/Azure.Batch/client.tsp +++ b/specification/batch/Azure.Batch/client.tsp @@ -4,7 +4,7 @@ import "./main.tsp"; using Azure.ClientGenerator.Core; @TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2) -@TypeSpec.Versioning.useDependency(Azure.Batch.Versions.v2024_02_01) +@TypeSpec.Versioning.useDependency(Azure.Batch.Versions.v2024_07_01) namespace Client; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "" #suppress "@azure-tools/typespec-azure-core/no-rpc-path-params" "" @@ -76,6 +76,9 @@ interface BatchClient { replaceNodeUser is Azure.Batch.Nodes.replaceNodeUser; getNode is Azure.Batch.Nodes.getNode; rebootNode is Azure.Batch.Nodes.rebootNode; + startNode is Azure.Batch.Nodes.startNode; + reimageNode is Azure.Batch.Nodes.reimageNode; + deallocateNode is Azure.Batch.Nodes.deallocateNode; disableNodeScheduling is Azure.Batch.Nodes.disableNodeScheduling; enableNodeScheduling is Azure.Batch.Nodes.enableNodeScheduling; getNodeRemoteLoginSettings is Azure.Batch.Nodes.getNodeRemoteLoginSettings; @@ -218,6 +221,9 @@ interface BatchClient { @@clientName(BatchClient.replaceNodeUser, "replaceNodeUserInternal", "java"); @@clientName(BatchClient.getNode, "getNodeInternal", "java"); @@clientName(BatchClient.rebootNode, "rebootNodeInternal", "java"); +@@clientName(BatchClient.startNode, "startNodeInternal", "java"); +@@clientName(BatchClient.reimageNode, "reimageNodeInternal", "java"); +@@clientName(BatchClient.deallocateNode, "deallocateNodeInternal", "java"); @@clientName(BatchClient.disableNodeScheduling, "disableNodeSchedulingInternal", "java" @@ -306,6 +312,7 @@ interface BatchClient { @@access(Azure.Batch.BatchNodeUserUpdateContent, Access.public, "java"); @@access(Azure.Batch.BatchNode, Access.public, "java"); @@access(Azure.Batch.BatchNodeRebootContent, Access.public, "java"); +@@access(Azure.Batch.BatchNodeDeallocateContent, Access.public, "java"); @@access(Azure.Batch.BatchNodeReimageContent, Access.public, "java"); @@access(Azure.Batch.BatchNodeDisableSchedulingContent, Access.public, "java"); @@access(Azure.Batch.BatchNodeRemoteLoginSettings, Access.public, "java"); diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Applications_GetApplication.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Applications_GetApplication.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Applications_GetApplication.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Applications_GetApplication.json index e18b17fbaab0..24120780e2d2 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Applications_GetApplication.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Applications_GetApplication.json @@ -3,7 +3,7 @@ "title": "Get applications", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "applicationId": "my_application_id" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Applications_ListApplications.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Applications_ListApplications.json similarity index 93% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Applications_ListApplications.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Applications_ListApplications.json index d4c8edbf5e5a..3d9488449d95 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Applications_ListApplications.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Applications_ListApplications.json @@ -3,7 +3,7 @@ "title": "List applications", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_CreateJobSchedule_Basic.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_CreateJobSchedule_Basic.json similarity index 93% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_CreateJobSchedule_Basic.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_CreateJobSchedule_Basic.json index 73996de79a79..84d8577c3564 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_CreateJobSchedule_Basic.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_CreateJobSchedule_Basic.json @@ -3,7 +3,7 @@ "title": "Creates a basic JobSchedule", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "jobSchedule": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_CreateJobSchedule_Complex.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_CreateJobSchedule_Complex.json similarity index 91% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_CreateJobSchedule_Complex.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_CreateJobSchedule_Complex.json index 6d4387e11cfe..597bbe4dbd88 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_CreateJobSchedule_Complex.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_CreateJobSchedule_Complex.json @@ -3,7 +3,7 @@ "title": "Creates a complex JobScheduleAdd", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "jobSchedule": { @@ -59,7 +59,7 @@ "autoPoolIdPrefix": "mypool", "poolLifetimeOption": "jobschedule", "pool": { - "vmSize": "Standard_D1_v2", + "vmSize": "STANDARD_D2S_V3", "virtualMachineConfiguration": { "imageReference": { "publisher": "MicrosoftWindowsServer", @@ -67,7 +67,13 @@ "sku": "2016-datacenter-smalldisk", "version": "latest" }, - "nodeAgentSKUId": "batch.node.windows amd64" + "nodeAgentSKUId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": false + }, + "nodePlacementConfiguration": { + "policy": "zonal" + } }, "resizeTimeout": "PT15M", "targetDedicatedNodes": 3, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_DeleteJobSchedule.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_DeleteJobSchedule.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_DeleteJobSchedule.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_DeleteJobSchedule.json index 4eb1b3ba028d..cfb3b3126163 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_DeleteJobSchedule.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_DeleteJobSchedule.json @@ -3,7 +3,7 @@ "title": "JobSchedule delete", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_DisableJobSchedule.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_DisableJobSchedule.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_DisableJobSchedule.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_DisableJobSchedule.json index 641df039a089..ec35089fd54c 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_DisableJobSchedule.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_DisableJobSchedule.json @@ -3,7 +3,7 @@ "title": "JobSchedule disable", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_EnableJobSchedule.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_EnableJobSchedule.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_EnableJobSchedule.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_EnableJobSchedule.json index f34cbbb0fc1b..299fe57388f9 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_EnableJobSchedule.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_EnableJobSchedule.json @@ -3,7 +3,7 @@ "title": "JobSchedule enable", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_GetJobSchedule.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_GetJobSchedule.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_GetJobSchedule.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_GetJobSchedule.json index 223be7fe95b6..cc71f9cd756b 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_GetJobSchedule.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_GetJobSchedule.json @@ -3,7 +3,7 @@ "title": "JobSchedule get", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_JobScheduleExists.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_JobScheduleExists.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_JobScheduleExists.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_JobScheduleExists.json index 00d523f0fe70..d67abcf3e706 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_JobScheduleExists.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_JobScheduleExists.json @@ -3,7 +3,7 @@ "title": "Check Job Schedule Exists", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_ListJobSchedules.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_ListJobSchedules.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_ListJobSchedules.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_ListJobSchedules.json index 5f873b246975..04e4d32afcee 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_ListJobSchedules.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_ListJobSchedules.json @@ -3,7 +3,7 @@ "title": "JobSchedule list", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_ReplaceJobSchedule.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_ReplaceJobSchedule.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_ReplaceJobSchedule.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_ReplaceJobSchedule.json index 3625de2dd434..d48982782b9c 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_ReplaceJobSchedule.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_ReplaceJobSchedule.json @@ -3,7 +3,7 @@ "title": "JobSchedule patch", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_TerminateJobSchedule.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_TerminateJobSchedule.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_TerminateJobSchedule.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_TerminateJobSchedule.json index ffd2a483d448..b18cf1916b2b 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_TerminateJobSchedule.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_TerminateJobSchedule.json @@ -3,7 +3,7 @@ "title": "JobSchedule terminate", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_UpdateJobSchedule.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_UpdateJobSchedule.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_UpdateJobSchedule.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_UpdateJobSchedule.json index 069a43caf6be..7e9311ab4f57 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/JobSchedules_UpdateJobSchedule.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/JobSchedules_UpdateJobSchedule.json @@ -3,7 +3,7 @@ "title": "JobSchedule update", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_CreateJob_Basic.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_CreateJob_Basic.json similarity index 91% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_CreateJob_Basic.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_CreateJob_Basic.json index baab498938f8..ba9c69bb1c08 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_CreateJob_Basic.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_CreateJob_Basic.json @@ -3,7 +3,7 @@ "title": "Creates a basic job", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "job": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_CreateJob_Complex.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_CreateJob_Complex.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_CreateJob_Complex.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_CreateJob_Complex.json index e84804756085..4d0b8560f32f 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_CreateJob_Complex.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_CreateJob_Complex.json @@ -3,7 +3,7 @@ "title": "Creates a complex job", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "job": { @@ -52,7 +52,7 @@ "autoPoolIdPrefix": "mypool", "poolLifetimeOption": "job", "pool": { - "vmSize": "Standard_D1_v2", + "vmSize": "STANDARD_D2S_V3", "virtualMachineConfiguration": { "imageReference": { "publisher": "MicrosoftWindowsServer", @@ -60,7 +60,13 @@ "sku": "2016-datacenter-smalldisk", "version": "latest" }, - "nodeAgentSKUId": "batch.node.windows amd64" + "nodeAgentSKUId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": false + }, + "nodePlacementConfiguration": { + "policy": "zonal" + } }, "resizeTimeout": "PT15M", "targetDedicatedNodes": 3, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_DeleteJob.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_DeleteJob.json similarity index 88% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_DeleteJob.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_DeleteJob.json index dc0f8e197ecf..83175db2e27a 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_DeleteJob.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_DeleteJob.json @@ -3,7 +3,7 @@ "title": "Delete Job", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_DisableJob.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_DisableJob.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_DisableJob.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_DisableJob.json index 976ee3ca6169..28510af741a6 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_DisableJob.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_DisableJob.json @@ -3,7 +3,7 @@ "title": "Job disable", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_EnableJob.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_EnableJob.json similarity index 88% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_EnableJob.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_EnableJob.json index ec972d834143..8251b14494c0 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_EnableJob.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_EnableJob.json @@ -3,7 +3,7 @@ "title": "Job enable", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_GetJob.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_GetJob.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_GetJob.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_GetJob.json index fa59fbe1be5d..bd508f90a31f 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_GetJob.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_GetJob.json @@ -3,7 +3,7 @@ "title": "Job get", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_GetJobTaskCounts.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_GetJobTaskCounts.json similarity index 94% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_GetJobTaskCounts.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_GetJobTaskCounts.json index 70f734727ce2..39ca25067b14 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_GetJobTaskCounts.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_GetJobTaskCounts.json @@ -3,7 +3,7 @@ "title": "Job get task counts", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobPreparationAndReleaseTaskStatus.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobPreparationAndReleaseTaskStatus.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobPreparationAndReleaseTaskStatus.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobPreparationAndReleaseTaskStatus.json index 03e36673a779..a174e7067877 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobPreparationAndReleaseTaskStatus.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobPreparationAndReleaseTaskStatus.json @@ -3,7 +3,7 @@ "title": "Job list preparation and release task status", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" @@ -35,7 +35,7 @@ } } ], - "odata.nextLink": "https://account.region.batch.azure.com/jobs/myjob/jobpreparationandreleasestatus?$skipToken=tvm-2167304207_1-20140905t174658z&api-version=2024-02-01.19.0" + "odata.nextLink": "https://account.region.batch.azure.com/jobs/myjob/jobpreparationandreleasestatus?$skipToken=tvm-2167304207_1-20140905t174658z&api-version=2024-07-01.20.0" } } } diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobs.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobs.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobs.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobs.json index 487658237517..dab7b8e30caa 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobs.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobs.json @@ -3,7 +3,7 @@ "title": "Job list", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobsFromSchedule.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobsFromSchedule.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobsFromSchedule.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobsFromSchedule.json index 2ba6158c6d78..a763b9bad5b0 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ListJobsFromSchedule.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ListJobsFromSchedule.json @@ -3,7 +3,7 @@ "title": "List Job Under Job Schedule", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobScheduleId": "jobScheduleId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ReplaceJob.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ReplaceJob.json similarity index 93% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ReplaceJob.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ReplaceJob.json index e7b75ae8aefd..eedb3083e1e0 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_ReplaceJob.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_ReplaceJob.json @@ -3,7 +3,7 @@ "title": "Job patch", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_TerminateJob.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_TerminateJob.json similarity index 91% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_TerminateJob.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_TerminateJob.json index 2ec4cbd216a1..92f2f3c56481 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_TerminateJob.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_TerminateJob.json @@ -3,7 +3,7 @@ "title": "Job terminate", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_UpdateJob.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_UpdateJob.json similarity index 93% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_UpdateJob.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_UpdateJob.json index b1ddadf806fd..1280cb696495 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Jobs_UpdateJob.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Jobs_UpdateJob.json @@ -3,7 +3,7 @@ "title": "Job update", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Node_DeallocateNode.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Node_DeallocateNode.json new file mode 100644 index 000000000000..beba564d2c46 --- /dev/null +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Node_DeallocateNode.json @@ -0,0 +1,18 @@ +{ + "operationId": "Nodes_DeallocateNode", + "title": "Node Deallocate", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeDeallocateParameter": { + "nodeDeallocateOption": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Node_StartNode.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Node_StartNode.json new file mode 100644 index 000000000000..dba002f5df03 --- /dev/null +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Node_StartNode.json @@ -0,0 +1,15 @@ +{ + "operationId": "Nodes_StartNode", + "title": "Node start", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_CreateNodeUser.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_CreateNodeUser.json similarity index 93% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_CreateNodeUser.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_CreateNodeUser.json index 1f3232520cd9..d38cd713bb4b 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_CreateNodeUser.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_CreateNodeUser.json @@ -3,7 +3,7 @@ "title": "Node create user", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161121t182739z", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DeleteNodeFile.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DeleteNodeFile.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DeleteNodeFile.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DeleteNodeFile.json index ed146c43d47b..862b172936a1 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DeleteNodeFile.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DeleteNodeFile.json @@ -3,7 +3,7 @@ "title": "File delete from node", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161122t193202z", "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DeleteNodeUser.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DeleteNodeUser.json similarity index 91% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DeleteNodeUser.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DeleteNodeUser.json index 999f12cc26e8..415f79422e46 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DeleteNodeUser.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DeleteNodeUser.json @@ -3,7 +3,7 @@ "title": "Node delete user", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161121t182739z", "userName": "userName", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DisableNodeScheduling.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DisableNodeScheduling.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DisableNodeScheduling.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DisableNodeScheduling.json index c62df5ec29e8..78838915dfcf 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_DisableNodeScheduling.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_DisableNodeScheduling.json @@ -3,7 +3,7 @@ "title": "Node disable scheduling", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161122t193202z", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_EnableNodeScheduling.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_EnableNodeScheduling.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_EnableNodeScheduling.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_EnableNodeScheduling.json index f64ddacbb438..868be69627aa 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_EnableNodeScheduling.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_EnableNodeScheduling.json @@ -3,7 +3,7 @@ "title": "Node enable scheduling", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161122t193202z", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNode.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNode.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNode.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNode.json index e4f594070200..04656b7cb676 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNode.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNode.json @@ -5,7 +5,7 @@ "batchUrl": "account.region.batch.azure.com", "poolId": "poolId", "nodeId": "tvm-1695681911_2-20161122t193202z", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeExtension.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeExtension.json similarity index 96% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeExtension.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeExtension.json index 6504539dc06b..f1b15b4a6a3b 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeExtension.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeExtension.json @@ -6,7 +6,7 @@ "poolId": "poolId", "nodeId": "tvm-1695681911_2-20161122t193202z", "extensionName": "batchNodeExtension", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeFile.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeFile.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeFile.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeFile.json index c7198ff8d4ed..92a376d1d4a6 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeFile.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeFile.json @@ -3,7 +3,7 @@ "title": "Get File From Compute Node", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "nodeId", "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeFileProperties.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeFileProperties.json similarity index 94% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeFileProperties.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeFileProperties.json index 90073c586af3..4e76206dd77c 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeFileProperties.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeFileProperties.json @@ -3,7 +3,7 @@ "title": "File get properties from node", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "nodeId", "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeRemoteLoginSettings.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeRemoteLoginSettings.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeRemoteLoginSettings.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeRemoteLoginSettings.json index b26c660050ab..53b5291a569c 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_GetNodeRemoteLoginSettings.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_GetNodeRemoteLoginSettings.json @@ -3,7 +3,7 @@ "title": "Node get remote login settings", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161121t182739z", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodeExtensions.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodeExtensions.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodeExtensions.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodeExtensions.json index aa7faefe4938..5e4f7fb1eebe 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodeExtensions.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodeExtensions.json @@ -3,7 +3,7 @@ "title": "List compute node extensions", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_2-20161122t193202z", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodeFiles.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodeFiles.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodeFiles.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodeFiles.json index 164111ec8a3d..b7dd7ef9b6db 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodeFiles.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodeFiles.json @@ -3,7 +3,7 @@ "title": "File list from node", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161122t193202z", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodes.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodes.json similarity index 99% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodes.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodes.json index 6c3fd0244810..ebec819a1bde 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ListNodes.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ListNodes.json @@ -3,7 +3,7 @@ "title": "Node list", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_NodeReimage.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_NodeReimage.json new file mode 100644 index 000000000000..b53e9c67d153 --- /dev/null +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_NodeReimage.json @@ -0,0 +1,18 @@ +{ + "operationId": "Nodes_ReimageNode", + "title": "Node reimage", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeReimageParameter": { + "nodeReimageOption": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_RebootNode.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_RebootNode.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_RebootNode.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_RebootNode.json index d828bf48908d..150acaadcd07 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_RebootNode.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_RebootNode.json @@ -3,7 +3,7 @@ "title": "Node reboot", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161122t193202z", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ReplaceNodeUser.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ReplaceNodeUser.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ReplaceNodeUser.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ReplaceNodeUser.json index 7408e05d475b..d93a7ffd93eb 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_ReplaceNodeUser.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_ReplaceNodeUser.json @@ -3,7 +3,7 @@ "title": "Node update user", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161121t182739z", "userName": "userName", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_UploadNodeLogs.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_UploadNodeLogs.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_UploadNodeLogs.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_UploadNodeLogs.json index ac111761c050..c4ce833ad67a 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Nodes_UploadNodeLogs.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Nodes_UploadNodeLogs.json @@ -3,7 +3,7 @@ "title": "Upload BatchService Logs", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "nodeId": "tvm-1695681911_1-20161121t182739z", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_AcceleratedNetworking.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_AcceleratedNetworking.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_AcceleratedNetworking.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_AcceleratedNetworking.json index 51ce88f34fd3..92dc19a13166 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_AcceleratedNetworking.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_AcceleratedNetworking.json @@ -3,7 +3,7 @@ "title": "Creates a pool with accelerated networking", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Thu, 27 Apr 2023 05:31:01 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_MountConfiguration.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_MountConfiguration.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_MountConfiguration.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_MountConfiguration.json index 86c734c6f9ca..226ddbba2925 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_MountConfiguration.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_MountConfiguration.json @@ -3,7 +3,7 @@ "title": "Creates a pool with mount drive specified", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_OSDisk.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_OSDisk.json similarity index 96% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_OSDisk.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_OSDisk.json index f144330b8d1b..b6b570be4153 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_OSDisk.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_OSDisk.json @@ -3,7 +3,7 @@ "title": "Creates a VirtualMachineConfiguration pool with OS disk", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Wed, 23 Aug 2023 08:40:02 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_ResourceTags.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_ResourceTags.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_ResourceTags.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_ResourceTags.json index 0457709ba9c5..87ef2da9bbc2 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_ResourceTags.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_ResourceTags.json @@ -3,7 +3,7 @@ "title": "Creates a simple pool with resourceTags", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Wed, 14 Jun 2023 06:39:01 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_SecurityProfile.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_SecurityProfile.json similarity index 96% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_SecurityProfile.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_SecurityProfile.json index 769bd5b7ceab..0bb88a3b5fc3 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_SecurityProfile.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_SecurityProfile.json @@ -3,7 +3,7 @@ "title": "Creates a pool with SecurityProfile", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Wed, 14 Jun 2023 06:39:01 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfiguration.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfiguration.json similarity index 96% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfiguration.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfiguration.json index fdda1fc4bd29..80f90a22dda3 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfiguration.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfiguration.json @@ -3,7 +3,7 @@ "title": "Creates a VirtualMachineConfiguration pool", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json similarity index 96% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json index 6c93e93aebf9..08306081f2a7 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json @@ -3,7 +3,7 @@ "title": "Creates a VirtualMachineConfiguration pool with containers", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json index ec470c8b9617..1dfd0411496c 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json @@ -3,7 +3,7 @@ "title": "Creates a VirtualMachineConfiguration pool with extensions", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json similarity index 96% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json index 28aa0e11bd67..488744a59ee6 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json @@ -3,7 +3,7 @@ "title": "Creates a VirtualMachineConfiguration pool with ServiceArtifactReference", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Thu, 11 May 2023 08:03:01 GMT", "pool": { diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_DeletePool.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_DeletePool.json similarity index 89% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_DeletePool.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_DeletePool.json index 88c53b1b46e2..3125fb5f45ce 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_DeletePool.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_DeletePool.json @@ -3,7 +3,7 @@ "title": "Pool delete", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_DisablePoolAutoScale.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_DisablePoolAutoScale.json similarity index 89% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_DisablePoolAutoScale.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_DisablePoolAutoScale.json index ac34fc088182..973f97a7dbcb 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_DisablePoolAutoScale.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_DisablePoolAutoScale.json @@ -3,7 +3,7 @@ "title": "Disable pool autoscale", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_EnablePoolAutoscale.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_EnablePoolAutoscale.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_EnablePoolAutoscale.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_EnablePoolAutoscale.json index e6a2627b9274..c4ce7c23579d 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_EnablePoolAutoscale.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_EnablePoolAutoscale.json @@ -3,7 +3,7 @@ "title": "Pool enable autoscale", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_EvaluatePoolAutoscale.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_EvaluatePoolAutoscale.json similarity index 93% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_EvaluatePoolAutoscale.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_EvaluatePoolAutoscale.json index 1c05283aab88..25ee2bbcf2f6 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_EvaluatePoolAutoscale.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_EvaluatePoolAutoscale.json @@ -3,7 +3,7 @@ "title": "Pool evaluate autoscale", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_AcceleratedNetworking.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_AcceleratedNetworking.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_AcceleratedNetworking.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_AcceleratedNetworking.json index fcb46bf1c1a2..8b7526f52f1e 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_AcceleratedNetworking.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_AcceleratedNetworking.json @@ -3,7 +3,7 @@ "title": "Get a pool with AcceleratedNetworking", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "pool", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 28 Apr 2023 02:43:01 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_Basic.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_Basic.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_Basic.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_Basic.json index 9bae3ce6828b..6262ef80a3f7 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_Basic.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_Basic.json @@ -3,7 +3,7 @@ "title": "Pool get", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "pool", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_SecurityProfile.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_SecurityProfile.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_SecurityProfile.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_SecurityProfile.json index f020e3b32e0b..58ee2ddcbd99 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_SecurityProfile.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_SecurityProfile.json @@ -3,7 +3,7 @@ "title": "Get a VirtualMachineConfiguration pool with SecurityProfile", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "mypool001", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Wed, 14 Jun 2023 06:39:01 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json index 82a7e7b9162e..d6e1c7d07a0b 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json @@ -3,7 +3,7 @@ "title": "Get a VirtualMachineConfiguration pool with extensions", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "pool", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json index 6574e2cbb14a..c8c72b256329 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json @@ -3,7 +3,7 @@ "title": "Add a VirtualMachineConfiguration pool with OS disk", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "mypool001", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Wed, 23 Aug 2023 08:42:01 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json index 7462de39af56..065c6d30d888 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json @@ -3,7 +3,7 @@ "title": "Get a VirtualMachineConfiguration pool with ServiceArtifactReference", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "pool", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Thu, 11 May 2023 08:08:01 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPoolNodeCounts.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPoolNodeCounts.json similarity index 89% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPoolNodeCounts.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPoolNodeCounts.json index d3cbbb642b61..d25481d5bbe0 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPoolNodeCounts.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPoolNodeCounts.json @@ -3,7 +3,7 @@ "title": "NodeCountsPayload", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, @@ -15,6 +15,8 @@ "poolId": "pool1", "dedicated": { "creating": 0, + "deallocated": 0, + "deallocating": 0, "idle": 0, "leavingPool": 0, "offline": 0, @@ -32,6 +34,8 @@ }, "lowPriority": { "creating": 0, + "deallocated": 0, + "deallocating": 0, "idle": 0, "leavingPool": 0, "offline": 0, @@ -52,6 +56,8 @@ "poolId": "pool2", "dedicated": { "creating": 0, + "deallocated": 0, + "deallocating": 0, "idle": 1, "leavingPool": 0, "offline": 3, @@ -69,6 +75,8 @@ }, "lowPriority": { "creating": 0, + "deallocated": 0, + "deallocating": 0, "idle": 0, "leavingPool": 0, "offline": 0, @@ -89,6 +97,8 @@ "poolId": "pool3", "dedicated": { "creating": 0, + "deallocated": 0, + "deallocating": 0, "idle": 5, "leavingPool": 0, "offline": 0, @@ -106,6 +116,8 @@ }, "lowPriority": { "creating": 7, + "deallocated": 0, + "deallocating": 0, "idle": 0, "leavingPool": 0, "offline": 0, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPoolUsageMetrics.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPoolUsageMetrics.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPoolUsageMetrics.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPoolUsageMetrics.json index 82cbeab87d2b..b9fc8590ee01 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPoolUsageMetrics.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPoolUsageMetrics.json @@ -3,7 +3,7 @@ "title": "Pool list usage metrics", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPools_Basic.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPools_Basic.json similarity index 96% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPools_Basic.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPools_Basic.json index 0883574a2b13..f7a2eba406d2 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListPools_Basic.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListPools_Basic.json @@ -3,7 +3,7 @@ "title": "Pool list", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, @@ -21,7 +21,7 @@ "stateTransitionTime": "2016-11-21T18:26:39.7108787Z", "allocationState": "steady", "allocationStateTransitionTime": "2016-11-21T18:27:40.287803Z", - "vmSize": "Standard_D1_v2", + "vmSize": "small", "resizeTimeout": "PT15M", "currentDedicatedNodes": 3, "currentLowPriorityNodes": 0, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListSupportedImages.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListSupportedImages.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListSupportedImages.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListSupportedImages.json index 41c98e95f421..a680b3a7f718 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ListSupportedImages.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ListSupportedImages.json @@ -3,7 +3,7 @@ "title": "Account list node agent skus", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_PoolExists.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_PoolExists.json similarity index 89% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_PoolExists.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_PoolExists.json index 3b7076be3a60..3d4df6ca98df 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_PoolExists.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_PoolExists.json @@ -3,7 +3,7 @@ "title": "Check Pool Exists", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_RemoveNodes.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_RemoveNodes.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_RemoveNodes.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_RemoveNodes.json index 94f6e1387660..2e68b4a5da9f 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_RemoveNodes.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_RemoveNodes.json @@ -3,7 +3,7 @@ "title": "Pool remove nodes", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ReplacePoolProperties.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ReplacePoolProperties.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ReplacePoolProperties.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ReplacePoolProperties.json index 93cb8d88b580..c2208c4d2c0e 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ReplacePoolProperties.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ReplacePoolProperties.json @@ -3,7 +3,7 @@ "title": "Pool update", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ResizePool.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ResizePool.json similarity index 91% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ResizePool.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ResizePool.json index fcfd1e063b38..29ffedcbcfab 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_ResizePool.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_ResizePool.json @@ -3,7 +3,7 @@ "title": "Pool resize", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "resizePool", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_StopPoolResize.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_StopPoolResize.json similarity index 89% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_StopPoolResize.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_StopPoolResize.json index db1f0716dfed..c63dce3238c5 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_StopPoolResize.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_StopPoolResize.json @@ -3,7 +3,7 @@ "title": "Pool stop resize", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_UpdatePool.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_UpdatePool.json similarity index 91% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_UpdatePool.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_UpdatePool.json index 1138f17ad957..28d784abfed8 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Pools_UpdatePool.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Pools_UpdatePool.json @@ -3,7 +3,7 @@ "title": "Patch the Pool", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "poolId": "poolId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTaskCollection_Basic.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTaskCollection_Basic.json similarity index 96% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTaskCollection_Basic.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTaskCollection_Basic.json index ef37e3605956..d2e7cc3f97f0 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTaskCollection_Basic.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTaskCollection_Basic.json @@ -3,7 +3,7 @@ "title": "Creates a basic collection of tasks", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTaskCollection_Complex.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTaskCollection_Complex.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTaskCollection_Complex.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTaskCollection_Complex.json index 5d3ea8180cf6..3124669e48a4 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTaskCollection_Complex.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTaskCollection_Complex.json @@ -3,7 +3,7 @@ "title": "Creates a complex collection of tasks", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_Basic.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_Basic.json similarity index 91% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_Basic.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_Basic.json index 9ac29f42ba78..19009ec05e46 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_Basic.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_Basic.json @@ -3,7 +3,7 @@ "title": "Creates a basic task", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_ContainerSettings.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettings.json similarity index 94% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_ContainerSettings.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettings.json index 55bd01e12b65..435647de8e6f 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_ContainerSettings.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettings.json @@ -3,7 +3,7 @@ "title": "Creates a task with container settings", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json new file mode 100644 index 000000000000..bf4b3e6125c1 --- /dev/null +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json @@ -0,0 +1,33 @@ +{ + "operationId": "Tasks_CreateTask", + "title": "Creates a task with container settings with data isolation", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Tue, 26 Mar 2024 00:00:00 GMT", + "task": { + "id": "taskId", + "commandLine": "bash -c 'echo hello'", + "containerSettings": { + "imageName": "ubuntu", + "containerHostBatchBindMounts": [ + { + "source": "Task", + "isReadOnly": true + } + ] + }, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json new file mode 100644 index 000000000000..219df4f7ed6b --- /dev/null +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json @@ -0,0 +1,37 @@ +{ + "operationId": "Tasks_CreateTask", + "title": "Creates a task with container settings with duplicate source", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Tue, 26 Mar 2024 00:00:00 GMT", + "task": { + "id": "taskId", + "commandLine": "bash -c 'echo hello'", + "containerSettings": { + "imageName": "ubuntu", + "containerHostBatchBindMounts": [ + { + "source": "Task", + "isReadOnly": true + }, + { + "source": "Task", + "isReadOnly": true + } + ] + }, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_ExitConditions.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ExitConditions.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_ExitConditions.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ExitConditions.json index 4031c4a776cf..7e906114290b 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_ExitConditions.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_ExitConditions.json @@ -3,7 +3,7 @@ "title": "Creates a task with exit conditions", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_RequiredSlots.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_RequiredSlots.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_RequiredSlots.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_RequiredSlots.json index 6b14c38c96ea..d5edf7f9b2f3 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_CreateTask_RequiredSlots.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_CreateTask_RequiredSlots.json @@ -3,7 +3,7 @@ "title": "Creates a task with extra slot requirement", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_DeleteTask.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_DeleteTask.json similarity index 89% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_DeleteTask.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_DeleteTask.json index 0f7d404c37a5..137f15899eea 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_DeleteTask.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_DeleteTask.json @@ -3,7 +3,7 @@ "title": "Task delete", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "taskId", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_DeleteTaskFile.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_DeleteTaskFile.json similarity index 91% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_DeleteTaskFile.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_DeleteTaskFile.json index 0908b20f659a..aaafede1c026 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_DeleteTaskFile.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_DeleteTaskFile.json @@ -3,7 +3,7 @@ "title": "File delete from task", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "task1", "filePath": "wd\\testFile.txt", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTask.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTask.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTask.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTask.json index 3e8e2daaf788..312752b206e9 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTask.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTask.json @@ -3,7 +3,7 @@ "title": "Task get", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "taskId", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTaskFile.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTaskFile.json similarity index 95% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTaskFile.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTaskFile.json index 14df3ed4f5ef..4dbf72e96c7f 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTaskFile.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTaskFile.json @@ -3,7 +3,7 @@ "title": "Get File From Task", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "task1", "filePath": "wd\\testFile.txt", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTaskFileProperties.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTaskFileProperties.json similarity index 94% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTaskFileProperties.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTaskFileProperties.json index a4b6bb55369e..99e3c7b9177f 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_GetTaskFileProperties.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_GetTaskFileProperties.json @@ -3,7 +3,7 @@ "title": "File get properties from task", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "taskId", "filePath": "wd\\testFile.txt", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListSubTasks.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListSubTasks.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListSubTasks.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListSubTasks.json index cf4efa6d84c0..f98c195dff2a 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListSubTasks.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListSubTasks.json @@ -3,7 +3,7 @@ "title": "Task list subtasks", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "taskId", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListTaskFiles.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListTaskFiles.json similarity index 97% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListTaskFiles.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListTaskFiles.json index 9d3e580e4afb..494f14e3252d 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListTaskFiles.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListTaskFiles.json @@ -3,7 +3,7 @@ "title": "File list from task", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "taskId", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListTasks.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListTasks.json similarity index 98% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListTasks.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListTasks.json index e0fe12da8340..4eac964e9582 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ListTasks.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ListTasks.json @@ -3,7 +3,7 @@ "title": "Task list", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ReactivateTask.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ReactivateTask.json similarity index 90% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ReactivateTask.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ReactivateTask.json index 12a5ad7b37a7..e997458d2906 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ReactivateTask.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ReactivateTask.json @@ -3,7 +3,7 @@ "title": "Task reactivate", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "taskId", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ReplaceTask.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ReplaceTask.json similarity index 92% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ReplaceTask.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ReplaceTask.json index eb8822a9b419..603f15d36c41 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_ReplaceTask.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_ReplaceTask.json @@ -3,7 +3,7 @@ "title": "Task update", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "taskId", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_TerminateTask.json b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_TerminateTask.json similarity index 89% rename from specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_TerminateTask.json rename to specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_TerminateTask.json index 823bfe3c92dc..dd199028aef5 100644 --- a/specification/batch/Azure.Batch/examples/2024-02-01.19.0/Tasks_TerminateTask.json +++ b/specification/batch/Azure.Batch/examples/2024-07-01.20.0/Tasks_TerminateTask.json @@ -3,7 +3,7 @@ "title": "Task terminate", "parameters": { "batchUrl": "account.region.batch.azure.com", - "api-version": "2024-02-01.19.0", + "api-version": "2024-07-01.20.0", "jobId": "jobId", "taskId": "taskId", "client-request-id": "00000000-0000-0000-0000-000000000000", diff --git a/specification/batch/Azure.Batch/main.tsp b/specification/batch/Azure.Batch/main.tsp index e61b87a7f3aa..6643904bee92 100644 --- a/specification/batch/Azure.Batch/main.tsp +++ b/specification/batch/Azure.Batch/main.tsp @@ -31,7 +31,7 @@ namespace Azure.Batch; @doc("The Azure Batch service version.") enum Versions { - @doc("API Version 2024-02-01.19.0") + @doc("API Version 2024-07-01.20.0") @useDependency(Azure.Core.Versions.v1_0_Preview_2) - v2024_02_01: "2024-02-01.19.0", + v2024_07_01: "2024-07-01.20.0", } diff --git a/specification/batch/Azure.Batch/models.tsp b/specification/batch/Azure.Batch/models.tsp index f39c195e83ea..9b92b504d225 100644 --- a/specification/batch/Azure.Batch/models.tsp +++ b/specification/batch/Azure.Batch/models.tsp @@ -176,6 +176,29 @@ union DiskEncryptionTarget { union BatchNodePlacementPolicyType { string, + @doc("The path for multi-instances task to shared their files.") + Shared: "Shared", + + @doc("The path for start task.") + Startup: "Startup", + + @doc("The path contains all virtual file systems are mounted on this node.") + VfsMounts: "VfsMounts", + + @doc("The task path.") + Task: "Task", + + @doc("The job-prep task path.") + JobPrep: "JobPrep", + + @doc("The applications path.") + Applications: "Applications", +} + +@doc("The paths which will be mounted to container task's container.") +union ContainerHostDataPath { + string, + @doc("All nodes in the pool will be allocated in the same region.") Regional: "regional", @@ -241,7 +264,7 @@ union IpAddressProvisioningType { NoPublicIpAddresses: "nopublicipaddresses", } -@doc("AccessDiffDiskPlacementScope enums") +@doc("Specifies the ephemeral disk placement for operating system disk for all compute nodes (VMs) in the pool. This property can be used by user in the request to choose which location the operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements") union DiffDiskPlacement { string, @@ -430,6 +453,23 @@ union BatchNodeDeallocationOption { RetainedData: "retaineddata", } +@doc("BatchNodeDeallocateOption enums") +union BatchNodeDeallocateOption { + string, + + @doc("Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Deallocate the Compute Node as soon as Tasks have been terminated.") + Requeue: "requeue", + + @doc("Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Deallocate the Compute Node as soon as Tasks have been terminated.") + Terminate: "terminate", + + @doc("Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Deallocate the Compute Node when all Tasks have completed.") + TaskCompletion: "taskcompletion", + + @doc("Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no new Tasks while waiting. Deallocate the Compute Node when all Task retention periods have expired.") + RetainedData: "retaineddata", +} + @doc("BatchJobAction enums") union BatchJobAction { string, @@ -545,6 +585,12 @@ union BatchNodeState { @doc("The Compute Node is undergoing an OS upgrade operation.") UpgradingOS: "upgradingos", + + @doc("The Compute Node is deallocated.") + Deallocated: "deallocated", + + @doc("The Compute Node is deallocating.") + Deallocating: "deallocating", } @doc("UpgradeMode enums") @@ -631,6 +677,17 @@ union BatchNodeDisableSchedulingOption { TaskCompletion: "taskcompletion", } +@doc("SecurityEncryptionTypes enums") +union SecurityEncryptionTypes { + string, + + @doc("NonPersistedTPM") + NonPersistedTPM: "NonPersistedTPM", + + @doc("VMGuestStateOnly") + VMGuestStateOnly: "VMGuestStateOnly", +} + @doc("Level code.") union StatusLevelTypes { string, @@ -651,6 +708,9 @@ union SecurityTypes { @doc("Trusted launch protects against advanced and persistent attack techniques.") "trustedLaunch", + + @doc("Azure confidential computing offers confidential VMs are for tenants with high security and confidentiality requirements. These VMs provide a strong, hardware-enforced boundary to help meet your security needs. You can use confidential VMs for migrations without making changes to your code, with the platform protecting your VM's state from being read or modified.") + "confidentialVM", } @doc("The result of listing the applications available in an Account.") @@ -803,6 +863,12 @@ model ImageReference { @doc("The specific version of the platform image or marketplace image used to create the node. This read-only field differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'.") @visibility("read") exactVersion?: string; + + @doc("The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.") + sharedGalleryImageId?: string; + + @doc("The community gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from community gallery image GET call.") + communityGalleryImageId?: string; } @doc("The result of listing the Compute Node counts in the Account.") @@ -871,6 +937,12 @@ model BatchNodeCounts { @doc("The number of Compute Nodes in the waitingForStartTask state.") waitingForStartTask: int32; + @doc("The number of Compute Nodes in the deallocated state.") + deallocated: int32; + + @doc("The number of Compute Nodes in the deallocating state.") + deallocating: int32; + @doc("The total number of Compute Nodes.") total: int32; @@ -1177,7 +1249,7 @@ model BatchJobScheduleConfiguration { @doc("Specifies the security profile settings for the virtual machine or virtual machine scale set.") model SecurityProfile { - @doc("This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself.") + @doc("This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. For more information on encryption at host requirements, please refer to https://learn.microsoft.com/azure/virtual-machines/disk-encryption#supported-vm-sizes.") encryptionAtHost: boolean; @doc("Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.") @@ -1246,8 +1318,12 @@ model BatchJobSpecification { @doc("The network configuration for the Job.") model BatchJobNetworkConfiguration { - @doc("The ARM resource identifier of the virtual network subnet which Compute Nodes running Tasks from the Job will join for the duration of the Task. This will only work with a VirtualMachineConfiguration Pool. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes which will run Tasks from the Job. This can be up to the number of Compute Nodes in the Pool. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet so that Azure Batch service can schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication from the Azure Batch service. For Pools created with a Virtual Machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Port 443 is also required to be open for outbound connections for communications to Azure Storage. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.") + @doc("The ARM resource identifier of the virtual network subnet which Compute Nodes running Tasks from the Job will join for the duration of the Task. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes which will run Tasks from the Job. This can be up to the number of Compute Nodes in the Pool. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet so that Azure Batch service can schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication from the Azure Batch service. For Pools created with a Virtual Machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Port 443 is also required to be open for outbound connections for communications to Azure Storage. For more details see: https://docs.microsoft.com/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.") subnetId: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase" + @doc("Whether to withdraw Compute Nodes from the virtual network to DNC when the job is terminated or deleted. If true, nodes will remain joined to the virtual network to DNC. If false, nodes will automatically withdraw when the job ends. Defaults to false.") + skipWithdrawFromVNet: boolean; } @doc("The execution constraints for a Job.") @@ -1291,7 +1367,7 @@ model BatchJobManagerTask { @doc("The display name of the Job Manager Task. It need not be unique and can contain any Unicode characters up to a maximum length of 1024.") displayName?: string; - @doc("The command line of the Job Manager Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).") + @doc("The command line of the Job Manager Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables).") commandLine: string; @doc("The settings for the container under which the Job Manager Task runs. If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files.") @@ -1353,6 +1429,18 @@ model BatchTaskContainerSettings { @doc("The location of the container Task working directory. The default is 'taskWorkingDirectory'.") workingDirectory?: ContainerWorkingDirectory; + + @doc("The paths you want to mounted to container task. If this array is null or be not present, container task will mount entire temporary disk drive in windows (or AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty.") + containerHostBatchBindMounts?: ContainerHostBatchBindMountEntry[]; +} + +@doc("The entry of path and mount mode you want to mount into task container.") +model ContainerHostBatchBindMountEntry { + @doc("The path which be mounted to container customer can select.") + source?: ContainerHostDataPath; + + @doc("Mount this source path as read-only mode or not. Default value is false (read/write mode). For Linux, if you mount this path as a read/write mode, this does not mean that all users in container have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, all users within the container will not be able to modify the path.") + isReadOnly?: boolean; } @doc("A private container registry.") @@ -1435,7 +1523,7 @@ model OutputFileBlobContainerDestination { @doc("The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.") identityReference?: BatchNodeIdentityReference; - @doc("A list of name-value pairs for headers to be used in uploading output files. These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when uploading blobs: https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob#request-headers-all-blob-types.") + @doc("A list of name-value pairs for headers to be used in uploading output files. These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when uploading blobs: https://docs.microsoft.com/rest/api/storageservices/put-blob#request-headers-all-blob-types.") uploadHeaders?: HttpHeader[]; } @@ -1557,7 +1645,7 @@ model BatchJobPreparationTask { @doc("A string that uniquely identifies the Job Preparation Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobpreparation'. No other Task in the Job can have the same ID as the Job Preparation Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobPreparationTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict).") id?: string; - @doc("The command line of the Job Preparation Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).") + @doc("The command line of the Job Preparation Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables).") commandLine: string; @doc("The settings for the container under which the Job Preparation Task runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files.") @@ -1604,7 +1692,7 @@ model BatchJobReleaseTask { @doc("A string that uniquely identifies the Job Release Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobrelease'. No other Task in the Job can have the same ID as the Job Release Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobReleaseTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict).") id?: string; - @doc("The command line of the Job Release Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).") + @doc("The command line of the Job Release Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables).") commandLine: string; @doc("The settings for the container under which the Job Release Task runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files.") @@ -1661,7 +1749,7 @@ model BatchPoolSpecification { @doc("The size of the virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).") vmSize: string; - @doc("The virtual machine configuration for the Pool. This property must be specified if the Pool needs to be created with Azure IaaS VMs. If it is not specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).") + @doc("The virtual machine configuration for the Pool. This property must be specified.") virtualMachineConfiguration?: VirtualMachineConfiguration; @doc("The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.") @@ -1735,7 +1823,7 @@ model VirtualMachineConfiguration { @doc("Windows operating system settings on the virtual machine. This property must not be specified if the imageReference property specifies a Linux OS Image.") windowsConfiguration?: WindowsConfiguration; - @doc("The configuration for data disks attached to the Compute Nodes in the Pool. This property must be specified if the Compute Nodes in the Pool need to have empty data disks attached to them. This cannot be updated. Each Compute Node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine.") + @doc("The configuration for data disks attached to the Compute Nodes in the Pool. This property must be specified if the Compute Nodes in the Pool need to have empty data disks attached to them. This cannot be updated. Each Compute Node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine.") dataDisks?: DataDisk[]; @doc(""" @@ -1819,7 +1907,7 @@ model ContainerConfiguration { Azure Compute Gallery Image. """) model DiskEncryptionConfiguration { - @doc("The list of disk targets Batch Service will encrypt on the compute node. If omitted, no disks on the compute nodes in the pool will be encrypted. On Linux pool, only \"TemporaryDisk\" is supported; on Windows pool, \"OsDisk\" and \"TemporaryDisk\" must be specified.") + @doc("The list of disk targets Batch Service will encrypt on the compute node. The list of disk targets Batch Service will encrypt on the compute node.") targets?: DiskEncryptionTarget[]; } @@ -1888,7 +1976,7 @@ model OSDisk { compute node (VM). """) model DiffDiskSettings { - @doc("Specifies the ephemeral disk placement for operating system disk for all VMs in the pool. This property can be used by user in the request to choose the location e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.") + @doc("Specifies the ephemeral disk placement for operating system disk for all VMs in the pool. This property can be used by user in the request to choose the location e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.") placement?: DiffDiskPlacement; } @@ -1901,16 +1989,16 @@ model BatchTaskSchedulingPolicy { #suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase" @doc("The network configuration for a Pool.") model NetworkConfiguration { - @doc("The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. For Pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For Pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.") + @doc("The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. Only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. Enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.") subnetId?: string; @doc("The scope of dynamic vnet assignment.") dynamicVNetAssignmentScope?: DynamicVNetAssignmentScope; - @doc("The configuration for endpoints on Compute Nodes in the Batch Pool. Pool endpoint configuration is only supported on Pools with the virtualMachineConfiguration property.") + @doc("The configuration for endpoints on Compute Nodes in the Batch Pool.") endpointConfiguration?: BatchPoolEndpointConfiguration; - @doc("The Public IPAddress configuration for Compute Nodes in the Batch Pool. Public IP configuration property is only supported on Pools with the virtualMachineConfiguration property.") + @doc("The Public IPAddress configuration for Compute Nodes in the Batch Pool.") @clientName("publicIpAddressConfiguration") publicIPAddressConfiguration?: PublicIpAddressConfiguration; @@ -1993,7 +2081,7 @@ model PublicIpAddressConfiguration { block Batch from being able to re-run the StartTask. """) model BatchStartTask { - @doc("The command line of the StartTask. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).") + @doc("The command line of the StartTask. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables).") commandLine: string; @doc("The settings for the container under which the StartTask runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files.") @@ -2052,14 +2140,17 @@ model LinuxUserConfiguration { @doc("Properties used to create a user Account on a Windows Compute Node.") model WindowsUserConfiguration { - @doc("The login mode for the user. The default value for VirtualMachineConfiguration Pools is 'batch'.") + @doc("The login mode for the user. The default is 'batch'.") loginMode?: LoginMode; } @doc("The managed disk parameters.") model ManagedDisk { @doc("The storage account type for managed disk.") - storageAccountType: StorageAccountType; + storageAccountType?: StorageAccountType; + + @doc("Specifies the security profile settings for the managed disk.") + securityProfile?: VMDiskSecurityProfile; } @doc(""" @@ -2346,7 +2437,7 @@ model BatchJob { @visibility("read") executionInfo?: BatchJobExecutionInfo; - @doc("Resource usage statistics for the entire lifetime of the Job. This property is populated only if the CloudJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") + @doc("Resource usage statistics for the entire lifetime of the Job. This property is populated only if the BatchJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") @visibility("read") stats?: BatchJobStatistics; } @@ -2424,6 +2515,9 @@ model BatchJobUpdateContent { @doc("A list of name-value pairs associated with the Job as metadata. If omitted, the existing Job metadata is left unchanged.") metadata?: MetadataItem[]; + + @doc("The network configuration for the Job.") + networkConfiguration?: BatchJobNetworkConfiguration; } @doc("Contains information about the execution of a Job in the Azure Batch service.") @@ -2706,7 +2800,7 @@ model BatchPool { @visibility("read") allocationStateTransitionTime?: utcDateTime; - @doc("The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).") + @doc("The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available VM sizes, see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).") @visibility("read") vmSize?: string; @@ -2789,7 +2883,7 @@ model BatchPool { @visibility("read") metadata?: MetadataItem[]; - @doc("Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if the CloudPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") + @doc("Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if the BatchPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") @visibility("read") stats?: BatchPoolStatistics; @@ -2898,6 +2992,15 @@ model BatchPoolReplaceContent { @doc("Parameters for updating an Azure Batch Pool.") model BatchPoolUpdateContent { + @doc("The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. This field can be updated only when the pool is empty.") + displayName?: string; + + @doc("The size of virtual machines in the Pool. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

This field can be updated only when the pool is empty.") + vmSize?: string; + + @doc("Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false.

This field can be updated only when the pool is empty.") + enableInterNodeCommunication?: boolean; + @doc("A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is left unchanged.") startTask?: BatchStartTask; @@ -2907,8 +3010,32 @@ model BatchPoolUpdateContent { @doc("A list of name-value pairs associated with the Pool as metadata. If this element is present, it replaces any existing metadata configured on the Pool. If you specify an empty collection, any metadata is removed from the Pool. If omitted, any existing metadata is left unchanged.") metadata?: MetadataItem[]; + @doc("The virtual machine configuration for the Pool. This property must be specified.

This field can be updated only when the pool is empty.") + virtualMachineConfiguration?: VirtualMachineConfiguration; + @doc("The desired node communication mode for the pool. If this element is present, it replaces the existing targetNodeCommunicationMode configured on the Pool. If omitted, any existing metadata is left unchanged.") targetNodeCommunicationMode?: BatchNodeCommunicationMode; + + @doc("The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.

This field can be updated only when the pool is empty.") + taskSlotsPerNode?: int32; + + @doc("How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.

This field can be updated only when the pool is empty.") + taskSchedulingPolicy?: BatchTaskSchedulingPolicy; + + @doc("The network configuration for the Pool. This field can be updated only when the pool is empty.") + networkConfiguration?: NetworkConfiguration; + + @doc("The user-specified tags associated with the pool. The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.

This field can be updated only when the pool is empty.") + resourceTags?: Record; + + @doc("The list of user Accounts to be created on each Compute Node in the Pool. This field can be updated only when the pool is empty.") + userAccounts?: UserAccount[]; + + @doc("Mount storage using specified file system for the entire lifetime of the pool. Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system.

This field can be updated only when the pool is empty.") + mountConfiguration?: MountConfiguration[]; + + @doc("The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling.

This field can be updated only when the pool is empty.") + upgradePolicy?: UpgradePolicy; } @doc("An error that occurred when resizing a Pool.") @@ -2985,7 +3112,7 @@ model BatchPoolListResult { @doc("Parameters for enabling automatic scaling on an Azure Batch Pool.") model BatchPoolEnableAutoScaleContent { - @doc("The formula for the desired number of Compute Nodes in the Pool. The formula is checked for validity before it is applied to the Pool. If the formula is not valid, the Batch service rejects the request with detailed error information. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).") + @doc("The formula for the desired number of Compute Nodes in the Pool. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued.") autoScaleFormula?: string; @doc("The time interval at which to automatically adjust the Pool size according to the autoscale formula. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued.") @@ -2994,7 +3121,7 @@ model BatchPoolEnableAutoScaleContent { @doc("Parameters for evaluating an automatic scaling formula on an Azure Batch Pool.") model BatchPoolEvaluateAutoScaleContent { - @doc("The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).") + @doc("The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling).") autoScaleFormula: string; } @@ -3025,6 +3152,12 @@ model BatchNodeRemoveContent { nodeDeallocationOption?: BatchNodeDeallocationOption; } +@doc("Options for deallocating a Compute Node.") +model BatchNodeDeallocateContent { + @doc("When to deallocate the Compute Node and what to do with currently running Tasks. The default value is requeue.") + nodeDeallocateOption?: BatchNodeDeallocateOption; +} + @doc(""" Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an @@ -3081,7 +3214,7 @@ model BatchTask { @visibility("read") previousStateTransitionTime?: utcDateTime; - @doc("The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).") + @doc("The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables).") @visibility("read") commandLine?: string; @@ -3237,6 +3370,13 @@ model ExitOptions { dependencyAction?: DependencyAction; } +#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase" +@doc("Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and required when using Confidential VMs.") +model VMDiskSecurityProfile { + @doc("Specifies the EncryptionType of the managed disk. It is set to VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob. **Note**: It can be set for only Confidential VMs and is required when using Confidential VMs.") + securityEncryptionType?: SecurityEncryptionTypes; +} + @doc(""" A range of exit codes and how the Batch service should respond to exit codes within that range. @@ -3504,7 +3644,7 @@ model UpgradePolicy { @clientName("automaticOsUpgradePolicy") automaticOSUpgradePolicy?: AutomaticOsUpgradePolicy; - @doc("The configuration parameters used while performing a rolling upgrade. This property is only supported on Pools with the virtualMachineConfiguration property.") + @doc("The configuration parameters used while performing a rolling upgrade.") rollingUpgradePolicy?: RollingUpgradePolicy; } @@ -3514,7 +3654,7 @@ model AutomaticOsUpgradePolicy { disableAutomaticRollback?: boolean; #suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase" - @doc("Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.

If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchservice/pool/add?tabs=HTTP#windowsconfiguration) cannot be set to true.") + @doc("Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.

If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/rest/api/batchservice/pool/add?tabs=HTTP#windowsconfiguration) cannot be set to true.") @clientName("enableAutomaticOsUpgrade") enableAutomaticOSUpgrade?: boolean; @@ -3561,7 +3701,7 @@ model BatchNodeUserCreateContent { expiryTime?: utcDateTime; @secret - @doc("The password of the Account. The password is required for Windows Compute Nodes (those created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property.") + @doc("The password of the Account. The password is required for Windows Compute Nodes. For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property.") password?: string; @doc("The SSH public key that can be used for remote login to the Compute Node. The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).") @@ -3571,7 +3711,7 @@ model BatchNodeUserCreateContent { @doc("Parameters for updating a user account for RDP or SSH access on an Azure Batch Compute Node.") model BatchNodeUserUpdateContent { @secret - @doc("The password of the Account. The password is required for Windows Compute Nodes (those created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is removed.") + @doc("The password of the Account. The password is required for Windows Compute Nodes. For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is removed.") password?: string; @doc("The time at which the Account should expire. If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day.") diff --git a/specification/batch/Azure.Batch/routes.tsp b/specification/batch/Azure.Batch/routes.tsp index 181b81fd6a8b..2508b0f4fc50 100644 --- a/specification/batch/Azure.Batch/routes.tsp +++ b/specification/batch/Azure.Batch/routes.tsp @@ -93,7 +93,7 @@ interface Pools { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. """) @query @clientName("filter", "!autorest") @@ -119,15 +119,15 @@ interface Pools { {} >; - @summary("Lists all of the Pools in the specified Account.") - @doc("Lists all of the Pools in the specified Account.") + @summary("Lists all of the Pools which be mounted.") + @doc("Lists all of the Pools which be mounted.") @route("/pools") @clientName("listPoolsInternal", "java") listPools is ListOperation< { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. """) @query @clientName("filter", "!autorest") @@ -350,7 +350,7 @@ interface Pools { { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. """) @query @clientName("filter", "!autorest") @@ -370,7 +370,7 @@ interface Pools { { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. """) @query @clientName("filter", "!autorest") @@ -402,6 +402,10 @@ interface Jobs { @doc("The ID of the Job to delete.") @path jobId: string; + + @doc("If true, the server will delete the Job even if the corresponding nodes have not fully processed the deletion. The default value is false.") + @query + force?: boolean; }, DeleteResponseHeaders >; @@ -539,6 +543,10 @@ interface Jobs { @doc("The options to use for terminating the Job.") @bodyRoot parameters?: BatchJobTerminateContent; + + @doc("If true, the server will terminate the Job even if the corresponding nodes have not fully processed the termination. The default value is false.") + @query + force?: boolean; }, AcceptedProcessingResponseHeaders >; @@ -574,7 +582,7 @@ interface Jobs { { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. """) @query @clientName("filter", "!autorest") @@ -605,7 +613,7 @@ interface Jobs { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. """) @query @clientName("filter", "!autorest") @@ -646,7 +654,7 @@ interface Jobs { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. """) @query @clientName("filter", "!autorest") @@ -715,6 +723,10 @@ interface JobSchedules { @doc("The ID of the Job Schedule to delete.") @path jobScheduleId: string; + + @doc("If true, the server will delete the JobSchedule even if the corresponding nodes have not fully processed the deletion. The default value is false.") + @query + force?: boolean; }, DeleteResponseHeaders >; @@ -822,6 +834,10 @@ interface JobSchedules { @doc("The ID of the Job Schedule to terminates.") @path jobScheduleId: string; + + @doc("If true, the server will terminate the JobSchedule even if the corresponding nodes have not fully processed the termination. The default value is false.") + @query + force?: boolean; }, AcceptedProcessingResponseHeaders >; @@ -847,7 +863,7 @@ interface JobSchedules { { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. """) @query @clientName("filter", "!autorest") @@ -909,7 +925,7 @@ interface Tasks { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. """) @query @clientName("filter", "!autorest") @@ -1184,7 +1200,7 @@ interface Tasks { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. """) @query @clientName("filter", "!autorest") @@ -1333,6 +1349,69 @@ interface Nodes { AcceptedProcessingResponseHeaders >; + @summary("Starts the specified Compute Node.") + @doc("You can start a Compute Node only if it has been deallocated.") + @route("/pools/{poolId}/nodes/{nodeId}/start") + @clientName("startNodeInternal", "java") + startNode is PostOperation< + { + @doc("The ID of the Pool that contains the Compute Node.") + @path + poolId: string; + + @doc("The ID of the Compute Node that you want to restart.") + @path + nodeId: string; + }, + AcceptedProcessingResponseHeaders + >; + + @summary("Deallocates the specified Compute Node.") + @doc("You can deallocate a Compute Node only if it is in an idle or running state.") + @route("/pools/{poolId}/nodes/{nodeId}/deallocate") + @clientName("deallocateNodeInternal", "java") + deallocateNode is PostOperation< + MinimalMetadata & { + @doc("The ID of the Pool that contains the Compute Node.") + @path + poolId: string; + + @doc("The ID of the Compute Node that you want to restart.") + @path + nodeId: string; + + @doc("The options to use for deallocating the Compute Node.") + @bodyRoot + parameters?: BatchNodeDeallocateContent; + }, + AcceptedProcessingResponseHeaders + >; + + @summary("Reinstalls the operating system on the specified Compute Node.") + @doc(""" + You can reinstall the operating system on a Compute Node only if it is in an + idle or running state. This API can be invoked only on Pools created with the + cloud service configuration property. + """) + @route("/pools/{poolId}/nodes/{nodeId}/reimage") + @clientName("reimageNodeInternal", "java") + reimageNode is PostOperation< + MinimalMetadata & { + @doc("The ID of the Pool that contains the Compute Node.") + @path + poolId: string; + + @doc("The ID of the Compute Node that you want to restart.") + @path + nodeId: string; + + @doc("The options to use for reimaging the Compute Node.") + @body + parameters?: BatchNodeReimageContent; + }, + AcceptedProcessingResponseHeaders + >; + @summary("Disables Task scheduling on the specified Compute Node.") @doc(""" You can disable Task scheduling on a Compute Node only if its current @@ -1379,9 +1458,8 @@ interface Nodes { @summary("Gets the settings required for remote login to a Compute Node.") @doc(""" - Before you can remotely login to a Compute Node using the remote login - settings, you must create a user Account on the Compute Node. This API can be - invoked only on Pools created with the virtual machine configuration property. + Before you can remotely login to a Compute Node using the remote login settings, + you must create a user Account on the Compute Node. """) @route("/pools/{poolId}/nodes/{nodeId}/remoteloginsettings") @clientName("getNodeRemoteLoginSettingsInternal", "java") @@ -1442,7 +1520,7 @@ interface Nodes { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. """) @query @clientName("filter", "!autorest") @@ -1577,7 +1655,7 @@ interface Nodes { @doc(""" An OData $filter clause. For more information on constructing this filter, see - https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. """) @query @clientName("filter", "!autorest") diff --git a/specification/batch/Azure.Batch/tspconfig.yaml b/specification/batch/Azure.Batch/tspconfig.yaml index 1c66dcb9fc9e..96f4695efad8 100644 --- a/specification/batch/Azure.Batch/tspconfig.yaml +++ b/specification/batch/Azure.Batch/tspconfig.yaml @@ -10,9 +10,9 @@ options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "./data-plane" emitter-output-dir: "{project-root}/.." - output-file: "{azure-resource-provider-folder}/Azure.Batch/preview/{version}/BatchService.json" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}//BatchService.json" "@azure-tools/typespec-csharp": - package-dir: "Azure.Batch" + package-dir: "Azure.Compute.Batch" clear-output-folder: true model-namespace: false head-as-boolean: false diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/BatchService.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/BatchService.json new file mode 100644 index 000000000000..ec041a5d4142 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/BatchService.json @@ -0,0 +1,16615 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Batch", + "version": "2024-07-01.20.0", + "description": "Azure Batch provides Cloud-scale job scheduling and compute management.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "x-ms-parameterized-host": { + "hostTemplate": "{endpoint}", + "useSchemePrefix": false, + "parameters": [ + { + "name": "endpoint", + "in": "path", + "description": "Batch account endpoint (for example: https://batchaccount.eastus2.batch.azure.com).", + "required": true, + "type": "string", + "format": "uri", + "x-ms-skip-url-encoding": true + } + ] + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "OAuth2Auth": [ + "https://batch.core.windows.net//.default" + ] + } + ], + "securityDefinitions": { + "OAuth2Auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", + "scopes": { + "https://batch.core.windows.net//.default": "" + } + } + }, + "tags": [ + { + "name": "Applications" + }, + { + "name": "Pools" + }, + { + "name": "Jobs" + }, + { + "name": "Job Schedules" + }, + { + "name": "Tasks" + }, + { + "name": "Nodes" + } + ], + "paths": { + "/applications": { + "get": { + "operationId": "Applications_ListApplications", + "tags": [ + "Applications" + ], + "summary": "Lists all of the applications available in the specified Account.", + "description": "This operation returns only Applications and versions that are available for\nuse on Compute Nodes; that is, that can be used in an Package reference. For\nadministrator information about applications and versions that are not yet\navailable to Compute Nodes, use the Azure portal or the Azure Resource Manager\nAPI.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchApplicationListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "List applications": { + "$ref": "./examples/Applications_ListApplications.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/applications/{applicationId}": { + "get": { + "operationId": "Applications_GetApplication", + "tags": [ + "Applications" + ], + "summary": "Gets information about the specified Application.", + "description": "This operation returns only Applications and versions that are available for\nuse on Compute Nodes; that is, that can be used in an Package reference. For\nadministrator information about Applications and versions that are not yet\navailable to Compute Nodes, use the Azure portal or the Azure Resource Manager\nAPI.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "applicationId", + "in": "path", + "description": "The ID of the Application", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchApplication" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Get applications": { + "$ref": "./examples/Applications_GetApplication.json" + } + } + } + }, + "/jobs": { + "get": { + "operationId": "Jobs_ListJobs", + "tags": [ + "Jobs" + ], + "summary": "Lists all of the Jobs in the specified Account.", + "description": "Lists all of the Jobs in the specified Account.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs.", + "required": false, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchJobListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job list": { + "$ref": "./examples/Jobs_ListJobs.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + }, + "post": { + "operationId": "Jobs_CreateJob", + "tags": [ + "Jobs" + ], + "summary": "Creates a Job to the specified Account.", + "description": "The Batch service supports two ways to control the work done as part of a Job.\nIn the first approach, the user specifies a Job Manager Task. The Batch service\nlaunches this Task when it is ready to start the Job. The Job Manager Task\ncontrols all other Tasks that run under this Job, by using the Task APIs. In\nthe second approach, the user directly controls the execution of Tasks under an\nactive Job, by using the Task APIs. Also note: when naming Jobs, avoid\nincluding sensitive information such as user names or secret project names.\nThis information may appear in telemetry logs accessible to Microsoft Support\nengineers.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "job", + "in": "body", + "description": "The Job to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchJobCreateContent" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Creates a basic job": { + "$ref": "./examples/Jobs_CreateJob_Basic.json" + }, + "Creates a complex job": { + "$ref": "./examples/Jobs_CreateJob_Complex.json" + } + } + } + }, + "/jobs/{jobId}": { + "get": { + "operationId": "Jobs_GetJob", + "tags": [ + "Jobs" + ], + "summary": "Gets information about the specified Job.", + "description": "Gets information about the specified Job.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job.", + "required": true, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchJob" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job get": { + "$ref": "./examples/Jobs_GetJob.json" + } + } + }, + "put": { + "operationId": "Jobs_ReplaceJob", + "tags": [ + "Jobs" + ], + "summary": "Updates the properties of the specified Job.", + "description": "This fully replaces all the updatable properties of the Job. For example, if\nthe Job has constraints associated with it and if constraints is not specified\nwith this request, then the Batch service will remove the existing constraints.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job whose properties you want to update.", + "required": true, + "type": "string" + }, + { + "name": "job", + "in": "body", + "description": "A job with updated properties", + "required": true, + "schema": { + "$ref": "#/definitions/BatchJob" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job patch": { + "$ref": "./examples/Jobs_ReplaceJob.json" + } + } + }, + "patch": { + "operationId": "Jobs_UpdateJob", + "tags": [ + "Jobs" + ], + "summary": "Updates the properties of the specified Job.", + "description": "This replaces only the Job properties specified in the request. For example, if\nthe Job has constraints, and a request does not specify the constraints\nelement, then the Job keeps the existing constraints.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job whose properties you want to update.", + "required": true, + "type": "string" + }, + { + "name": "job", + "in": "body", + "description": "The options to use for updating the Job.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchJobUpdateContent" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job update": { + "$ref": "./examples/Jobs_UpdateJob.json" + } + } + }, + "delete": { + "operationId": "Jobs_DeleteJob", + "tags": [ + "Jobs" + ], + "summary": "Deletes a Job.", + "description": "Deleting a Job also deletes all Tasks that are part of that Job, and all Job\nstatistics. This also overrides the retention period for Task data; that is, if\nthe Job contains Tasks which are still retained on Compute Nodes, the Batch\nservices deletes those Tasks' working directories and all their contents. When\na Delete Job request is received, the Batch service sets the Job to the\ndeleting state. All update operations on a Job that is in deleting state will\nfail with status code 409 (Conflict), with additional information indicating\nthat the Job is being deleted.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job to delete.", + "required": true, + "type": "string" + }, + { + "name": "force", + "in": "query", + "description": "If true, the server will delete the Job even if the corresponding nodes have not fully processed the deletion. The default value is false.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Delete Job": { + "$ref": "./examples/Jobs_DeleteJob.json" + } + } + } + }, + "/jobs/{jobId}/addtaskcollection": { + "post": { + "operationId": "Tasks_CreateTaskCollection", + "tags": [ + "Tasks" + ], + "summary": "Adds a collection of Tasks to the specified Job.", + "description": "Note that each Task must have a unique ID. The Batch service may not return the\nresults for each Task in the same order the Tasks were submitted in this\nrequest. If the server times out or the connection is closed during the\nrequest, the request may have been partially or fully processed, or not at all.\nIn such cases, the user should re-issue the request. Note that it is up to the\nuser to correctly handle failures when re-issuing a request. For example, you\nshould use the same Task IDs during a retry so that if the prior operation\nsucceeded, the retry will not create extra Tasks unexpectedly. If the response\ncontains any Tasks which failed to add, a client can retry the request. In a\nretry, it is most efficient to resubmit only Tasks that failed to add, and to\nomit Tasks that were successfully added on the first attempt. The maximum\nlifetime of a Task from addition to completion is 180 days. If a Task has not\ncompleted within 180 days of being added it will be terminated by the Batch\nservice and left in whatever state it was in at that time.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job to which the Task collection is to be added.", + "required": true, + "type": "string" + }, + { + "name": "taskCollection", + "in": "body", + "description": "The Tasks to be added.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchTaskGroup" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchTaskAddCollectionResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Creates a basic collection of tasks": { + "$ref": "./examples/Tasks_CreateTaskCollection_Basic.json" + }, + "Creates a complex collection of tasks": { + "$ref": "./examples/Tasks_CreateTaskCollection_Complex.json" + } + } + } + }, + "/jobs/{jobId}/disable": { + "post": { + "operationId": "Jobs_DisableJob", + "tags": [ + "Jobs" + ], + "summary": "Disables the specified Job, preventing new Tasks from running.", + "description": "The Batch Service immediately moves the Job to the disabling state. Batch then\nuses the disableTasks parameter to determine what to do with the currently\nrunning Tasks of the Job. The Job remains in the disabling state until the\ndisable operation is completed and all Tasks have been dealt with according to\nthe disableTasks option; the Job then moves to the disabled state. No new Tasks\nare started under the Job until it moves back to active state. If you try to\ndisable a Job that is in any state other than active, disabling, or disabled,\nthe request fails with status code 409.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job to disable.", + "required": true, + "type": "string" + }, + { + "name": "content", + "in": "body", + "description": "The options to use for disabling the Job.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchJobDisableContent" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job disable": { + "$ref": "./examples/Jobs_DisableJob.json" + } + } + } + }, + "/jobs/{jobId}/enable": { + "post": { + "operationId": "Jobs_EnableJob", + "tags": [ + "Jobs" + ], + "summary": "Enables the specified Job, allowing new Tasks to run.", + "description": "When you call this API, the Batch service sets a disabled Job to the enabling\nstate. After the this operation is completed, the Job moves to the active\nstate, and scheduling of new Tasks under the Job resumes. The Batch service\ndoes not allow a Task to remain in the active state for more than 180 days.\nTherefore, if you enable a Job containing active Tasks which were added more\nthan 180 days ago, those Tasks will not run.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job to enable.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job enable": { + "$ref": "./examples/Jobs_EnableJob.json" + } + } + } + }, + "/jobs/{jobId}/jobpreparationandreleasetaskstatus": { + "get": { + "operationId": "Jobs_ListJobPreparationAndReleaseTaskStatus", + "tags": [ + "Jobs" + ], + "summary": "Lists the execution status of the Job Preparation and Job Release Task for the\nspecified Job across the Compute Nodes where the Job has run.", + "description": "This API returns the Job Preparation and Job Release Task status on all Compute\nNodes that have run the Job Preparation or Job Release Task. This includes\nCompute Nodes which have since been removed from the Pool. If this API is\ninvoked on a Job which has no Job Preparation or Job Release Task, the Batch\nservice returns HTTP status code 409 (Conflict) with an error code of\nJobPreparationTaskNotSpecified.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job.", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status.", + "required": false, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchJobPreparationAndReleaseTaskStatusListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job list preparation and release task status": { + "$ref": "./examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/jobs/{jobId}/taskcounts": { + "get": { + "operationId": "Jobs_GetJobTaskCounts", + "tags": [ + "Jobs" + ], + "summary": "Gets the Task counts for the specified Job.", + "description": "Task counts provide a count of the Tasks by active, running or completed Task\nstate, and a count of Tasks which succeeded or failed. Tasks in the preparing\nstate are counted as running. Note that the numbers returned may not always be\nup to date. If you need exact task counts, use a list query.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchTaskCountsResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job get task counts": { + "$ref": "./examples/Jobs_GetJobTaskCounts.json" + } + } + } + }, + "/jobs/{jobId}/tasks": { + "get": { + "operationId": "Tasks_ListTasks", + "tags": [ + "Tasks" + ], + "summary": "Lists all of the Tasks that are associated with the specified Job.", + "description": "For multi-instance Tasks, information such as affinityId, executionInfo and\nnodeInfo refer to the primary Task. Use the list subtasks API to retrieve\ninformation about subtasks.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job.", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks.", + "required": false, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchTaskListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Task list": { + "$ref": "./examples/Tasks_ListTasks.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + }, + "post": { + "operationId": "Tasks_CreateTask", + "tags": [ + "Tasks" + ], + "summary": "Creates a Task to the specified Job.", + "description": "The maximum lifetime of a Task from addition to completion is 180 days. If a\nTask has not completed within 180 days of being added it will be terminated by\nthe Batch service and left in whatever state it was in at that time.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job to which the Task is to be created.", + "required": true, + "type": "string" + }, + { + "name": "task", + "in": "body", + "description": "The Task to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchTaskCreateContent" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Creates a basic task": { + "$ref": "./examples/Tasks_CreateTask_Basic.json" + }, + "Creates a task with container settings": { + "$ref": "./examples/Tasks_CreateTask_ContainerSettings.json" + }, + "Creates a task with container settings with data isolation": { + "$ref": "./examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json" + }, + "Creates a task with container settings with duplicate source": { + "$ref": "./examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json" + }, + "Creates a task with exit conditions": { + "$ref": "./examples/Tasks_CreateTask_ExitConditions.json" + }, + "Creates a task with extra slot requirement": { + "$ref": "./examples/Tasks_CreateTask_RequiredSlots.json" + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}": { + "get": { + "operationId": "Tasks_GetTask", + "tags": [ + "Tasks" + ], + "summary": "Gets information about the specified Task.", + "description": "For multi-instance Tasks, information such as affinityId, executionInfo and\nnodeInfo refer to the primary Task. Use the list subtasks API to retrieve\ninformation about subtasks.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job that contains the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task to get information about.", + "required": true, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchTask" + }, + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Task get": { + "$ref": "./examples/Tasks_GetTask.json" + } + } + }, + "put": { + "operationId": "Tasks_ReplaceTask", + "tags": [ + "Tasks" + ], + "description": "Updates the properties of the specified Task.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job containing the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task to update.", + "required": true, + "type": "string" + }, + { + "name": "task", + "in": "body", + "description": "The Task to update.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchTask" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Task update": { + "$ref": "./examples/Tasks_ReplaceTask.json" + } + } + }, + "delete": { + "operationId": "Tasks_DeleteTask", + "tags": [ + "Tasks" + ], + "summary": "Deletes a Task from the specified Job.", + "description": "When a Task is deleted, all of the files in its directory on the Compute Node\nwhere it ran are also deleted (regardless of the retention time). For\nmulti-instance Tasks, the delete Task operation applies synchronously to the\nprimary task; subtasks and their files are then deleted asynchronously in the\nbackground.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job from which to delete the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task to delete.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Task delete": { + "$ref": "./examples/Tasks_DeleteTask.json" + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/files": { + "get": { + "operationId": "Tasks_ListTaskFiles", + "tags": [ + "Tasks" + ], + "summary": "Lists the files in a Task's directory on its Compute Node.", + "description": "Lists the files in a Task's directory on its Compute Node.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job that contains the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task whose files you want to list.", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files.", + "required": false, + "type": "string" + }, + { + "name": "recursive", + "in": "query", + "description": "Whether to list children of the Task directory. This parameter can be used in\ncombination with the filter parameter to list specific type of files.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchNodeFileListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "File list from task": { + "$ref": "./examples/Tasks_ListTaskFiles.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/files/{filePath}": { + "get": { + "operationId": "Tasks_GetTaskFile", + "tags": [ + "Tasks" + ], + "description": "Returns the content of the specified Task file.", + "produces": [ + "application/octet-stream", + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job that contains the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task whose file you want to retrieve.", + "required": true, + "type": "string" + }, + { + "name": "filePath", + "in": "path", + "description": "The path to the Task file that you want to get the content of.", + "required": true, + "type": "string" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "ocp-range", + "in": "header", + "description": "The byte range to be retrieved. The default is to retrieve the entire file. The\nformat is bytes=startRange-endRange.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "type": "file" + }, + "headers": { + "Content-Length": { + "type": "string", + "description": "The length of the file." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "ocp-batch-file-isdirectory": { + "type": "boolean", + "description": "Whether the object represents a directory." + }, + "ocp-batch-file-mode": { + "type": "string", + "description": "The file mode attribute in octal format." + }, + "ocp-batch-file-url": { + "type": "string", + "description": "The URL of the file." + }, + "ocp-creation-time": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The file creation time." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Get File From Task": { + "$ref": "./examples/Tasks_GetTaskFile.json" + } + } + }, + "delete": { + "operationId": "Tasks_DeleteTaskFile", + "tags": [ + "Tasks" + ], + "summary": "Deletes the specified Task file from the Compute Node where the Task ran.", + "description": "Deletes the specified Task file from the Compute Node where the Task ran.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job that contains the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task whose file you want to retrieve.", + "required": true, + "type": "string" + }, + { + "name": "filePath", + "in": "path", + "description": "The path to the Task file that you want to get the content of.", + "required": true, + "type": "string" + }, + { + "name": "recursive", + "in": "query", + "description": "Whether to delete children of a directory. If the filePath parameter represents\na directory instead of a file, you can set recursive to true to delete the\ndirectory and all of the files and subdirectories in it. If recursive is false\nthen the directory must be empty or deletion will fail.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "File delete from task": { + "$ref": "./examples/Tasks_DeleteTaskFile.json" + } + } + }, + "head": { + "operationId": "Tasks_GetTaskFileProperties", + "tags": [ + "Tasks" + ], + "description": "Gets the properties of the specified Task file.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job that contains the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task whose file you want to retrieve.", + "required": true, + "type": "string" + }, + { + "name": "filePath", + "in": "path", + "description": "The path to the Task file that you want to get the content of.", + "required": true, + "type": "string" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "Content-Length": { + "type": "string", + "description": "The length of the file." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "ocp-batch-file-isdirectory": { + "type": "boolean", + "description": "Whether the object represents a directory." + }, + "ocp-batch-file-mode": { + "type": "string", + "description": "The file mode attribute in octal format." + }, + "ocp-batch-file-url": { + "type": "string", + "description": "The URL of the file." + }, + "ocp-creation-time": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The file creation time." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "File get properties from task": { + "$ref": "./examples/Tasks_GetTaskFileProperties.json" + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/reactivate": { + "post": { + "operationId": "Tasks_ReactivateTask", + "tags": [ + "Tasks" + ], + "summary": "Reactivates a Task, allowing it to run again even if its retry count has been\nexhausted.", + "description": "Reactivation makes a Task eligible to be retried again up to its maximum retry\ncount. The Task's state is changed to active. As the Task is no longer in the\ncompleted state, any previous exit code or failure information is no longer\navailable after reactivation. Each time a Task is reactivated, its retry count\nis reset to 0. Reactivation will fail for Tasks that are not completed or that\npreviously completed successfully (with an exit code of 0). Additionally, it\nwill fail if the Job has completed (or is terminating or deleting).", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job containing the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task to reactivate.", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. ", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Task reactivate": { + "$ref": "./examples/Tasks_ReactivateTask.json" + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/subtasksinfo": { + "get": { + "operationId": "Tasks_ListSubTasks", + "tags": [ + "Tasks" + ], + "summary": "Lists all of the subtasks that are associated with the specified multi-instance\nTask.", + "description": "If the Task is not a multi-instance Task then this returns an empty collection.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task.", + "required": true, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchTaskListSubtasksResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Task list subtasks": { + "$ref": "./examples/Tasks_ListSubTasks.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/terminate": { + "post": { + "operationId": "Tasks_TerminateTask", + "tags": [ + "Tasks" + ], + "summary": "Terminates the specified Task.", + "description": "When the Task has been terminated, it moves to the completed state. For\nmulti-instance Tasks, the terminate Task operation applies synchronously to the\nprimary task; subtasks are then terminated asynchronously in the background.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job containing the Task.", + "required": true, + "type": "string" + }, + { + "name": "taskId", + "in": "path", + "description": "The ID of the Task to terminate.", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. ", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Task terminate": { + "$ref": "./examples/Tasks_TerminateTask.json" + } + } + } + }, + "/jobs/{jobId}/terminate": { + "post": { + "operationId": "Jobs_TerminateJob", + "tags": [ + "Jobs" + ], + "summary": "Terminates the specified Job, marking it as completed.", + "description": "When a Terminate Job request is received, the Batch service sets the Job to the\nterminating state. The Batch service then terminates any running Tasks\nassociated with the Job and runs any required Job release Tasks. Then the Job\nmoves into the completed state. If there are any Tasks in the Job in the active\nstate, they will remain in the active state. Once a Job is terminated, new\nTasks cannot be added and any remaining active Tasks will not be scheduled.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobId", + "in": "path", + "description": "The ID of the Job to terminate.", + "required": true, + "type": "string" + }, + { + "name": "force", + "in": "query", + "description": "If true, the server will terminate the Job even if the corresponding nodes have not fully processed the termination. The default value is false.", + "required": false, + "type": "boolean" + }, + { + "name": "parameters", + "in": "body", + "description": "The options to use for terminating the Job.", + "required": false, + "schema": { + "$ref": "#/definitions/BatchJobTerminateContent" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Job terminate": { + "$ref": "./examples/Jobs_TerminateJob.json" + } + } + } + }, + "/jobschedules": { + "get": { + "operationId": "JobSchedules_ListJobSchedules", + "tags": [ + "Job Schedules" + ], + "summary": "Lists all of the Job Schedules in the specified Account.", + "description": "Lists all of the Job Schedules in the specified Account.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules.", + "required": false, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchJobScheduleListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "JobSchedule list": { + "$ref": "./examples/JobSchedules_ListJobSchedules.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + }, + "post": { + "operationId": "JobSchedules_CreateJobSchedule", + "tags": [ + "Job Schedules" + ], + "summary": "Creates a Job Schedule to the specified Account.", + "description": "Creates a Job Schedule to the specified Account.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "jobSchedule", + "in": "body", + "description": "The Job Schedule to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchJobScheduleCreateContent" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Creates a basic JobSchedule": { + "$ref": "./examples/JobSchedules_CreateJobSchedule_Basic.json" + }, + "Creates a complex JobScheduleAdd": { + "$ref": "./examples/JobSchedules_CreateJobSchedule_Complex.json" + } + } + } + }, + "/jobschedules/{jobScheduleId}": { + "get": { + "operationId": "JobSchedules_GetJobSchedule", + "tags": [ + "Job Schedules" + ], + "description": "Gets information about the specified Job Schedule.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule to get.", + "required": true, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchJobSchedule" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "JobSchedule get": { + "$ref": "./examples/JobSchedules_GetJobSchedule.json" + } + } + }, + "put": { + "operationId": "JobSchedules_ReplaceJobSchedule", + "tags": [ + "Job Schedules" + ], + "summary": "Updates the properties of the specified Job Schedule.", + "description": "This fully replaces all the updatable properties of the Job Schedule. For\nexample, if the schedule property is not specified with this request, then the\nBatch service will remove the existing schedule. Changes to a Job Schedule only\nimpact Jobs created by the schedule after the update has taken place; currently\nrunning Jobs are unaffected.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule to update.", + "required": true, + "type": "string" + }, + { + "name": "jobSchedule", + "in": "body", + "description": "A Job Schedule with updated properties", + "required": true, + "schema": { + "$ref": "#/definitions/BatchJobSchedule" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "JobSchedule patch": { + "$ref": "./examples/JobSchedules_ReplaceJobSchedule.json" + } + } + }, + "patch": { + "operationId": "JobSchedules_UpdateJobSchedule", + "tags": [ + "Job Schedules" + ], + "summary": "Updates the properties of the specified Job Schedule.", + "description": "This replaces only the Job Schedule properties specified in the request. For\nexample, if the schedule property is not specified with this request, then the\nBatch service will keep the existing schedule. Changes to a Job Schedule only\nimpact Jobs created by the schedule after the update has taken place; currently\nrunning Jobs are unaffected.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule to update.", + "required": true, + "type": "string" + }, + { + "name": "jobSchedule", + "in": "body", + "description": "The options to use for updating the Job Schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchJobScheduleUpdateContent" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "JobSchedule update": { + "$ref": "./examples/JobSchedules_UpdateJobSchedule.json" + } + } + }, + "delete": { + "operationId": "JobSchedules_DeleteJobSchedule", + "tags": [ + "Job Schedules" + ], + "summary": "Deletes a Job Schedule from the specified Account.", + "description": "When you delete a Job Schedule, this also deletes all Jobs and Tasks under that\nschedule. When Tasks are deleted, all the files in their working directories on\nthe Compute Nodes are also deleted (the retention period is ignored). The Job\nSchedule statistics are no longer accessible once the Job Schedule is deleted,\nthough they are still counted towards Account lifetime statistics.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule to delete.", + "required": true, + "type": "string" + }, + { + "name": "force", + "in": "query", + "description": "If true, the server will delete the JobSchedule even if the corresponding nodes have not fully processed the deletion. The default value is false.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "JobSchedule delete": { + "$ref": "./examples/JobSchedules_DeleteJobSchedule.json" + } + } + }, + "head": { + "operationId": "JobSchedules_JobScheduleExists", + "tags": [ + "Job Schedules" + ], + "summary": "Checks the specified Job Schedule exists.", + "description": "Checks the specified Job Schedule exists.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule which you want to check.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "404": { + "description": "The server cannot find the requested resource." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Check Job Schedule Exists": { + "$ref": "./examples/JobSchedules_JobScheduleExists.json" + } + } + } + }, + "/jobschedules/{jobScheduleId}/disable": { + "post": { + "operationId": "JobSchedules_DisableJobSchedule", + "tags": [ + "Job Schedules" + ], + "summary": "Disables a Job Schedule.", + "description": "No new Jobs will be created until the Job Schedule is enabled again.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule to disable.", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. ", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "JobSchedule disable": { + "$ref": "./examples/JobSchedules_DisableJobSchedule.json" + } + } + } + }, + "/jobschedules/{jobScheduleId}/enable": { + "post": { + "operationId": "JobSchedules_EnableJobSchedule", + "tags": [ + "Job Schedules" + ], + "summary": "Enables a Job Schedule.", + "description": "Enables a Job Schedule.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule to enable.", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. ", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "JobSchedule enable": { + "$ref": "./examples/JobSchedules_EnableJobSchedule.json" + } + } + } + }, + "/jobschedules/{jobScheduleId}/jobs": { + "get": { + "operationId": "Jobs_ListJobsFromSchedule", + "tags": [ + "Jobs" + ], + "summary": "Lists the Jobs that have been created under the specified Job Schedule.", + "description": "Lists the Jobs that have been created under the specified Job Schedule.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule from which you want to get a list of Jobs.", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule.", + "required": false, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchJobListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "List Job Under Job Schedule": { + "$ref": "./examples/Jobs_ListJobsFromSchedule.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/jobschedules/{jobScheduleId}/terminate": { + "post": { + "operationId": "JobSchedules_TerminateJobSchedule", + "tags": [ + "Job Schedules" + ], + "summary": "Terminates a Job Schedule.", + "description": "Terminates a Job Schedule.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "jobScheduleId", + "in": "path", + "description": "The ID of the Job Schedule to terminates.", + "required": true, + "type": "string" + }, + { + "name": "force", + "in": "query", + "description": "If true, the server will terminate the JobSchedule even if the corresponding nodes have not fully processed the termination. The default value is false.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "JobSchedule terminate": { + "$ref": "./examples/JobSchedules_TerminateJobSchedule.json" + } + } + } + }, + "/nodecounts": { + "get": { + "operationId": "Pools_ListPoolNodeCounts", + "tags": [ + "Pools" + ], + "description": "Gets the number of Compute Nodes in each state, grouped by Pool. Note that the\nnumbers returned may not always be up to date. If you need exact node counts,\nuse a list query.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchPoolNodeCountsListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "NodeCountsPayload": { + "$ref": "./examples/Pools_ListPoolNodeCounts.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/pools": { + "get": { + "operationId": "Pools_ListPools", + "tags": [ + "Pools" + ], + "summary": "Lists all of the Pools which be mounted.", + "description": "Lists all of the Pools which be mounted.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools.", + "required": false, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchPoolListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool list": { + "$ref": "./examples/Pools_ListPools_Basic.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + }, + "post": { + "operationId": "Pools_CreatePool", + "tags": [ + "Pools" + ], + "summary": "Creates a Pool to the specified Account.", + "description": "When naming Pools, avoid including sensitive information such as user names or\nsecret project names. This information may appear in telemetry logs accessible\nto Microsoft Support engineers.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "pool", + "in": "body", + "description": "The Pool to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchPoolCreateContent" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Creates a VirtualMachineConfiguration pool": { + "$ref": "./examples/Pools_CreatePool_VirtualMachineConfiguration.json" + }, + "Creates a VirtualMachineConfiguration pool with OS disk": { + "$ref": "./examples/Pools_CreatePool_OSDisk.json" + }, + "Creates a VirtualMachineConfiguration pool with ServiceArtifactReference": { + "$ref": "./examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json" + }, + "Creates a VirtualMachineConfiguration pool with containers": { + "$ref": "./examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json" + }, + "Creates a VirtualMachineConfiguration pool with extensions": { + "$ref": "./examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json" + }, + "Creates a pool with SecurityProfile": { + "$ref": "./examples/Pools_CreatePool_SecurityProfile.json" + }, + "Creates a pool with accelerated networking": { + "$ref": "./examples/Pools_CreatePool_AcceleratedNetworking.json" + }, + "Creates a pool with mount drive specified": { + "$ref": "./examples/Pools_CreatePool_MountConfiguration.json" + }, + "Creates a simple pool with resourceTags": { + "$ref": "./examples/Pools_CreatePool_ResourceTags.json" + } + } + } + }, + "/pools/{poolId}": { + "get": { + "operationId": "Pools_GetPool", + "tags": [ + "Pools" + ], + "description": "Gets information about the specified Pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to get.", + "required": true, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + }, + { + "name": "$expand", + "in": "query", + "description": "An OData $expand clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchPool" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Add a VirtualMachineConfiguration pool with OS disk": { + "$ref": "./examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json" + }, + "Get a VirtualMachineConfiguration pool with SecurityProfile": { + "$ref": "./examples/Pools_GetPool_SecurityProfile.json" + }, + "Get a VirtualMachineConfiguration pool with ServiceArtifactReference": { + "$ref": "./examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json" + }, + "Get a VirtualMachineConfiguration pool with extensions": { + "$ref": "./examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json" + }, + "Get a pool with AcceleratedNetworking": { + "$ref": "./examples/Pools_GetPool_AcceleratedNetworking.json" + }, + "Pool get": { + "$ref": "./examples/Pools_GetPool_Basic.json" + } + } + }, + "patch": { + "operationId": "Pools_UpdatePool", + "tags": [ + "Pools" + ], + "summary": "Updates the properties of the specified Pool.", + "description": "This only replaces the Pool properties specified in the request. For example,\nif the Pool has a StartTask associated with it, and a request does not specify\na StartTask element, then the Pool keeps the existing StartTask.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to get.", + "required": true, + "type": "string" + }, + { + "name": "pool", + "in": "body", + "description": "The pool properties to update.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchPoolUpdateContent" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Patch the Pool": { + "$ref": "./examples/Pools_UpdatePool.json" + } + } + }, + "delete": { + "operationId": "Pools_DeletePool", + "tags": [ + "Pools" + ], + "summary": "Deletes a Pool from the specified Account.", + "description": "When you request that a Pool be deleted, the following actions occur: the Pool\nstate is set to deleting; any ongoing resize operation on the Pool are stopped;\nthe Batch service starts resizing the Pool to zero Compute Nodes; any Tasks\nrunning on existing Compute Nodes are terminated and requeued (as if a resize\nPool operation had been requested with the default requeue option); finally,\nthe Pool is removed from the system. Because running Tasks are requeued, the\nuser can rerun these Tasks by updating their Job to target a different Pool.\nThe Tasks can then run on the new Pool. If you want to override the requeue\nbehavior, then you should call resize Pool explicitly to shrink the Pool to\nzero size before deleting the Pool. If you call an Update, Patch or Delete API\non a Pool in the deleting state, it will fail with HTTP status code 409 with\nerror code PoolBeingDeleted.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to get.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool delete": { + "$ref": "./examples/Pools_DeletePool.json" + } + } + }, + "head": { + "operationId": "Pools_PoolExists", + "tags": [ + "Pools" + ], + "description": "Gets basic properties of a Pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to get.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "404": { + "description": "The server cannot find the requested resource." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Check Pool Exists": { + "$ref": "./examples/Pools_PoolExists.json" + } + } + } + }, + "/pools/{poolId}/disableautoscale": { + "post": { + "operationId": "Pools_DisablePoolAutoScale", + "tags": [ + "Pools" + ], + "summary": "Disables automatic scaling for a Pool.", + "description": "Disables automatic scaling for a Pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool on which to disable automatic scaling.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Disable pool autoscale": { + "$ref": "./examples/Pools_DisablePoolAutoScale.json" + } + } + } + }, + "/pools/{poolId}/enableautoscale": { + "post": { + "operationId": "Pools_EnablePoolAutoScale", + "tags": [ + "Pools" + ], + "summary": "Enables automatic scaling for a Pool.", + "description": "You cannot enable automatic scaling on a Pool if a resize operation is in\nprogress on the Pool. If automatic scaling of the Pool is currently disabled,\nyou must specify a valid autoscale formula as part of the request. If automatic\nscaling of the Pool is already enabled, you may specify a new autoscale formula\nand/or a new evaluation interval. You cannot call this API for the same Pool\nmore than once every 30 seconds.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to get.", + "required": true, + "type": "string" + }, + { + "name": "content", + "in": "body", + "description": "The options to use for enabling automatic scaling.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchPoolEnableAutoScaleContent" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool enable autoscale": { + "$ref": "./examples/Pools_EnablePoolAutoscale.json" + } + } + } + }, + "/pools/{poolId}/evaluateautoscale": { + "post": { + "operationId": "Pools_EvaluatePoolAutoScale", + "tags": [ + "Pools" + ], + "summary": "Gets the result of evaluating an automatic scaling formula on the Pool.", + "description": "This API is primarily for validating an autoscale formula, as it simply returns\nthe result without applying the formula to the Pool. The Pool must have auto\nscaling enabled in order to evaluate a formula.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool on which to evaluate the automatic scaling formula.", + "required": true, + "type": "string" + }, + { + "name": "content", + "in": "body", + "description": "The options to use for evaluating the automatic scaling formula.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchPoolEvaluateAutoScaleContent" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AutoScaleRun" + }, + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool evaluate autoscale": { + "$ref": "./examples/Pools_EvaluatePoolAutoscale.json" + } + } + } + }, + "/pools/{poolId}/nodes": { + "get": { + "operationId": "Nodes_ListNodes", + "tags": [ + "Nodes" + ], + "summary": "Lists the Compute Nodes in the specified Pool.", + "description": "Lists the Compute Nodes in the specified Pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool from which you want to list Compute Nodes.", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.", + "required": false, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchNodeListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node list": { + "$ref": "./examples/Nodes_ListNodes.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/pools/{poolId}/nodes/{nodeId}": { + "get": { + "operationId": "Nodes_GetNode", + "tags": [ + "Nodes" + ], + "summary": "Gets information about the specified Compute Node.", + "description": "Gets information about the specified Compute Node.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node that you want to get information about.", + "required": true, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchNode" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node get": { + "$ref": "./examples/Nodes_GetNode.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/deallocate": { + "post": { + "operationId": "Nodes_DeallocateNode", + "tags": [ + "Nodes" + ], + "summary": "Deallocates the specified Compute Node.", + "description": "You can deallocate a Compute Node only if it is in an idle or running state.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node that you want to restart.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The options to use for deallocating the Compute Node.", + "required": false, + "schema": { + "$ref": "#/definitions/BatchNodeDeallocateContent" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node Deallocate": { + "$ref": "./examples/Node_DeallocateNode.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/disablescheduling": { + "post": { + "operationId": "Nodes_DisableNodeScheduling", + "tags": [ + "Nodes" + ], + "summary": "Disables Task scheduling on the specified Compute Node.", + "description": "You can disable Task scheduling on a Compute Node only if its current\nscheduling state is enabled.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node on which you want to disable Task scheduling.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The options to use for disabling scheduling on the Compute Node.", + "required": false, + "schema": { + "$ref": "#/definitions/BatchNodeDisableSchedulingContent" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node disable scheduling": { + "$ref": "./examples/Nodes_DisableNodeScheduling.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/enablescheduling": { + "post": { + "operationId": "Nodes_EnableNodeScheduling", + "tags": [ + "Nodes" + ], + "summary": "Enables Task scheduling on the specified Compute Node.", + "description": "You can enable Task scheduling on a Compute Node only if its current scheduling\nstate is disabled", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node on which you want to enable Task scheduling.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node enable scheduling": { + "$ref": "./examples/Nodes_EnableNodeScheduling.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/extensions": { + "get": { + "operationId": "Nodes_ListNodeExtensions", + "tags": [ + "Nodes" + ], + "summary": "Lists the Compute Nodes Extensions in the specified Pool.", + "description": "Lists the Compute Nodes Extensions in the specified Pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node that you want to list extensions.", + "required": true, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchNodeVMExtensionListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "List compute node extensions": { + "$ref": "./examples/Nodes_ListNodeExtensions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/extensions/{extensionName}": { + "get": { + "operationId": "Nodes_GetNodeExtension", + "tags": [ + "Nodes" + ], + "summary": "Gets information about the specified Compute Node Extension.", + "description": "Gets information about the specified Compute Node Extension.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node that contains the extensions.", + "required": true, + "type": "string" + }, + { + "name": "extensionName", + "in": "path", + "description": "The name of the Compute Node Extension that you want to get information about.", + "required": true, + "type": "string" + }, + { + "name": "$select", + "in": "query", + "description": "An OData $select clause.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchNodeVMExtension" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Get batch node extension": { + "$ref": "./examples/Nodes_GetNodeExtension.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/files": { + "get": { + "operationId": "Nodes_ListNodeFiles", + "tags": [ + "Nodes" + ], + "summary": "Lists all of the files in Task directories on the specified Compute Node.", + "description": "Lists all of the files in Task directories on the specified Compute Node.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node whose files you want to list.", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files.", + "required": false, + "type": "string" + }, + { + "name": "recursive", + "in": "query", + "description": "Whether to list children of a directory.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchNodeFileListResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "File list from node": { + "$ref": "./examples/Nodes_ListNodeFiles.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/files/{filePath}": { + "get": { + "operationId": "Nodes_GetNodeFile", + "tags": [ + "Nodes" + ], + "description": "Returns the content of the specified Compute Node file.", + "produces": [ + "application/octet-stream", + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "filePath", + "in": "path", + "description": "The path to the file or directory.", + "required": true, + "type": "string" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "ocp-range", + "in": "header", + "description": "The byte range to be retrieved. The default is to retrieve the entire file. The\nformat is bytes=startRange-endRange.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "type": "file" + }, + "headers": { + "Content-Length": { + "type": "string", + "description": "The length of the file." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "ocp-batch-file-isdirectory": { + "type": "boolean", + "description": "Whether the object represents a directory." + }, + "ocp-batch-file-mode": { + "type": "string", + "description": "The file mode attribute in octal format." + }, + "ocp-batch-file-url": { + "type": "string", + "description": "The URL of the file." + }, + "ocp-creation-time": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The file creation time." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Get File From Compute Node": { + "$ref": "./examples/Nodes_GetNodeFile.json" + } + } + }, + "delete": { + "operationId": "Nodes_DeleteNodeFile", + "tags": [ + "Nodes" + ], + "summary": "Deletes the specified file from the Compute Node.", + "description": "Deletes the specified file from the Compute Node.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "filePath", + "in": "path", + "description": "The path to the file or directory.", + "required": true, + "type": "string" + }, + { + "name": "recursive", + "in": "query", + "description": "Whether to delete children of a directory. If the filePath parameter represents\na directory instead of a file, you can set recursive to true to delete the\ndirectory and all of the files and subdirectories in it. If recursive is false\nthen the directory must be empty or deletion will fail.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "File delete from node": { + "$ref": "./examples/Nodes_DeleteNodeFile.json" + } + } + }, + "head": { + "operationId": "Nodes_GetNodeFileProperties", + "tags": [ + "Nodes" + ], + "description": "Gets the properties of the specified Compute Node file.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "filePath", + "in": "path", + "description": "The path to the file or directory.", + "required": true, + "type": "string" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "Content-Length": { + "type": "string", + "description": "The length of the file." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "ocp-batch-file-isdirectory": { + "type": "boolean", + "description": "Whether the object represents a directory." + }, + "ocp-batch-file-mode": { + "type": "string", + "description": "The file mode attribute in octal format." + }, + "ocp-batch-file-url": { + "type": "string", + "description": "The URL of the file." + }, + "ocp-creation-time": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The file creation time." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "File get properties from node": { + "$ref": "./examples/Nodes_GetNodeFileProperties.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/reboot": { + "post": { + "operationId": "Nodes_RebootNode", + "tags": [ + "Nodes" + ], + "summary": "Restarts the specified Compute Node.", + "description": "You can restart a Compute Node only if it is in an idle or running state.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node that you want to restart.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The options to use for rebooting the Compute Node.", + "required": false, + "schema": { + "$ref": "#/definitions/BatchNodeRebootContent" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node reboot": { + "$ref": "./examples/Nodes_RebootNode.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/reimage": { + "post": { + "operationId": "Nodes_ReimageNode", + "tags": [ + "Nodes" + ], + "summary": "Reinstalls the operating system on the specified Compute Node.", + "description": "You can reinstall the operating system on a Compute Node only if it is in an\nidle or running state. This API can be invoked only on Pools created with the\ncloud service configuration property.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node that you want to restart.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The options to use for reimaging the Compute Node.", + "required": false, + "schema": { + "$ref": "#/definitions/BatchNodeReimageContent" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node reimage": { + "$ref": "./examples/Nodes_NodeReimage.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/remoteloginsettings": { + "get": { + "operationId": "Nodes_GetNodeRemoteLoginSettings", + "tags": [ + "Nodes" + ], + "summary": "Gets the settings required for remote login to a Compute Node.", + "description": "Before you can remotely login to a Compute Node using the remote login settings, \nyou must create a user Account on the Compute Node.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node for which to obtain the remote login settings.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchNodeRemoteLoginSettings" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node get remote login settings": { + "$ref": "./examples/Nodes_GetNodeRemoteLoginSettings.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/start": { + "post": { + "operationId": "Nodes_StartNode", + "tags": [ + "Nodes" + ], + "summary": "Starts the specified Compute Node.", + "description": "You can start a Compute Node only if it has been deallocated.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node that you want to restart.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node start": { + "$ref": "./examples/Node_StartNode.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs": { + "post": { + "operationId": "Nodes_UploadNodeLogs", + "tags": [ + "Nodes" + ], + "summary": "Upload Azure Batch service log files from the specified Compute Node to Azure\nBlob Storage.", + "description": "This is for gathering Azure Batch service log files in an automated fashion\nfrom Compute Nodes if you are experiencing an error and wish to escalate to\nAzure support. The Azure Batch service log files should be shared with Azure\nsupport to aid in debugging issues with the Batch service.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the Compute Node for which you want to get the Remote Desktop\nProtocol file.", + "required": true, + "type": "string" + }, + { + "name": "content", + "in": "body", + "description": "The Azure Batch service log files upload options.", + "required": true, + "schema": { + "$ref": "#/definitions/UploadBatchServiceLogsContent" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/UploadBatchServiceLogsResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Upload BatchService Logs": { + "$ref": "./examples/Nodes_UploadNodeLogs.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/users": { + "post": { + "operationId": "Nodes_CreateNodeUser", + "tags": [ + "Nodes" + ], + "summary": "Adds a user Account to the specified Compute Node.", + "description": "You can add a user Account to a Compute Node only when it is in the idle or\nrunning state.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the machine on which you want to create a user Account.", + "required": true, + "type": "string" + }, + { + "name": "user", + "in": "body", + "description": "The options to use for creating the user.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchNodeUserCreateContent" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node create user": { + "$ref": "./examples/Nodes_CreateNodeUser.json" + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/users/{userName}": { + "put": { + "operationId": "Nodes_ReplaceNodeUser", + "tags": [ + "Nodes" + ], + "summary": "Updates the password and expiration time of a user Account on the specified Compute Node.", + "description": "This operation replaces of all the updatable properties of the Account. For\nexample, if the expiryTime element is not specified, the current value is\nreplaced with the default value, not left unmodified. You can update a user\nAccount on a Compute Node only when it is in the idle or running state.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the machine on which you want to update a user Account.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user Account to update.", + "required": true, + "type": "string" + }, + { + "name": "content", + "in": "body", + "description": "The options to use for updating the user.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchNodeUserUpdateContent" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node update user": { + "$ref": "./examples/Nodes_ReplaceNodeUser.json" + } + } + }, + "delete": { + "operationId": "Nodes_DeleteNodeUser", + "tags": [ + "Nodes" + ], + "summary": "Deletes a user Account from the specified Compute Node.", + "description": "You can delete a user Account to a Compute Node only when it is in the idle or\nrunning state.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool that contains the Compute Node.", + "required": true, + "type": "string" + }, + { + "name": "nodeId", + "in": "path", + "description": "The ID of the machine on which you want to delete a user Account.", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "The name of the user Account to delete.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "headers": { + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Node delete user": { + "$ref": "./examples/Nodes_DeleteNodeUser.json" + } + } + } + }, + "/pools/{poolId}/removenodes": { + "post": { + "operationId": "Pools_RemoveNodes", + "tags": [ + "Pools" + ], + "summary": "Removes Compute Nodes from the specified Pool.", + "description": "This operation can only run when the allocation state of the Pool is steady.\nWhen this operation runs, the allocation state changes from steady to resizing.\nEach request may remove up to 100 nodes.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to get.", + "required": true, + "type": "string" + }, + { + "name": "content", + "in": "body", + "description": "The options to use for removing the node.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchNodeRemoveContent" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool remove nodes": { + "$ref": "./examples/Pools_RemoveNodes.json" + } + } + } + }, + "/pools/{poolId}/resize": { + "post": { + "operationId": "Pools_ResizePool", + "tags": [ + "Pools" + ], + "summary": "Changes the number of Compute Nodes that are assigned to a Pool.", + "description": "You can only resize a Pool when its allocation state is steady. If the Pool is\nalready resizing, the request fails with status code 409. When you resize a\nPool, the Pool's allocation state changes from steady to resizing. You cannot\nresize Pools which are configured for automatic scaling. If you try to do this,\nthe Batch service returns an error 409. If you resize a Pool downwards, the\nBatch service chooses which Compute Nodes to remove. To remove specific Compute\nNodes, use the Pool remove Compute Nodes API instead.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to get.", + "required": true, + "type": "string" + }, + { + "name": "content", + "in": "body", + "description": "The options to use for resizing the pool.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchPoolResizeContent" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool resize": { + "$ref": "./examples/Pools_ResizePool.json" + } + } + } + }, + "/pools/{poolId}/stopresize": { + "post": { + "operationId": "Pools_StopPoolResize", + "tags": [ + "Pools" + ], + "summary": "Stops an ongoing resize operation on the Pool.", + "description": "This does not restore the Pool to its previous state before the resize\noperation: it only stops any further changes being made, and the Pool maintains\nits current state. After stopping, the Pool stabilizes at the number of Compute\nNodes it was at when the stop operation was done. During the stop operation,\nthe Pool allocation state changes first to stopping and then to steady. A\nresize operation need not be an explicit resize Pool request; this API can also\nbe used to halt the initial sizing of the Pool when it is created.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "If-Modified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifModifiedSince" + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "description": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ifUnmodifiedSince" + }, + { + "name": "If-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice exactly matches the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "An ETag value associated with the version of the resource known to the client.\nThe operation will be performed only if the resource's current ETag on the\nservice does not match the value specified by the client.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to get.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool stop resize": { + "$ref": "./examples/Pools_StopPoolResize.json" + } + } + } + }, + "/pools/{poolId}/updateproperties": { + "post": { + "operationId": "Pools_ReplacePoolProperties", + "tags": [ + "Pools" + ], + "summary": "Updates the properties of the specified Pool.", + "description": "This fully replaces all the updatable properties of the Pool. For example, if\nthe Pool has a StartTask associated with it and if StartTask is not specified\nwith this request, then the Batch service will remove the existing StartTask.", + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "poolId", + "in": "path", + "description": "The ID of the Pool to update.", + "required": true, + "type": "string" + }, + { + "name": "pool", + "in": "body", + "description": "The options to use for replacing properties on the pool.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchPoolReplaceContent" + } + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. ", + "headers": { + "DataServiceId": { + "type": "string", + "description": "The OData ID of the resource to which the request applied." + }, + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool update": { + "$ref": "./examples/Pools_ReplacePoolProperties.json" + } + } + } + }, + "/poolusagemetrics": { + "get": { + "operationId": "Pools_ListPoolUsageMetrics", + "tags": [ + "Pools" + ], + "summary": "Lists the usage metrics, aggregated by Pool across individual time intervals,\nfor the specified Account.", + "description": "If you do not specify a $filter clause including a poolId, the response\nincludes all Pools that existed in the Account in the time range of the\nreturned aggregation intervals. If you do not specify a $filter clause\nincluding a startTime or endTime these filters default to the start and end\ntimes of the last aggregation interval currently available; that is, only the\nlast aggregation interval is returned.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "startTime", + "in": "query", + "description": "The earliest time from which to include metrics. This must be at least two and\na half hours before the current time. If not specified this defaults to the\nstart time of the last aggregation interval currently available.", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endtime", + "in": "query", + "description": "The latest time from which to include metrics. This must be at least two hours\nbefore the current time. If not specified this defaults to the end time of the\nlast aggregation interval currently available.", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchPoolListUsageMetricsResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Pool list usage metrics": { + "$ref": "./examples/Pools_ListPoolUsageMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + }, + "/supportedimages": { + "get": { + "operationId": "Pools_ListSupportedImages", + "tags": [ + "Pools" + ], + "summary": "Lists all Virtual Machine Images supported by the Azure Batch service.", + "description": "Lists all Virtual Machine Images supported by the Azure Batch service.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "timeOut", + "in": "query", + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.\".", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "client-request-id", + "in": "header", + "description": "The caller-generated request identity, in the form of a GUID with no decoration\nsuch as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "required": false, + "type": "string", + "x-ms-client-name": "clientRequestId" + }, + { + "name": "return-client-request-id", + "in": "header", + "description": "Whether the server should return the client-request-id in the response.", + "required": false, + "type": "boolean", + "default": false, + "x-ms-client-name": "returnClientRequestId" + }, + { + "name": "ocp-date", + "in": "header", + "description": "The time the request was issued. Client libraries typically set this to the\ncurrent system clock time; set it explicitly if you are calling the REST API\ndirectly.", + "required": false, + "type": "string", + "format": "date-time-rfc7231", + "x-ms-client-name": "ocpdate" + }, + { + "name": "maxresults", + "in": "query", + "description": "The maximum number of items to return in the response. A maximum of 1000\napplications can be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 1000, + "minimum": 1, + "maximum": 1000 + }, + { + "name": "$filter", + "in": "query", + "description": "An OData $filter clause. For more information on constructing this filter, see\nhttps://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchAccountListSupportedImagesResult" + }, + "headers": { + "ETag": { + "type": "string", + "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers." + }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc7231", + "description": "The time at which the resource was last modified." + }, + "client-request-id": { + "type": "string", + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true." + }, + "request-id": { + "type": "string", + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + }, + "x-ms-examples": { + "Account list node agent skus": { + "$ref": "./examples/Pools_ListSupportedImages.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + } + } + } + }, + "definitions": { + "AccessScope": { + "type": "string", + "description": "AccessScope enums", + "enum": [ + "job" + ], + "x-ms-enum": { + "name": "AccessScope", + "modelAsString": true, + "values": [ + { + "name": "Job", + "value": "job", + "description": "Grants access to perform all operations on the Job containing the Task." + } + ] + } + }, + "AffinityInfo": { + "type": "object", + "description": "A locality hint that can be used by the Batch service to select a Compute Node\non which to start a Task.", + "properties": { + "affinityId": { + "type": "string", + "description": "An opaque string representing the location of a Compute Node or a Task that has run previously. You can pass the affinityId of a Node to indicate that this Task needs to run on that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere." + } + }, + "required": [ + "affinityId" + ] + }, + "AllocationState": { + "type": "string", + "description": "AllocationState enums", + "enum": [ + "steady", + "resizing", + "stopping" + ], + "x-ms-enum": { + "name": "AllocationState", + "modelAsString": true, + "values": [ + { + "name": "Steady", + "value": "steady", + "description": "The Pool is not resizing. There are no changes to the number of Compute Nodes in the Pool in progress. A Pool enters this state when it is created and when no operations are being performed on the Pool to change the number of Compute Nodes." + }, + { + "name": "Resizing", + "value": "resizing", + "description": "The Pool is resizing; that is, Compute Nodes are being added to or removed from the Pool." + }, + { + "name": "Stopping", + "value": "stopping", + "description": "The Pool was resizing, but the user has requested that the resize be stopped, but the stop request has not yet been completed." + } + ] + } + }, + "AuthenticationTokenSettings": { + "type": "object", + "description": "The settings for an authentication token that the Task can use to perform Batch\nservice operations.", + "properties": { + "access": { + "type": "array", + "description": "The Batch resources to which the token grants access. The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task.", + "items": { + "$ref": "#/definitions/AccessScope" + } + } + } + }, + "AutoScaleRun": { + "type": "object", + "description": "The results and errors from an execution of a Pool autoscale formula.", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The time at which the autoscale formula was last evaluated." + }, + "results": { + "type": "string", + "description": "The final values of all variables used in the evaluation of the autoscale formula. Each variable value is returned in the form $variable=value, and variables are separated by semicolons." + }, + "error": { + "$ref": "#/definitions/AutoScaleRunError", + "description": "Details of the error encountered evaluating the autoscale formula on the Pool, if the evaluation was unsuccessful." + } + }, + "required": [ + "timestamp" + ] + }, + "AutoScaleRunError": { + "type": "object", + "description": "An error that occurred when executing or evaluating a Pool autoscale formula.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the autoscale error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the autoscale error, intended to be suitable for display in a user interface." + }, + "values": { + "type": "array", + "description": "A list of additional error details related to the autoscale error.", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "x-ms-identifiers": [] + } + } + }, + "AutoUserScope": { + "type": "string", + "description": "AutoUserScope enums", + "enum": [ + "task", + "pool" + ], + "x-ms-enum": { + "name": "AutoUserScope", + "modelAsString": true, + "values": [ + { + "name": "Task", + "value": "task", + "description": "Specifies that the service should create a new user for the Task." + }, + { + "name": "Pool", + "value": "pool", + "description": "Specifies that the Task runs as the common auto user Account which is created on every Compute Node in a Pool." + } + ] + } + }, + "AutoUserSpecification": { + "type": "object", + "description": "Specifies the options for the auto user that runs an Azure Batch Task.", + "properties": { + "scope": { + "$ref": "#/definitions/AutoUserScope", + "description": "The scope for the auto user. The default value is pool. If the pool is running Windows, a value of Task should be specified if stricter isolation between tasks is required, such as if the task mutates the registry in a way which could impact other tasks." + }, + "elevationLevel": { + "$ref": "#/definitions/ElevationLevel", + "description": "The elevation level of the auto user. The default value is nonAdmin." + } + } + }, + "AutomaticOsUpgradePolicy": { + "type": "object", + "description": "The configuration parameters used for performing automatic OS upgrade.", + "properties": { + "disableAutomaticRollback": { + "type": "boolean", + "description": "Whether OS image rollback feature should be disabled." + }, + "enableAutomaticOSUpgrade": { + "type": "boolean", + "description": "Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.

If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/rest/api/batchservice/pool/add?tabs=HTTP#windowsconfiguration) cannot be set to true.", + "x-ms-client-name": "enableAutomaticOsUpgrade" + }, + "useRollingUpgradePolicy": { + "type": "boolean", + "description": "Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS." + }, + "osRollingUpgradeDeferral": { + "type": "boolean", + "description": "Defer OS upgrades on the TVMs if they are running tasks." + } + } + }, + "AzureBlobFileSystemConfiguration": { + "type": "object", + "description": "Information used to connect to an Azure Storage Container using Blobfuse.", + "properties": { + "accountName": { + "type": "string", + "description": "The Azure Storage Account name." + }, + "containerName": { + "type": "string", + "description": "The Azure Blob Storage Container name." + }, + "accountKey": { + "type": "string", + "format": "password", + "description": "The Azure Storage Account key. This property is mutually exclusive with both sasKey and identity; exactly one must be specified.", + "x-ms-secret": true + }, + "sasKey": { + "type": "string", + "format": "password", + "description": "The Azure Storage SAS token. This property is mutually exclusive with both accountKey and identity; exactly one must be specified.", + "x-ms-secret": true + }, + "blobfuseOptions": { + "type": "string", + "description": "Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux." + }, + "relativeMountPath": { + "type": "string", + "description": "The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable." + }, + "identityReference": { + "$ref": "#/definitions/BatchNodeIdentityReference", + "description": "The reference to the user assigned identity to use to access containerName. This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified." + } + }, + "required": [ + "accountName", + "containerName", + "relativeMountPath" + ] + }, + "AzureFileShareConfiguration": { + "type": "object", + "description": "Information used to connect to an Azure Fileshare.", + "properties": { + "accountName": { + "type": "string", + "description": "The Azure Storage account name." + }, + "azureFileUrl": { + "type": "string", + "description": "The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'." + }, + "accountKey": { + "type": "string", + "format": "password", + "description": "The Azure Storage account key.", + "x-ms-secret": true + }, + "relativeMountPath": { + "type": "string", + "description": "The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable." + }, + "mountOptions": { + "type": "string", + "description": "Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux." + } + }, + "required": [ + "accountName", + "azureFileUrl", + "accountKey", + "relativeMountPath" + ] + }, + "BatchAccountListSupportedImagesResult": { + "type": "object", + "description": "The result of listing the supported Virtual Machine Images.", + "properties": { + "value": { + "type": "array", + "description": "The list of supported Virtual Machine Images.", + "items": { + "$ref": "#/definitions/BatchSupportedImage" + }, + "x-ms-identifiers": [] + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchApplication": { + "type": "object", + "description": "Contains information about an application in an Azure Batch Account.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the application within the Account." + }, + "displayName": { + "type": "string", + "description": "The display name for the application." + }, + "versions": { + "type": "array", + "description": "The list of available versions of the application.", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "displayName", + "versions" + ] + }, + "BatchApplicationListResult": { + "type": "object", + "description": "The result of listing the applications available in an Account.", + "properties": { + "value": { + "type": "array", + "description": "The list of applications available in the Account.", + "items": { + "$ref": "#/definitions/BatchApplication" + } + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchApplicationPackageReference": { + "type": "object", + "description": "A reference to an Package to be deployed to Compute Nodes.", + "properties": { + "applicationId": { + "type": "string", + "description": "The ID of the application to deploy. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName})." + }, + "version": { + "type": "string", + "description": "The version of the application to deploy. If omitted, the default version is deployed. If this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error." + } + }, + "required": [ + "applicationId" + ] + }, + "BatchAutoPoolSpecification": { + "type": "object", + "description": "Specifies characteristics for a temporary 'auto pool'. The Batch service will\ncreate this auto Pool when the Job is submitted.", + "properties": { + "autoPoolIdPrefix": { + "type": "string", + "description": "A prefix to be added to the unique identifier when a Pool is automatically created. The Batch service assigns each auto Pool a unique identifier on creation. To distinguish between Pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long." + }, + "poolLifetimeOption": { + "$ref": "#/definitions/BatchPoolLifetimeOption", + "description": "The minimum lifetime of created auto Pools, and how multiple Jobs on a schedule are assigned to Pools." + }, + "keepAlive": { + "type": "boolean", + "description": "Whether to keep an auto Pool alive after its lifetime expires. If false, the Batch service deletes the Pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the Job or Job Schedule completes. If true, the Batch service does not delete the Pool automatically. It is up to the user to delete auto Pools created with this option." + }, + "pool": { + "$ref": "#/definitions/BatchPoolSpecification", + "description": "The Pool specification for the auto Pool." + } + }, + "required": [ + "poolLifetimeOption" + ] + }, + "BatchAutoPoolSpecificationUpdate": { + "type": "object", + "description": "Specifies characteristics for a temporary 'auto pool'. The Batch service will\ncreate this auto Pool when the Job is submitted.", + "properties": { + "autoPoolIdPrefix": { + "type": "string", + "description": "A prefix to be added to the unique identifier when a Pool is automatically created. The Batch service assigns each auto Pool a unique identifier on creation. To distinguish between Pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long." + }, + "poolLifetimeOption": { + "$ref": "#/definitions/BatchPoolLifetimeOption", + "description": "The minimum lifetime of created auto Pools, and how multiple Jobs on a schedule are assigned to Pools." + }, + "keepAlive": { + "type": "boolean", + "description": "Whether to keep an auto Pool alive after its lifetime expires. If false, the Batch service deletes the Pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the Job or Job Schedule completes. If true, the Batch service does not delete the Pool automatically. It is up to the user to delete auto Pools created with this option." + }, + "pool": { + "$ref": "#/definitions/BatchPoolSpecificationUpdate", + "description": "The Pool specification for the auto Pool." + } + } + }, + "BatchError": { + "type": "object", + "description": "An error response received from the Azure Batch service.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "$ref": "#/definitions/BatchErrorMessage", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "values": { + "type": "array", + "description": "A collection of key-value pairs containing additional details about the error.", + "items": { + "$ref": "#/definitions/BatchErrorDetail" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "code" + ] + }, + "BatchErrorDetail": { + "type": "object", + "description": "An item of additional information included in an Azure Batch error response.", + "properties": { + "key": { + "type": "string", + "description": "An identifier specifying the meaning of the Value property." + }, + "value": { + "type": "string", + "description": "The additional information included with the error response." + } + } + }, + "BatchErrorMessage": { + "type": "object", + "description": "An error message received in an Azure Batch error response.", + "properties": { + "lang": { + "type": "string", + "description": "The language code of the error message." + }, + "value": { + "type": "string", + "description": "The text of the message." + } + } + }, + "BatchJob": { + "type": "object", + "description": "An Azure Batch Job.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Job within the Account. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the Job.", + "readOnly": true + }, + "usesTaskDependencies": { + "type": "boolean", + "description": "Whether Tasks in the Job can define dependencies on each other. The default is false.", + "readOnly": true + }, + "url": { + "type": "string", + "description": "The URL of the Job.", + "readOnly": true + }, + "eTag": { + "type": "string", + "description": "The ETag of the Job. This is an opaque string. You can use it to detect whether the Job has changed between requests. In particular, you can be pass the ETag when updating a Job to specify that your changes should take effect only if nobody else has modified the Job in the meantime.", + "readOnly": true + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The last modified time of the Job. This is the last time at which the Job level data, such as the Job state or priority, changed. It does not factor in task-level changes such as adding new Tasks or Tasks changing state.", + "readOnly": true + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "The creation time of the Job.", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/BatchJobState", + "description": "The current state of the Job.", + "readOnly": true + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Job entered its current state.", + "readOnly": true + }, + "previousState": { + "$ref": "#/definitions/BatchJobState", + "description": "The previous state of the Job. This property is not set if the Job is in its initial Active state.", + "readOnly": true + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Job entered its previous state. This property is not set if the Job is in its initial Active state.", + "readOnly": true + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0." + }, + "allowTaskPreemption": { + "type": "boolean", + "description": "Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API." + }, + "maxParallelTasks": { + "type": "integer", + "format": "int32", + "description": "The maximum number of tasks that can be executed in parallel for the job. The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API.", + "default": -1 + }, + "constraints": { + "$ref": "#/definitions/BatchJobConstraints", + "description": "The execution constraints for the Job." + }, + "jobManagerTask": { + "$ref": "#/definitions/BatchJobManagerTask", + "description": "Details of a Job Manager Task to be launched when the Job is started.", + "readOnly": true + }, + "jobPreparationTask": { + "$ref": "#/definitions/BatchJobPreparationTask", + "description": "The Job Preparation Task. The Job Preparation Task is a special Task run on each Compute Node before any other Task of the Job.", + "readOnly": true + }, + "jobReleaseTask": { + "$ref": "#/definitions/BatchJobReleaseTask", + "description": "The Job Release Task. The Job Release Task is a special Task run at the end of the Job on each Compute Node that has run any other Task of the Job.", + "readOnly": true + }, + "commonEnvironmentSettings": { + "type": "array", + "description": "The list of common environment variable settings. These environment variables are set for all Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks). Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "poolInfo": { + "$ref": "#/definitions/BatchPoolInfo", + "description": "The Pool settings associated with the Job." + }, + "onAllTasksComplete": { + "$ref": "#/definitions/OnAllBatchTasksComplete", + "description": "The action the Batch service should take when all Tasks in the Job are in the completed state. The default is noaction." + }, + "onTaskFailure": { + "$ref": "#/definitions/OnBatchTaskFailure", + "description": "The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction.", + "readOnly": true + }, + "networkConfiguration": { + "$ref": "#/definitions/BatchJobNetworkConfiguration", + "description": "The network configuration for the Job.", + "readOnly": true + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Job as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + }, + "executionInfo": { + "$ref": "#/definitions/BatchJobExecutionInfo", + "description": "The execution information for the Job.", + "readOnly": true + }, + "stats": { + "$ref": "#/definitions/BatchJobStatistics", + "description": "Resource usage statistics for the entire lifetime of the Job. This property is populated only if the BatchJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", + "readOnly": true + } + }, + "required": [ + "poolInfo" + ] + }, + "BatchJobAction": { + "type": "string", + "description": "BatchJobAction enums", + "enum": [ + "none", + "disable", + "terminate" + ], + "x-ms-enum": { + "name": "BatchJobAction", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "none", + "description": "Take no action." + }, + { + "name": "Disable", + "value": "disable", + "description": "Disable the Job. This is equivalent to calling the disable Job API, with a disableTasks value of requeue." + }, + { + "name": "Terminate", + "value": "terminate", + "description": "Terminate the Job. The terminationReason in the Job's executionInfo is set to \"TaskFailed\"." + } + ] + } + }, + "BatchJobConstraints": { + "type": "object", + "description": "The execution constraints for a Job.", + "properties": { + "maxWallClockTime": { + "type": "string", + "format": "duration", + "description": "The maximum elapsed time that the Job may run, measured from the time the Job is created. If the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running. In this case, the termination reason will be MaxWallClockTimeExpiry. If this property is not specified, there is no time limit on how long the Job may run." + }, + "maxTaskRetryCount": { + "type": "integer", + "format": "int32", + "description": "The maximum number of times each Task may be retried. The Batch service retries a Task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try each Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries a Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry Tasks. If the maximum retry count is -1, the Batch service retries Tasks without limit. The default value is 0 (no retries)." + } + } + }, + "BatchJobCreateContent": { + "type": "object", + "description": "Parameters for creating an Azure Batch Job.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Job within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case)." + }, + "displayName": { + "type": "string", + "description": "The display name for the Job. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "usesTaskDependencies": { + "type": "boolean", + "description": "Whether Tasks in the Job can define dependencies on each other. The default is false." + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0." + }, + "allowTaskPreemption": { + "type": "boolean", + "description": "Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API." + }, + "maxParallelTasks": { + "type": "integer", + "format": "int32", + "description": "The maximum number of tasks that can be executed in parallel for the job. The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API.", + "default": -1 + }, + "constraints": { + "$ref": "#/definitions/BatchJobConstraints", + "description": "The execution constraints for the Job." + }, + "jobManagerTask": { + "$ref": "#/definitions/BatchJobManagerTask", + "description": "Details of a Job Manager Task to be launched when the Job is started. If the Job does not specify a Job Manager Task, the user must explicitly add Tasks to the Job. If the Job does specify a Job Manager Task, the Batch service creates the Job Manager Task when the Job is created, and will try to schedule the Job Manager Task before scheduling other Tasks in the Job. The Job Manager Task's typical purpose is to control and/or monitor Job execution, for example by deciding what additional Tasks to run, determining when the work is complete, etc. (However, a Job Manager Task is not restricted to these activities - it is a fully-fledged Task in the system and perform whatever actions are required for the Job.) For example, a Job Manager Task might download a file specified as a parameter, analyze the contents of that file and submit additional Tasks based on those contents." + }, + "jobPreparationTask": { + "$ref": "#/definitions/BatchJobPreparationTask", + "description": "The Job Preparation Task. If a Job has a Job Preparation Task, the Batch service will run the Job Preparation Task on a Node before starting any Tasks of that Job on that Compute Node." + }, + "jobReleaseTask": { + "$ref": "#/definitions/BatchJobReleaseTask", + "description": "The Job Release Task. A Job Release Task cannot be specified without also specifying a Job Preparation Task for the Job. The Batch service runs the Job Release Task on the Nodes that have run the Job Preparation Task. The primary purpose of the Job Release Task is to undo changes to Compute Nodes made by the Job Preparation Task. Example activities include deleting local files, or shutting down services that were started as part of Job preparation." + }, + "commonEnvironmentSettings": { + "type": "array", + "description": "The list of common environment variable settings. These environment variables are set for all Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks). Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "poolInfo": { + "$ref": "#/definitions/BatchPoolInfo", + "description": "The Pool on which the Batch service runs the Job's Tasks." + }, + "onAllTasksComplete": { + "$ref": "#/definitions/OnAllBatchTasksComplete", + "description": "The action the Batch service should take when all Tasks in the Job are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction." + }, + "onTaskFailure": { + "$ref": "#/definitions/OnBatchTaskFailure", + "description": "The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction." + }, + "networkConfiguration": { + "$ref": "#/definitions/BatchJobNetworkConfiguration", + "description": "The network configuration for the Job." + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Job as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "id", + "poolInfo" + ] + }, + "BatchJobDisableContent": { + "type": "object", + "description": "Parameters for disabling an Azure Batch Job.", + "properties": { + "disableTasks": { + "$ref": "#/definitions/DisableBatchJobOption", + "description": "What to do with active Tasks associated with the Job." + } + }, + "required": [ + "disableTasks" + ] + }, + "BatchJobExecutionInfo": { + "type": "object", + "description": "Contains information about the execution of a Job in the Azure Batch service.", + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the Job. This is the time at which the Job was created." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The completion time of the Job. This property is set only if the Job is in the completed state." + }, + "poolId": { + "type": "string", + "description": "The ID of the Pool to which this Job is assigned. This element contains the actual Pool where the Job is assigned. When you get Job details from the service, they also contain a poolInfo element, which contains the Pool configuration data from when the Job was added or updated. That poolInfo element may also contain a poolId element. If it does, the two IDs are the same. If it does not, it means the Job ran on an auto Pool, and this property contains the ID of that auto Pool." + }, + "schedulingError": { + "$ref": "#/definitions/BatchJobSchedulingError", + "description": "Details of any error encountered by the service in starting the Job. This property is not set if there was no error starting the Job." + }, + "terminateReason": { + "type": "string", + "description": "A string describing the reason the Job ended. This property is set only if the Job is in the completed state. If the Batch service terminates the Job, it sets the reason as follows: JMComplete - the Job Manager Task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the Job reached its maxWallClockTime constraint. TerminateJobSchedule - the Job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the Job's onAllTasksComplete attribute is set to terminatejob, and all Tasks in the Job are complete. TaskFailed - the Job's onTaskFailure attribute is set to performExitOptionsJobAction, and a Task in the Job failed with an exit condition that specified a jobAction of terminatejob. Any other string is a user-defined reason specified in a call to the 'Terminate a Job' operation.", + "x-ms-client-name": "terminationReason" + } + }, + "required": [ + "startTime" + ] + }, + "BatchJobListResult": { + "type": "object", + "description": "The result of listing the Jobs in an Account.", + "properties": { + "value": { + "type": "array", + "description": "The list of Jobs.", + "items": { + "$ref": "#/definitions/BatchJob" + } + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchJobManagerTask": { + "type": "object", + "description": "Specifies details of a Job Manager Task.\nThe Job Manager Task is automatically started when the Job is created. The\nBatch service tries to schedule the Job Manager Task before any other Tasks in\nthe Job. When shrinking a Pool, the Batch service tries to preserve Nodes where\nJob Manager Tasks are running for as long as possible (that is, Compute Nodes\nrunning 'normal' Tasks are removed before Compute Nodes running Job Manager\nTasks). When a Job Manager Task fails and needs to be restarted, the system\ntries to schedule it at the highest priority. If there are no idle Compute\nNodes available, the system may terminate one of the running Tasks in the Pool\nand return it to the queue in order to make room for the Job Manager Task to\nrestart. Note that a Job Manager Task in one Job does not have priority over\nTasks in other Jobs. Across Jobs, only Job level priorities are observed. For\nexample, if a Job Manager in a priority 0 Job needs to be restarted, it will\nnot displace Tasks of a priority 1 Job. Batch will retry Tasks when a recovery\noperation is triggered on a Node. Examples of recovery operations include (but\nare not limited to) when an unhealthy Node is rebooted or a Compute Node\ndisappeared due to host failure. Retries due to recovery operations are\nindependent of and are not counted against the maxTaskRetryCount. Even if the\nmaxTaskRetryCount is 0, an internal retry due to a recovery operation may\noccur. Because of this, all Tasks should be idempotent. This means Tasks need\nto tolerate being interrupted and restarted without causing any corruption or\nduplicate data. The best practice for long running Tasks is to use some form of\ncheckpointing.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Job Manager Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters." + }, + "displayName": { + "type": "string", + "description": "The display name of the Job Manager Task. It need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "commandLine": { + "type": "string", + "description": "The command line of the Job Manager Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettings", + "description": "The settings for the container under which the Job Manager Task runs. If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. Files listed under this element are located in the Task's working directory. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "outputFiles": { + "type": "array", + "description": "A list of files that the Batch service will upload from the Compute Node after running the command line. For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed.", + "items": { + "$ref": "#/definitions/OutputFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the Job Manager Task.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "constraints": { + "$ref": "#/definitions/BatchTaskConstraints", + "description": "Constraints that apply to the Job Manager Task." + }, + "requiredSlots": { + "type": "integer", + "format": "int32", + "description": "The number of scheduling slots that the Task requires to run. The default is 1. A Task can only be scheduled to run on a compute node if the node has enough free scheduling slots available. For multi-instance Tasks, this property is not supported and must not be specified." + }, + "killJobOnCompletion": { + "type": "boolean", + "description": "Whether completion of the Job Manager Task signifies completion of the entire Job. If true, when the Job Manager Task completes, the Batch service marks the Job as complete. If any Tasks are still running at this time (other than Job Release), those Tasks are terminated. If false, the completion of the Job Manager Task does not affect the Job status. In this case, you should either use the onAllTasksComplete attribute to terminate the Job, or have a client or user terminate the Job explicitly. An example of this is if the Job Manager creates a set of Tasks but then takes no further role in their execution. The default value is true. If you are using the onAllTasksComplete and onTaskFailure attributes to control Job lifetime, and using the Job Manager Task only to create the Tasks for the Job (not to monitor progress), then it is important to set killJobOnCompletion to false." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the Job Manager Task runs. If omitted, the Task runs as a non-administrative user unique to the Task." + }, + "runExclusive": { + "type": "boolean", + "description": "Whether the Job Manager Task requires exclusive use of the Compute Node where it runs. If true, no other Tasks will run on the same Node for as long as the Job Manager is running. If false, other Tasks can run simultaneously with the Job Manager on a Compute Node. The Job Manager Task counts normally against the Compute Node's concurrent Task limit, so this is only relevant if the Compute Node allows multiple concurrent Tasks. The default value is true." + }, + "applicationPackageReferences": { + "type": "array", + "description": "A list of Application Packages that the Batch service will deploy to the\nCompute Node before running the command line.Application Packages are\ndownloaded and deployed to a shared directory, not the Task working\ndirectory. Therefore, if a referenced Application Package is already\non the Compute Node, and is up to date, then it is not re-downloaded;\nthe existing copy on the Compute Node is used. If a referenced Application\nPackage cannot be installed, for example because the package has been deleted\nor because download failed, the Task fails.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "x-ms-identifiers": [] + }, + "authenticationTokenSettings": { + "$ref": "#/definitions/AuthenticationTokenSettings", + "description": "The settings for an authentication token that the Task can use to perform Batch service operations. If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job." + }, + "allowLowPriorityNode": { + "type": "boolean", + "description": "Whether the Job Manager Task may run on a Spot/Low-priority Compute Node. The default value is true." + } + }, + "required": [ + "id", + "commandLine" + ] + }, + "BatchJobManagerTaskUpdate": { + "type": "object", + "description": "Specifies details of a Job Manager Task.\nThe Job Manager Task is automatically started when the Job is created. The\nBatch service tries to schedule the Job Manager Task before any other Tasks in\nthe Job. When shrinking a Pool, the Batch service tries to preserve Nodes where\nJob Manager Tasks are running for as long as possible (that is, Compute Nodes\nrunning 'normal' Tasks are removed before Compute Nodes running Job Manager\nTasks). When a Job Manager Task fails and needs to be restarted, the system\ntries to schedule it at the highest priority. If there are no idle Compute\nNodes available, the system may terminate one of the running Tasks in the Pool\nand return it to the queue in order to make room for the Job Manager Task to\nrestart. Note that a Job Manager Task in one Job does not have priority over\nTasks in other Jobs. Across Jobs, only Job level priorities are observed. For\nexample, if a Job Manager in a priority 0 Job needs to be restarted, it will\nnot displace Tasks of a priority 1 Job. Batch will retry Tasks when a recovery\noperation is triggered on a Node. Examples of recovery operations include (but\nare not limited to) when an unhealthy Node is rebooted or a Compute Node\ndisappeared due to host failure. Retries due to recovery operations are\nindependent of and are not counted against the maxTaskRetryCount. Even if the\nmaxTaskRetryCount is 0, an internal retry due to a recovery operation may\noccur. Because of this, all Tasks should be idempotent. This means Tasks need\nto tolerate being interrupted and restarted without causing any corruption or\nduplicate data. The best practice for long running Tasks is to use some form of\ncheckpointing.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Job Manager Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters." + }, + "displayName": { + "type": "string", + "description": "The display name of the Job Manager Task. It need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "commandLine": { + "type": "string", + "description": "The command line of the Job Manager Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettingsUpdate", + "description": "The settings for the container under which the Job Manager Task runs. If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. Files listed under this element are located in the Task's working directory. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "outputFiles": { + "type": "array", + "description": "A list of files that the Batch service will upload from the Compute Node after running the command line. For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed.", + "items": { + "$ref": "#/definitions/OutputFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the Job Manager Task.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "constraints": { + "$ref": "#/definitions/BatchTaskConstraints", + "description": "Constraints that apply to the Job Manager Task." + }, + "requiredSlots": { + "type": "integer", + "format": "int32", + "description": "The number of scheduling slots that the Task requires to run. The default is 1. A Task can only be scheduled to run on a compute node if the node has enough free scheduling slots available. For multi-instance Tasks, this property is not supported and must not be specified." + }, + "killJobOnCompletion": { + "type": "boolean", + "description": "Whether completion of the Job Manager Task signifies completion of the entire Job. If true, when the Job Manager Task completes, the Batch service marks the Job as complete. If any Tasks are still running at this time (other than Job Release), those Tasks are terminated. If false, the completion of the Job Manager Task does not affect the Job status. In this case, you should either use the onAllTasksComplete attribute to terminate the Job, or have a client or user terminate the Job explicitly. An example of this is if the Job Manager creates a set of Tasks but then takes no further role in their execution. The default value is true. If you are using the onAllTasksComplete and onTaskFailure attributes to control Job lifetime, and using the Job Manager Task only to create the Tasks for the Job (not to monitor progress), then it is important to set killJobOnCompletion to false." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the Job Manager Task runs. If omitted, the Task runs as a non-administrative user unique to the Task." + }, + "runExclusive": { + "type": "boolean", + "description": "Whether the Job Manager Task requires exclusive use of the Compute Node where it runs. If true, no other Tasks will run on the same Node for as long as the Job Manager is running. If false, other Tasks can run simultaneously with the Job Manager on a Compute Node. The Job Manager Task counts normally against the Compute Node's concurrent Task limit, so this is only relevant if the Compute Node allows multiple concurrent Tasks. The default value is true." + }, + "applicationPackageReferences": { + "type": "array", + "description": "A list of Application Packages that the Batch service will deploy to the\nCompute Node before running the command line.Application Packages are\ndownloaded and deployed to a shared directory, not the Task working\ndirectory. Therefore, if a referenced Application Package is already\non the Compute Node, and is up to date, then it is not re-downloaded;\nthe existing copy on the Compute Node is used. If a referenced Application\nPackage cannot be installed, for example because the package has been deleted\nor because download failed, the Task fails.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "x-ms-identifiers": [] + }, + "authenticationTokenSettings": { + "$ref": "#/definitions/AuthenticationTokenSettings", + "description": "The settings for an authentication token that the Task can use to perform Batch service operations. If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job." + }, + "allowLowPriorityNode": { + "type": "boolean", + "description": "Whether the Job Manager Task may run on a Spot/Low-priority Compute Node. The default value is true." + } + } + }, + "BatchJobNetworkConfiguration": { + "type": "object", + "description": "The network configuration for the Job.", + "properties": { + "subnetId": { + "type": "string", + "description": "The ARM resource identifier of the virtual network subnet which Compute Nodes running Tasks from the Job will join for the duration of the Task. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes which will run Tasks from the Job. This can be up to the number of Compute Nodes in the Pool. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet so that Azure Batch service can schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication from the Azure Batch service. For Pools created with a Virtual Machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Port 443 is also required to be open for outbound connections for communications to Azure Storage. For more details see: https://docs.microsoft.com/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration." + }, + "skipWithdrawFromVNet": { + "type": "boolean", + "description": "Whether to withdraw Compute Nodes from the virtual network to DNC when the job is terminated or deleted. If true, nodes will remain joined to the virtual network to DNC. If false, nodes will automatically withdraw when the job ends. Defaults to false." + } + }, + "required": [ + "subnetId", + "skipWithdrawFromVNet" + ] + }, + "BatchJobNetworkConfigurationUpdate": { + "type": "object", + "description": "The network configuration for the Job.", + "properties": { + "subnetId": { + "type": "string", + "description": "The ARM resource identifier of the virtual network subnet which Compute Nodes running Tasks from the Job will join for the duration of the Task. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes which will run Tasks from the Job. This can be up to the number of Compute Nodes in the Pool. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet so that Azure Batch service can schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication from the Azure Batch service. For Pools created with a Virtual Machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Port 443 is also required to be open for outbound connections for communications to Azure Storage. For more details see: https://docs.microsoft.com/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration." + }, + "skipWithdrawFromVNet": { + "type": "boolean", + "description": "Whether to withdraw Compute Nodes from the virtual network to DNC when the job is terminated or deleted. If true, nodes will remain joined to the virtual network to DNC. If false, nodes will automatically withdraw when the job ends. Defaults to false." + } + } + }, + "BatchJobPreparationAndReleaseTaskStatus": { + "type": "object", + "description": "The status of the Job Preparation and Job Release Tasks on a Compute Node.", + "properties": { + "poolId": { + "type": "string", + "description": "The ID of the Pool containing the Compute Node to which this entry refers." + }, + "nodeId": { + "type": "string", + "description": "The ID of the Compute Node to which this entry refers." + }, + "nodeUrl": { + "type": "string", + "description": "The URL of the Compute Node to which this entry refers." + }, + "jobPreparationTaskExecutionInfo": { + "$ref": "#/definitions/BatchJobPreparationTaskExecutionInfo", + "description": "Information about the execution status of the Job Preparation Task on this Compute Node." + }, + "jobReleaseTaskExecutionInfo": { + "$ref": "#/definitions/BatchJobReleaseTaskExecutionInfo", + "description": "Information about the execution status of the Job Release Task on this Compute Node. This property is set only if the Job Release Task has run on the Compute Node." + } + } + }, + "BatchJobPreparationAndReleaseTaskStatusListResult": { + "type": "object", + "description": "The result of listing the status of the Job Preparation and Job Release Tasks\nfor a Job.", + "properties": { + "value": { + "type": "array", + "description": "A list of Job Preparation and Job Release Task execution information.", + "items": { + "$ref": "#/definitions/BatchJobPreparationAndReleaseTaskStatus" + }, + "x-ms-identifiers": [] + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchJobPreparationTask": { + "type": "object", + "description": "A Job Preparation Task to run before any Tasks of the Job on any given Compute Node.\nYou can use Job Preparation to prepare a Node to run Tasks for the Job.\nActivities commonly performed in Job Preparation include: Downloading common\nresource files used by all the Tasks in the Job. The Job Preparation Task can\ndownload these common resource files to the shared location on the Node.\n(AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the Node so\nthat all Tasks of that Job can communicate with it. If the Job Preparation Task\nfails (that is, exhausts its retry count before exiting with exit code 0),\nBatch will not run Tasks of this Job on the Node. The Compute Node remains\nineligible to run Tasks of this Job until it is reimaged. The Compute Node\nremains active and can be used for other Jobs. The Job Preparation Task can run\nmultiple times on the same Node. Therefore, you should write the Job\nPreparation Task to handle re-execution. If the Node is rebooted, the Job\nPreparation Task is run again on the Compute Node before scheduling any other\nTask of the Job, if rerunOnNodeRebootAfterSuccess is true or if the Job\nPreparation Task did not previously complete. If the Node is reimaged, the Job\nPreparation Task is run again before scheduling any Task of the Job. Batch will\nretry Tasks when a recovery operation is triggered on a Node. Examples of\nrecovery operations include (but are not limited to) when an unhealthy Node is\nrebooted or a Compute Node disappeared due to host failure. Retries due to\nrecovery operations are independent of and are not counted against the\nmaxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to\na recovery operation may occur. Because of this, all Tasks should be\nidempotent. This means Tasks need to tolerate being interrupted and restarted\nwithout causing any corruption or duplicate data. The best practice for long\nrunning Tasks is to use some form of checkpointing.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Job Preparation Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobpreparation'. No other Task in the Job can have the same ID as the Job Preparation Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobPreparationTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict)." + }, + "commandLine": { + "type": "string", + "description": "The command line of the Job Preparation Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettings", + "description": "The settings for the container under which the Job Preparation Task runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. Files listed under this element are located in the Task's working directory. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the Job Preparation Task.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "constraints": { + "$ref": "#/definitions/BatchTaskConstraints", + "description": "Constraints that apply to the Job Preparation Task." + }, + "waitForSuccess": { + "type": "boolean", + "description": "Whether the Batch service should wait for the Job Preparation Task to complete successfully before scheduling any other Tasks of the Job on the Compute Node. A Job Preparation Task has completed successfully if it exits with exit code 0. If true and the Job Preparation Task fails on a Node, the Batch service retries the Job Preparation Task up to its maximum retry count (as specified in the constraints element). If the Task has still not completed successfully after all retries, then the Batch service will not schedule Tasks of the Job to the Node. The Node remains active and eligible to run Tasks of other Jobs. If false, the Batch service will not wait for the Job Preparation Task to complete. In this case, other Tasks of the Job can start executing on the Compute Node while the Job Preparation Task is still running; and even if the Job Preparation Task fails, new Tasks will continue to be scheduled on the Compute Node. The default value is true." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the Job Preparation Task runs. If omitted, the Task runs as a non-administrative user unique to the Task on Windows Compute Nodes, or a non-administrative user unique to the Pool on Linux Compute Nodes." + }, + "rerunOnNodeRebootAfterSuccess": { + "type": "boolean", + "description": "Whether the Batch service should rerun the Job Preparation Task after a Compute Node reboots. The Job Preparation Task is always rerun if a Compute Node is reimaged, or if the Job Preparation Task did not complete (e.g. because the reboot occurred while the Task was running). Therefore, you should always write a Job Preparation Task to be idempotent and to behave correctly if run multiple times. The default value is true." + } + }, + "required": [ + "commandLine" + ] + }, + "BatchJobPreparationTaskExecutionInfo": { + "type": "object", + "description": "Contains information about the execution of a Job Preparation Task on a Compute\nNode.", + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Task started running. If the Task has been restarted or retried, this is the most recent time at which the Task started running." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Job Preparation Task completed. This property is set only if the Task is in the Completed state." + }, + "state": { + "$ref": "#/definitions/BatchJobPreparationTaskState", + "description": "The current state of the Job Preparation Task on the Compute Node." + }, + "taskRootDirectory": { + "type": "string", + "description": "The root directory of the Job Preparation Task on the Compute Node. You can use this path to retrieve files created by the Task, such as log files." + }, + "taskRootDirectoryUrl": { + "type": "string", + "description": "The URL to the root directory of the Job Preparation Task on the Compute Node." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "description": "The exit code of the program specified on the Task command line. This parameter is returned only if the Task is in the completed state. The exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. Note that the exit code may also be generated by the Compute Node operating system, such as when a process is forcibly terminated." + }, + "containerInfo": { + "$ref": "#/definitions/BatchTaskContainerExecutionInfo", + "description": "Information about the container under which the Task is executing. This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/BatchTaskFailureInfo", + "description": "Information describing the Task failure, if any. This property is set only if the Task is in the completed state and encountered a failure." + }, + "retryCount": { + "type": "integer", + "format": "int32", + "description": "The number of times the Task has been retried by the Batch service. Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints. Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints." + }, + "lastRetryTime": { + "type": "string", + "format": "date-time", + "description": "The most recent time at which a retry of the Job Preparation Task started running. This property is set only if the Task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the Task has been restarted for reasons other than retry; for example, if the Compute Node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." + }, + "result": { + "$ref": "#/definitions/BatchTaskExecutionResult", + "description": "The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "required": [ + "startTime", + "state", + "retryCount" + ] + }, + "BatchJobPreparationTaskState": { + "type": "string", + "description": "BatchJobPreparationTaskState enums", + "enum": [ + "running", + "completed" + ], + "x-ms-enum": { + "name": "BatchJobPreparationTaskState", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "running", + "description": "The Task is currently running (including retrying)." + }, + { + "name": "Completed", + "value": "completed", + "description": "The Task has exited with exit code 0, or the Task has exhausted its retry limit, or the Batch service was unable to start the Task due to Task preparation errors (such as resource file download failures)." + } + ] + } + }, + "BatchJobPreparationTaskUpdate": { + "type": "object", + "description": "A Job Preparation Task to run before any Tasks of the Job on any given Compute Node.\nYou can use Job Preparation to prepare a Node to run Tasks for the Job.\nActivities commonly performed in Job Preparation include: Downloading common\nresource files used by all the Tasks in the Job. The Job Preparation Task can\ndownload these common resource files to the shared location on the Node.\n(AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the Node so\nthat all Tasks of that Job can communicate with it. If the Job Preparation Task\nfails (that is, exhausts its retry count before exiting with exit code 0),\nBatch will not run Tasks of this Job on the Node. The Compute Node remains\nineligible to run Tasks of this Job until it is reimaged. The Compute Node\nremains active and can be used for other Jobs. The Job Preparation Task can run\nmultiple times on the same Node. Therefore, you should write the Job\nPreparation Task to handle re-execution. If the Node is rebooted, the Job\nPreparation Task is run again on the Compute Node before scheduling any other\nTask of the Job, if rerunOnNodeRebootAfterSuccess is true or if the Job\nPreparation Task did not previously complete. If the Node is reimaged, the Job\nPreparation Task is run again before scheduling any Task of the Job. Batch will\nretry Tasks when a recovery operation is triggered on a Node. Examples of\nrecovery operations include (but are not limited to) when an unhealthy Node is\nrebooted or a Compute Node disappeared due to host failure. Retries due to\nrecovery operations are independent of and are not counted against the\nmaxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to\na recovery operation may occur. Because of this, all Tasks should be\nidempotent. This means Tasks need to tolerate being interrupted and restarted\nwithout causing any corruption or duplicate data. The best practice for long\nrunning Tasks is to use some form of checkpointing.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Job Preparation Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobpreparation'. No other Task in the Job can have the same ID as the Job Preparation Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobPreparationTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict)." + }, + "commandLine": { + "type": "string", + "description": "The command line of the Job Preparation Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettingsUpdate", + "description": "The settings for the container under which the Job Preparation Task runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. Files listed under this element are located in the Task's working directory. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the Job Preparation Task.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "constraints": { + "$ref": "#/definitions/BatchTaskConstraints", + "description": "Constraints that apply to the Job Preparation Task." + }, + "waitForSuccess": { + "type": "boolean", + "description": "Whether the Batch service should wait for the Job Preparation Task to complete successfully before scheduling any other Tasks of the Job on the Compute Node. A Job Preparation Task has completed successfully if it exits with exit code 0. If true and the Job Preparation Task fails on a Node, the Batch service retries the Job Preparation Task up to its maximum retry count (as specified in the constraints element). If the Task has still not completed successfully after all retries, then the Batch service will not schedule Tasks of the Job to the Node. The Node remains active and eligible to run Tasks of other Jobs. If false, the Batch service will not wait for the Job Preparation Task to complete. In this case, other Tasks of the Job can start executing on the Compute Node while the Job Preparation Task is still running; and even if the Job Preparation Task fails, new Tasks will continue to be scheduled on the Compute Node. The default value is true." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the Job Preparation Task runs. If omitted, the Task runs as a non-administrative user unique to the Task on Windows Compute Nodes, or a non-administrative user unique to the Pool on Linux Compute Nodes." + }, + "rerunOnNodeRebootAfterSuccess": { + "type": "boolean", + "description": "Whether the Batch service should rerun the Job Preparation Task after a Compute Node reboots. The Job Preparation Task is always rerun if a Compute Node is reimaged, or if the Job Preparation Task did not complete (e.g. because the reboot occurred while the Task was running). Therefore, you should always write a Job Preparation Task to be idempotent and to behave correctly if run multiple times. The default value is true." + } + } + }, + "BatchJobReleaseTask": { + "type": "object", + "description": "A Job Release Task to run on Job completion on any Compute Node where the Job has run.\nThe Job Release Task runs when the Job ends, because of one of the following:\nThe user calls the Terminate Job API, or the Delete Job API while the Job is\nstill active, the Job's maximum wall clock time constraint is reached, and the\nJob is still active, or the Job's Job Manager Task completed, and the Job is\nconfigured to terminate when the Job Manager completes. The Job Release Task\nruns on each Node where Tasks of the Job have run and the Job Preparation Task\nran and completed. If you reimage a Node after it has run the Job Preparation\nTask, and the Job ends without any further Tasks of the Job running on that\nNode (and hence the Job Preparation Task does not re-run), then the Job Release\nTask does not run on that Compute Node. If a Node reboots while the Job Release\nTask is still running, the Job Release Task runs again when the Compute Node\nstarts up. The Job is not marked as complete until all Job Release Tasks have\ncompleted. The Job Release Task runs in the background. It does not occupy a\nscheduling slot; that is, it does not count towards the taskSlotsPerNode limit\nspecified on the Pool.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Job Release Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobrelease'. No other Task in the Job can have the same ID as the Job Release Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobReleaseTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict)." + }, + "commandLine": { + "type": "string", + "description": "The command line of the Job Release Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettings", + "description": "The settings for the container under which the Job Release Task runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers. Files listed under this element are located in the Task's working directory.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the Job Release Task.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "maxWallClockTime": { + "type": "string", + "format": "duration", + "description": "The maximum elapsed time that the Job Release Task may run on a given Compute Node, measured from the time the Task starts. If the Task does not complete within the time limit, the Batch service terminates it. The default value is 15 minutes. You may not specify a timeout longer than 15 minutes. If you do, the Batch service rejects it with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "retentionTime": { + "type": "string", + "format": "duration", + "description": "The minimum time to retain the Task directory for the Job Release Task on the Compute Node. After this time, the Batch service may delete the Task directory and all its contents. The default is 7 days, i.e. the Task directory will be retained for 7 days unless the Compute Node is removed or the Job is deleted." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the Job Release Task runs. If omitted, the Task runs as a non-administrative user unique to the Task." + } + }, + "required": [ + "commandLine" + ] + }, + "BatchJobReleaseTaskExecutionInfo": { + "type": "object", + "description": "Contains information about the execution of a Job Release Task on a Compute\nNode.", + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Task started running. If the Task has been restarted or retried, this is the most recent time at which the Task started running." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Job Release Task completed. This property is set only if the Task is in the Completed state." + }, + "state": { + "$ref": "#/definitions/BatchJobReleaseTaskState", + "description": "The current state of the Job Release Task on the Compute Node." + }, + "taskRootDirectory": { + "type": "string", + "description": "The root directory of the Job Release Task on the Compute Node. You can use this path to retrieve files created by the Task, such as log files." + }, + "taskRootDirectoryUrl": { + "type": "string", + "description": "The URL to the root directory of the Job Release Task on the Compute Node." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "description": "The exit code of the program specified on the Task command line. This parameter is returned only if the Task is in the completed state. The exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. Note that the exit code may also be generated by the Compute Node operating system, such as when a process is forcibly terminated." + }, + "containerInfo": { + "$ref": "#/definitions/BatchTaskContainerExecutionInfo", + "description": "Information about the container under which the Task is executing. This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/BatchTaskFailureInfo", + "description": "Information describing the Task failure, if any. This property is set only if the Task is in the completed state and encountered a failure." + }, + "result": { + "$ref": "#/definitions/BatchTaskExecutionResult", + "description": "The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "required": [ + "startTime", + "state" + ] + }, + "BatchJobReleaseTaskState": { + "type": "string", + "description": "BatchJobReleaseTaskState enums", + "enum": [ + "running", + "completed" + ], + "x-ms-enum": { + "name": "BatchJobReleaseTaskState", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "running", + "description": "The Task is currently running (including retrying)." + }, + { + "name": "Completed", + "value": "completed", + "description": "The Task has exited with exit code 0, or the Task has exhausted its retry limit, or the Batch service was unable to start the Task due to Task preparation errors (such as resource file download failures)." + } + ] + } + }, + "BatchJobReleaseTaskUpdate": { + "type": "object", + "description": "A Job Release Task to run on Job completion on any Compute Node where the Job has run.\nThe Job Release Task runs when the Job ends, because of one of the following:\nThe user calls the Terminate Job API, or the Delete Job API while the Job is\nstill active, the Job's maximum wall clock time constraint is reached, and the\nJob is still active, or the Job's Job Manager Task completed, and the Job is\nconfigured to terminate when the Job Manager completes. The Job Release Task\nruns on each Node where Tasks of the Job have run and the Job Preparation Task\nran and completed. If you reimage a Node after it has run the Job Preparation\nTask, and the Job ends without any further Tasks of the Job running on that\nNode (and hence the Job Preparation Task does not re-run), then the Job Release\nTask does not run on that Compute Node. If a Node reboots while the Job Release\nTask is still running, the Job Release Task runs again when the Compute Node\nstarts up. The Job is not marked as complete until all Job Release Tasks have\ncompleted. The Job Release Task runs in the background. It does not occupy a\nscheduling slot; that is, it does not count towards the taskSlotsPerNode limit\nspecified on the Pool.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Job Release Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobrelease'. No other Task in the Job can have the same ID as the Job Release Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobReleaseTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict)." + }, + "commandLine": { + "type": "string", + "description": "The command line of the Job Release Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettingsUpdate", + "description": "The settings for the container under which the Job Release Task runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers. Files listed under this element are located in the Task's working directory.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the Job Release Task.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "maxWallClockTime": { + "type": "string", + "format": "duration", + "description": "The maximum elapsed time that the Job Release Task may run on a given Compute Node, measured from the time the Task starts. If the Task does not complete within the time limit, the Batch service terminates it. The default value is 15 minutes. You may not specify a timeout longer than 15 minutes. If you do, the Batch service rejects it with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "retentionTime": { + "type": "string", + "format": "duration", + "description": "The minimum time to retain the Task directory for the Job Release Task on the Compute Node. After this time, the Batch service may delete the Task directory and all its contents. The default is 7 days, i.e. the Task directory will be retained for 7 days unless the Compute Node is removed or the Job is deleted." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the Job Release Task runs. If omitted, the Task runs as a non-administrative user unique to the Task." + } + } + }, + "BatchJobSchedule": { + "type": "object", + "description": "A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a\nspecification used to create each Job.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the schedule within the Account.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the schedule.", + "readOnly": true + }, + "url": { + "type": "string", + "description": "The URL of the Job Schedule.", + "readOnly": true + }, + "eTag": { + "type": "string", + "description": "The ETag of the Job Schedule. This is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.", + "readOnly": true + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The last modified time of the Job Schedule. This is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state.", + "readOnly": true + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "The creation time of the Job Schedule.", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/BatchJobScheduleState", + "description": "The current state of the Job Schedule.", + "readOnly": true + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Job Schedule entered the current state.", + "readOnly": true + }, + "previousState": { + "$ref": "#/definitions/BatchJobScheduleState", + "description": "The previous state of the Job Schedule. This property is not present if the Job Schedule is in its initial active state.", + "readOnly": true + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Job Schedule entered its previous state. This property is not present if the Job Schedule is in its initial active state.", + "readOnly": true + }, + "schedule": { + "$ref": "#/definitions/BatchJobScheduleConfiguration", + "description": "The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time." + }, + "jobSpecification": { + "$ref": "#/definitions/BatchJobSpecification", + "description": "The details of the Jobs to be created on this schedule." + }, + "executionInfo": { + "$ref": "#/definitions/BatchJobScheduleExecutionInfo", + "description": "Information about Jobs that have been and will be run under this schedule.", + "readOnly": true + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + }, + "stats": { + "$ref": "#/definitions/BatchJobScheduleStatistics", + "description": "The lifetime resource usage statistics for the Job Schedule. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", + "readOnly": true + } + }, + "required": [ + "jobSpecification" + ] + }, + "BatchJobScheduleConfiguration": { + "type": "object", + "description": "The schedule according to which Jobs will be created. All times are fixed\nrespective to UTC and are not impacted by daylight saving time.", + "properties": { + "doNotRunUntil": { + "type": "string", + "format": "date-time", + "description": "The earliest time at which any Job may be created under this Job Schedule. If you do not specify a doNotRunUntil time, the schedule becomes ready to create Jobs immediately." + }, + "doNotRunAfter": { + "type": "string", + "format": "date-time", + "description": "A time after which no Job will be created under this Job Schedule. The schedule will move to the completed state as soon as this deadline is past and there is no active Job under this Job Schedule. If you do not specify a doNotRunAfter time, and you are creating a recurring Job Schedule, the Job Schedule will remain active until you explicitly terminate it." + }, + "startWindow": { + "type": "string", + "format": "duration", + "description": "The time interval, starting from the time at which the schedule indicates a Job should be created, within which a Job must be created. If a Job is not created within the startWindow interval, then the 'opportunity' is lost; no Job will be created until the next recurrence of the schedule. If the schedule is recurring, and the startWindow is longer than the recurrence interval, then this is equivalent to an infinite startWindow, because the Job that is 'due' in one recurrenceInterval is not carried forward into the next recurrence interval. The default is infinite. The minimum value is 1 minute. If you specify a lower value, the Batch service rejects the schedule with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "recurrenceInterval": { + "type": "string", + "format": "duration", + "description": "The time interval between the start times of two successive Jobs under the Job Schedule. A Job Schedule can have at most one active Job under it at any given time. Because a Job Schedule can have at most one active Job under it at any given time, if it is time to create a new Job under a Job Schedule, but the previous Job is still running, the Batch service will not create the new Job until the previous Job finishes. If the previous Job does not finish within the startWindow period of the new recurrenceInterval, then no new Job will be scheduled for that interval. For recurring Jobs, you should normally specify a jobManagerTask in the jobSpecification. If you do not use jobManagerTask, you will need an external process to monitor when Jobs are created, add Tasks to the Jobs and terminate the Jobs ready for the next recurrence. The default is that the schedule does not recur: one Job is created, within the startWindow after the doNotRunUntil time, and the schedule is complete as soon as that Job finishes. The minimum value is 1 minute. If you specify a lower value, the Batch service rejects the schedule with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + } + } + }, + "BatchJobScheduleCreateContent": { + "type": "object", + "description": "Parameters for creating an Azure Batch Job Schedule", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the schedule within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case)." + }, + "displayName": { + "type": "string", + "description": "The display name for the schedule. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "schedule": { + "$ref": "#/definitions/BatchJobScheduleConfiguration", + "description": "The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time." + }, + "jobSpecification": { + "$ref": "#/definitions/BatchJobSpecification", + "description": "The details of the Jobs to be created on this schedule." + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "id", + "schedule", + "jobSpecification" + ] + }, + "BatchJobScheduleExecutionInfo": { + "type": "object", + "description": "Contains information about Jobs that have been and will be run under a Job\nSchedule.", + "properties": { + "nextRunTime": { + "type": "string", + "format": "date-time", + "description": "The next time at which a Job will be created under this schedule. This property is meaningful only if the schedule is in the active state when the time comes around. For example, if the schedule is disabled, no Job will be created at nextRunTime unless the Job is enabled before then." + }, + "recentJob": { + "$ref": "#/definitions/RecentBatchJob", + "description": "Information about the most recent Job under the Job Schedule. This property is present only if the at least one Job has run under the schedule." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the schedule ended. This property is set only if the Job Schedule is in the completed state." + } + } + }, + "BatchJobScheduleListResult": { + "type": "object", + "description": "The result of listing the Job Schedules in an Account.", + "properties": { + "value": { + "type": "array", + "description": "The list of Job Schedules.", + "items": { + "$ref": "#/definitions/BatchJobSchedule" + } + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchJobScheduleState": { + "type": "string", + "description": "BatchJobScheduleState enums", + "enum": [ + "active", + "completed", + "disabled", + "terminating", + "deleting" + ], + "x-ms-enum": { + "name": "BatchJobScheduleState", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "active", + "description": "The Job Schedule is active and will create Jobs as per its schedule." + }, + { + "name": "Completed", + "value": "completed", + "description": "The Job Schedule has terminated, either by reaching its end time or by the user terminating it explicitly." + }, + { + "name": "Disabled", + "value": "disabled", + "description": "The user has disabled the Job Schedule. The scheduler will not initiate any new Jobs will on this schedule, but any existing active Job will continue to run." + }, + { + "name": "Terminating", + "value": "terminating", + "description": "The Job Schedule has no more work to do, or has been explicitly terminated by the user, but the termination operation is still in progress. The scheduler will not initiate any new Jobs for this Job Schedule, nor is any existing Job active." + }, + { + "name": "Deleting", + "value": "deleting", + "description": "The user has requested that the Job Schedule be deleted, but the delete operation is still in progress. The scheduler will not initiate any new Jobs for this Job Schedule, and will delete any existing Jobs and Tasks under the Job Schedule, including any active Job. The Job Schedule will be deleted when all Jobs and Tasks under the Job Schedule have been deleted." + } + ] + } + }, + "BatchJobScheduleStatistics": { + "type": "object", + "description": "Resource usage statistics for a Job Schedule.", + "properties": { + "url": { + "type": "string", + "description": "The URL of the statistics." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "userCPUTime": { + "type": "string", + "format": "duration", + "description": "The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule.", + "x-ms-client-name": "userCpuTime" + }, + "kernelCPUTime": { + "type": "string", + "format": "duration", + "description": "The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule.", + "x-ms-client-name": "kernelCpuTime" + }, + "wallClockTime": { + "type": "string", + "format": "duration", + "description": "The total wall clock time of all the Tasks in all the Jobs created under the schedule. The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If a Task was retried, this includes the wall clock time of all the Task retries." + }, + "readIOps": { + "type": "integer", + "format": "int64", + "description": "The total number of disk read operations made by all Tasks in all Jobs created under the schedule." + }, + "writeIOps": { + "type": "integer", + "format": "int64", + "description": "The total number of disk write operations made by all Tasks in all Jobs created under the schedule." + }, + "readIOGiB": { + "type": "number", + "format": "float", + "description": "The total gibibytes read from disk by all Tasks in all Jobs created under the schedule." + }, + "writeIOGiB": { + "type": "number", + "format": "float", + "description": "The total gibibytes written to disk by all Tasks in all Jobs created under the schedule." + }, + "numSucceededTasks": { + "type": "integer", + "format": "int64", + "description": "The total number of Tasks successfully completed during the given time range in Jobs created under the schedule. A Task completes successfully if it returns exit code 0." + }, + "numFailedTasks": { + "type": "integer", + "format": "int64", + "description": "The total number of Tasks that failed during the given time range in Jobs created under the schedule. A Task fails if it exhausts its maximum retry count without returning exit code 0." + }, + "numTaskRetries": { + "type": "integer", + "format": "int64", + "description": "The total number of retries during the given time range on all Tasks in all Jobs created under the schedule." + }, + "waitTime": { + "type": "string", + "format": "duration", + "description": "The total wait time of all Tasks in all Jobs created under the schedule. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.). This value is only reported in the Account lifetime statistics; it is not included in the Job statistics." + } + }, + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ] + }, + "BatchJobScheduleUpdateContent": { + "type": "object", + "description": "Parameters for updating an Azure Batch Job Schedule.", + "properties": { + "schedule": { + "$ref": "#/definitions/BatchJobScheduleConfiguration", + "description": "The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time. If you do not specify this element, the existing schedule is left unchanged." + }, + "jobSpecification": { + "$ref": "#/definitions/BatchJobSpecificationUpdate", + "description": "The details of the Jobs to be created on this schedule. Updates affect only Jobs that are started after the update has taken place. Any currently active Job continues with the older specification." + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Job Schedule as metadata. If you do not specify this element, existing metadata is left unchanged.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + } + } + }, + "BatchJobSchedulingError": { + "type": "object", + "description": "An error encountered by the Batch service when scheduling a Job.", + "properties": { + "category": { + "$ref": "#/definitions/ErrorCategory", + "description": "The category of the Job scheduling error." + }, + "code": { + "type": "string", + "description": "An identifier for the Job scheduling error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the Job scheduling error, intended to be suitable for display in a user interface." + }, + "details": { + "type": "array", + "description": "A list of additional error details related to the scheduling error.", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "category" + ] + }, + "BatchJobSpecification": { + "type": "object", + "description": "Specifies details of the Jobs to be created on a schedule.", + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority of Jobs created under this schedule. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. This priority is used as the default for all Jobs under the Job Schedule. You can update a Job's priority after it has been created using by using the update Job API." + }, + "allowTaskPreemption": { + "type": "boolean", + "description": "Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API." + }, + "maxParallelTasks": { + "type": "integer", + "format": "int32", + "description": "The maximum number of tasks that can be executed in parallel for the job. The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API." + }, + "displayName": { + "type": "string", + "description": "The display name for Jobs created under this schedule. The name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "usesTaskDependencies": { + "type": "boolean", + "description": "Whether Tasks in the Job can define dependencies on each other. The default is false." + }, + "onAllTasksComplete": { + "$ref": "#/definitions/OnAllBatchTasksComplete", + "description": "The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction." + }, + "onTaskFailure": { + "$ref": "#/definitions/OnBatchTaskFailure", + "description": "The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction." + }, + "networkConfiguration": { + "$ref": "#/definitions/BatchJobNetworkConfiguration", + "description": "The network configuration for the Job." + }, + "constraints": { + "$ref": "#/definitions/BatchJobConstraints", + "description": "The execution constraints for Jobs created under this schedule." + }, + "jobManagerTask": { + "$ref": "#/definitions/BatchJobManagerTask", + "description": "The details of a Job Manager Task to be launched when a Job is started under this schedule. If the Job does not specify a Job Manager Task, the user must explicitly add Tasks to the Job using the Task API. If the Job does specify a Job Manager Task, the Batch service creates the Job Manager Task when the Job is created, and will try to schedule the Job Manager Task before scheduling other Tasks in the Job." + }, + "jobPreparationTask": { + "$ref": "#/definitions/BatchJobPreparationTask", + "description": "The Job Preparation Task for Jobs created under this schedule. If a Job has a Job Preparation Task, the Batch service will run the Job Preparation Task on a Node before starting any Tasks of that Job on that Compute Node." + }, + "jobReleaseTask": { + "$ref": "#/definitions/BatchJobReleaseTask", + "description": "The Job Release Task for Jobs created under this schedule. The primary purpose of the Job Release Task is to undo changes to Nodes made by the Job Preparation Task. Example activities include deleting local files, or shutting down services that were started as part of Job preparation. A Job Release Task cannot be specified without also specifying a Job Preparation Task for the Job. The Batch service runs the Job Release Task on the Compute Nodes that have run the Job Preparation Task." + }, + "commonEnvironmentSettings": { + "type": "array", + "description": "A list of common environment variable settings. These environment variables are set for all Tasks in Jobs created under this schedule (including the Job Manager, Job Preparation and Job Release Tasks). Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "poolInfo": { + "$ref": "#/definitions/BatchPoolInfo", + "description": "The Pool on which the Batch service runs the Tasks of Jobs created under this schedule." + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with each Job created under this schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "poolInfo" + ] + }, + "BatchJobSpecificationUpdate": { + "type": "object", + "description": "Specifies details of the Jobs to be created on a schedule.", + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority of Jobs created under this schedule. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. This priority is used as the default for all Jobs under the Job Schedule. You can update a Job's priority after it has been created using by using the update Job API." + }, + "allowTaskPreemption": { + "type": "boolean", + "description": "Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API." + }, + "maxParallelTasks": { + "type": "integer", + "format": "int32", + "description": "The maximum number of tasks that can be executed in parallel for the job. The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API." + }, + "displayName": { + "type": "string", + "description": "The display name for Jobs created under this schedule. The name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "usesTaskDependencies": { + "type": "boolean", + "description": "Whether Tasks in the Job can define dependencies on each other. The default is false." + }, + "onAllTasksComplete": { + "$ref": "#/definitions/OnAllBatchTasksComplete", + "description": "The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction." + }, + "onTaskFailure": { + "$ref": "#/definitions/OnBatchTaskFailure", + "description": "The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction." + }, + "networkConfiguration": { + "$ref": "#/definitions/BatchJobNetworkConfigurationUpdate", + "description": "The network configuration for the Job." + }, + "constraints": { + "$ref": "#/definitions/BatchJobConstraints", + "description": "The execution constraints for Jobs created under this schedule." + }, + "jobManagerTask": { + "$ref": "#/definitions/BatchJobManagerTaskUpdate", + "description": "The details of a Job Manager Task to be launched when a Job is started under this schedule. If the Job does not specify a Job Manager Task, the user must explicitly add Tasks to the Job using the Task API. If the Job does specify a Job Manager Task, the Batch service creates the Job Manager Task when the Job is created, and will try to schedule the Job Manager Task before scheduling other Tasks in the Job." + }, + "jobPreparationTask": { + "$ref": "#/definitions/BatchJobPreparationTaskUpdate", + "description": "The Job Preparation Task for Jobs created under this schedule. If a Job has a Job Preparation Task, the Batch service will run the Job Preparation Task on a Node before starting any Tasks of that Job on that Compute Node." + }, + "jobReleaseTask": { + "$ref": "#/definitions/BatchJobReleaseTaskUpdate", + "description": "The Job Release Task for Jobs created under this schedule. The primary purpose of the Job Release Task is to undo changes to Nodes made by the Job Preparation Task. Example activities include deleting local files, or shutting down services that were started as part of Job preparation. A Job Release Task cannot be specified without also specifying a Job Preparation Task for the Job. The Batch service runs the Job Release Task on the Compute Nodes that have run the Job Preparation Task." + }, + "commonEnvironmentSettings": { + "type": "array", + "description": "A list of common environment variable settings. These environment variables are set for all Tasks in Jobs created under this schedule (including the Job Manager, Job Preparation and Job Release Tasks). Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "poolInfo": { + "$ref": "#/definitions/BatchPoolInfoUpdate", + "description": "The Pool on which the Batch service runs the Tasks of Jobs created under this schedule." + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with each Job created under this schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + } + } + }, + "BatchJobState": { + "type": "string", + "description": "BatchJobState enums", + "enum": [ + "active", + "disabling", + "disabled", + "enabling", + "terminating", + "completed", + "deleting" + ], + "x-ms-enum": { + "name": "BatchJobState", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "active", + "description": "The Job is available to have Tasks scheduled." + }, + { + "name": "Disabling", + "value": "disabling", + "description": "A user has requested that the Job be disabled, but the disable operation is still in progress (for example, waiting for Tasks to terminate)." + }, + { + "name": "Disabled", + "value": "disabled", + "description": "A user has disabled the Job. No Tasks are running, and no new Tasks will be scheduled." + }, + { + "name": "Enabling", + "value": "enabling", + "description": "A user has requested that the Job be enabled, but the enable operation is still in progress." + }, + { + "name": "Terminating", + "value": "terminating", + "description": "The Job is about to complete, either because a Job Manager Task has completed or because the user has terminated the Job, but the terminate operation is still in progress (for example, because Job Release Tasks are running)." + }, + { + "name": "Completed", + "value": "completed", + "description": "All Tasks have terminated, and the system will not accept any more Tasks or any further changes to the Job." + }, + { + "name": "Deleting", + "value": "deleting", + "description": "A user has requested that the Job be deleted, but the delete operation is still in progress (for example, because the system is still terminating running Tasks)." + } + ] + } + }, + "BatchJobStatistics": { + "type": "object", + "description": "Resource usage statistics for a Job.", + "properties": { + "url": { + "type": "string", + "description": "The URL of the statistics." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "userCPUTime": { + "type": "string", + "format": "duration", + "description": "The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in the Job.", + "x-ms-client-name": "userCpuTime" + }, + "kernelCPUTime": { + "type": "string", + "format": "duration", + "description": "The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in the Job.", + "x-ms-client-name": "kernelCpuTime" + }, + "wallClockTime": { + "type": "string", + "format": "duration", + "description": "The total wall clock time of all Tasks in the Job. The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If a Task was retried, this includes the wall clock time of all the Task retries." + }, + "readIOps": { + "type": "integer", + "format": "int64", + "description": "The total number of disk read operations made by all Tasks in the Job." + }, + "writeIOps": { + "type": "integer", + "format": "int64", + "description": "The total number of disk write operations made by all Tasks in the Job." + }, + "readIOGiB": { + "type": "number", + "format": "float", + "description": "The total amount of data in GiB read from disk by all Tasks in the Job." + }, + "writeIOGiB": { + "type": "number", + "format": "float", + "description": "The total amount of data in GiB written to disk by all Tasks in the Job." + }, + "numSucceededTasks": { + "type": "integer", + "format": "int64", + "description": "The total number of Tasks successfully completed in the Job during the given time range. A Task completes successfully if it returns exit code 0." + }, + "numFailedTasks": { + "type": "integer", + "format": "int64", + "description": "The total number of Tasks in the Job that failed during the given time range. A Task fails if it exhausts its maximum retry count without returning exit code 0." + }, + "numTaskRetries": { + "type": "integer", + "format": "int64", + "description": "The total number of retries on all the Tasks in the Job during the given time range." + }, + "waitTime": { + "type": "string", + "format": "duration", + "description": "The total wait time of all Tasks in the Job. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.) This value is only reported in the Account lifetime statistics; it is not included in the Job statistics." + } + }, + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ] + }, + "BatchJobTerminateContent": { + "type": "object", + "description": "Parameters for terminating an Azure Batch Job.", + "properties": { + "terminateReason": { + "type": "string", + "description": "The text you want to appear as the Job's TerminationReason. The default is 'UserTerminate'.", + "x-ms-client-name": "terminationReason" + } + } + }, + "BatchJobUpdateContent": { + "type": "object", + "description": "Parameters for updating an Azure Batch Job.", + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If omitted, the priority of the Job is left unchanged." + }, + "allowTaskPreemption": { + "type": "boolean", + "description": "Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API." + }, + "maxParallelTasks": { + "type": "integer", + "format": "int32", + "description": "The maximum number of tasks that can be executed in parallel for the job. The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API." + }, + "constraints": { + "$ref": "#/definitions/BatchJobConstraints", + "description": "The execution constraints for the Job. If omitted, the existing execution constraints are left unchanged." + }, + "poolInfo": { + "$ref": "#/definitions/BatchPoolInfoUpdate", + "description": "The Pool on which the Batch service runs the Job's Tasks. You may change the Pool for a Job only when the Job is disabled. The Patch Job call will fail if you include the poolInfo element and the Job is not disabled. If you specify an autoPoolSpecification in the poolInfo, only the keepAlive property of the autoPoolSpecification can be updated, and then only if the autoPoolSpecification has a poolLifetimeOption of Job (other job properties can be updated as normal). If omitted, the Job continues to run on its current Pool." + }, + "onAllTasksComplete": { + "$ref": "#/definitions/OnAllBatchTasksComplete", + "description": "The action the Batch service should take when all Tasks in the Job are in the completed state. If omitted, the completion behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Job as metadata. If omitted, the existing Job metadata is left unchanged.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + }, + "networkConfiguration": { + "$ref": "#/definitions/BatchJobNetworkConfigurationUpdate", + "description": "The network configuration for the Job." + } + } + }, + "BatchNode": { + "type": "object", + "description": "A Compute Node in the Batch service.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the Compute Node. Every Compute Node that is added to a Pool is assigned a unique ID. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the ID is reclaimed and could be reused for new Compute Nodes." + }, + "url": { + "type": "string", + "description": "The URL of the Compute Node." + }, + "state": { + "$ref": "#/definitions/BatchNodeState", + "description": "The current state of the Compute Node. The Spot/Low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available." + }, + "schedulingState": { + "$ref": "#/definitions/SchedulingState", + "description": "Whether the Compute Node is available for Task scheduling." + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Compute Node entered its current state." + }, + "lastBootTime": { + "type": "string", + "format": "date-time", + "description": "The last time at which the Compute Node was started. This property may not be present if the Compute Node state is unusable." + }, + "allocationTime": { + "type": "string", + "format": "date-time", + "description": "The time at which this Compute Node was allocated to the Pool. This is the time when the Compute Node was initially allocated and doesn't change once set. It is not updated when the Compute Node is service healed or preempted." + }, + "ipAddress": { + "type": "string", + "description": "The IP address that other Nodes can use to communicate with this Compute Node. Every Compute Node that is added to a Pool is assigned a unique IP address. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the IP address is reclaimed and could be reused for new Compute Nodes." + }, + "affinityId": { + "type": "string", + "description": "An identifier which can be passed when adding a Task to request that the Task be scheduled on this Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere." + }, + "vmSize": { + "type": "string", + "description": "The size of the virtual machine hosting the Compute Node. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes)." + }, + "totalTasksRun": { + "type": "integer", + "format": "int32", + "description": "The total number of Job Tasks completed on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks." + }, + "runningTasksCount": { + "type": "integer", + "format": "int32", + "description": "The total number of currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks." + }, + "runningTaskSlotsCount": { + "type": "integer", + "format": "int32", + "description": "The total number of scheduling slots used by currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks." + }, + "totalTasksSucceeded": { + "type": "integer", + "format": "int32", + "description": "The total number of Job Tasks which completed successfully (with exitCode 0) on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks." + }, + "recentTasks": { + "type": "array", + "description": "A list of Tasks whose state has recently changed. This property is present only if at least one Task has run on this Compute Node since it was assigned to the Pool.", + "items": { + "$ref": "#/definitions/BatchTaskInfo" + }, + "x-ms-identifiers": [] + }, + "startTask": { + "$ref": "#/definitions/BatchStartTask", + "description": "The Task specified to run on the Compute Node as it joins the Pool." + }, + "startTaskInfo": { + "$ref": "#/definitions/BatchStartTaskInfo", + "description": "Runtime information about the execution of the StartTask on the Compute Node." + }, + "errors": { + "type": "array", + "description": "The list of errors that are currently being encountered by the Compute Node.", + "items": { + "$ref": "#/definitions/BatchNodeError" + }, + "x-ms-identifiers": [] + }, + "isDedicated": { + "type": "boolean", + "description": "Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a Spot/Low-priority Compute Node." + }, + "endpointConfiguration": { + "$ref": "#/definitions/BatchNodeEndpointConfiguration", + "description": "The endpoint configuration for the Compute Node." + }, + "nodeAgentInfo": { + "$ref": "#/definitions/BatchNodeAgentInfo", + "description": "Information about the Compute Node agent version and the time the Compute Node upgraded to a new version." + }, + "virtualMachineInfo": { + "$ref": "#/definitions/VirtualMachineInfo", + "description": "Info about the current state of the virtual machine." + } + } + }, + "BatchNodeAgentInfo": { + "type": "object", + "description": "The Batch Compute Node agent is a program that runs on each Compute Node in the\nPool and provides Batch capability on the Compute Node.", + "properties": { + "version": { + "type": "string", + "description": "The version of the Batch Compute Node agent running on the Compute Node. This version number can be checked against the Compute Node agent release notes located at https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The time when the Compute Node agent was updated on the Compute Node. This is the most recent time that the Compute Node agent was updated to a new version." + } + }, + "required": [ + "version", + "lastUpdateTime" + ] + }, + "BatchNodeCommunicationMode": { + "type": "string", + "description": "BatchNodeCommunicationMode enums", + "enum": [ + "default", + "classic", + "simplified" + ], + "x-ms-enum": { + "name": "BatchNodeCommunicationMode", + "modelAsString": true, + "values": [ + { + "name": "Default", + "value": "default", + "description": "The node communication mode is automatically set by the Batch service." + }, + { + "name": "Classic", + "value": "classic", + "description": "Nodes using the classic communication mode require inbound TCP communication on ports 29876 and 29877 from the \"BatchNodeManagement.{region}\" service tag and outbound TCP communication on port 443 to the \"Storage.region\" and \"BatchNodeManagement.{region}\" service tags." + }, + { + "name": "Simplified", + "value": "simplified", + "description": "Nodes using the simplified communication mode require outbound TCP communication on port 443 to the \"BatchNodeManagement.{region}\" service tag. No open inbound ports are required." + } + ] + } + }, + "BatchNodeCounts": { + "type": "object", + "description": "The number of Compute Nodes in each Compute Node state.", + "properties": { + "creating": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the creating state." + }, + "idle": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the idle state." + }, + "offline": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the offline state." + }, + "preempted": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the preempted state." + }, + "rebooting": { + "type": "integer", + "format": "int32", + "description": "The count of Compute Nodes in the rebooting state." + }, + "reimaging": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the reimaging state." + }, + "running": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the running state." + }, + "starting": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the starting state." + }, + "startTaskFailed": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the startTaskFailed state." + }, + "leavingPool": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the leavingPool state." + }, + "unknown": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the unknown state." + }, + "unusable": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the unusable state." + }, + "waitingForStartTask": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the waitingForStartTask state." + }, + "deallocated": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the deallocated state." + }, + "deallocating": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the deallocating state." + }, + "total": { + "type": "integer", + "format": "int32", + "description": "The total number of Compute Nodes." + }, + "upgradingOS": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes in the upgradingOS state.", + "x-ms-client-name": "upgradingOs" + } + }, + "required": [ + "creating", + "idle", + "offline", + "preempted", + "rebooting", + "reimaging", + "running", + "starting", + "startTaskFailed", + "leavingPool", + "unknown", + "unusable", + "waitingForStartTask", + "deallocated", + "deallocating", + "total", + "upgradingOS" + ] + }, + "BatchNodeDeallocateContent": { + "type": "object", + "description": "Options for deallocating a Compute Node.", + "properties": { + "nodeDeallocateOption": { + "$ref": "#/definitions/BatchNodeDeallocateOption", + "description": "When to deallocate the Compute Node and what to do with currently running Tasks. The default value is requeue." + } + } + }, + "BatchNodeDeallocateOption": { + "type": "string", + "description": "BatchNodeDeallocateOption enums", + "enum": [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ], + "x-ms-enum": { + "name": "BatchNodeDeallocateOption", + "modelAsString": true, + "values": [ + { + "name": "Requeue", + "value": "requeue", + "description": "Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Deallocate the Compute Node as soon as Tasks have been terminated." + }, + { + "name": "Terminate", + "value": "terminate", + "description": "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Deallocate the Compute Node as soon as Tasks have been terminated." + }, + { + "name": "TaskCompletion", + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Deallocate the Compute Node when all Tasks have completed." + }, + { + "name": "RetainedData", + "value": "retaineddata", + "description": "Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no new Tasks while waiting. Deallocate the Compute Node when all Task retention periods have expired." + } + ] + } + }, + "BatchNodeDeallocationOption": { + "type": "string", + "description": "BatchNodeDeallocationOption enums", + "enum": [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ], + "x-ms-enum": { + "name": "BatchNodeDeallocationOption", + "modelAsString": true, + "values": [ + { + "name": "Requeue", + "value": "requeue", + "description": "Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Remove Compute Nodes as soon as Tasks have been terminated." + }, + { + "name": "Terminate", + "value": "terminate", + "description": "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Remove Compute Nodes as soon as Tasks have been terminated." + }, + { + "name": "TaskCompletion", + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Remove Compute Nodes when all Tasks have completed." + }, + { + "name": "RetainedData", + "value": "retaineddata", + "description": "Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no new Tasks while waiting. Remove Compute Nodes when all Task retention periods have expired." + } + ] + } + }, + "BatchNodeDisableSchedulingContent": { + "type": "object", + "description": "Parameters for disabling scheduling on an Azure Batch Compute Node.", + "properties": { + "nodeDisableSchedulingOption": { + "$ref": "#/definitions/BatchNodeDisableSchedulingOption", + "description": "What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue." + } + } + }, + "BatchNodeDisableSchedulingOption": { + "type": "string", + "description": "BatchNodeDisableSchedulingOption enums", + "enum": [ + "requeue", + "terminate", + "taskcompletion" + ], + "x-ms-enum": { + "name": "BatchNodeDisableSchedulingOption", + "modelAsString": true, + "values": [ + { + "name": "Requeue", + "value": "requeue", + "description": "Terminate running Task processes and requeue the Tasks. The Tasks may run again on other Compute Nodes, or when Task scheduling is re-enabled on this Compute Node. Enter offline state as soon as Tasks have been terminated." + }, + { + "name": "Terminate", + "value": "terminate", + "description": "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Enter offline state as soon as Tasks have been terminated." + }, + { + "name": "TaskCompletion", + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Enter offline state when all Tasks have completed." + } + ] + } + }, + "BatchNodeEndpointConfiguration": { + "type": "object", + "description": "The endpoint configuration for the Compute Node.", + "properties": { + "inboundEndpoints": { + "type": "array", + "description": "The list of inbound endpoints that are accessible on the Compute Node.", + "items": { + "$ref": "#/definitions/InboundEndpoint" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "inboundEndpoints" + ] + }, + "BatchNodeError": { + "type": "object", + "description": "An error encountered by a Compute Node.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the Compute Node error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the Compute Node error, intended to be suitable for display in a user interface." + }, + "errorDetails": { + "type": "array", + "description": "The list of additional error details related to the Compute Node error.", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "x-ms-identifiers": [] + } + } + }, + "BatchNodeFile": { + "type": "object", + "description": "Information about a file or directory on a Compute Node.", + "properties": { + "name": { + "type": "string", + "description": "The file path." + }, + "url": { + "type": "string", + "description": "The URL of the file." + }, + "isDirectory": { + "type": "boolean", + "description": "Whether the object represents a directory." + }, + "properties": { + "$ref": "#/definitions/FileProperties", + "description": "The file properties." + } + } + }, + "BatchNodeFileListResult": { + "type": "object", + "description": "The result of listing the files on a Compute Node, or the files associated with\na Task on a Compute Node.", + "properties": { + "value": { + "type": "array", + "description": "The list of files.", + "items": { + "$ref": "#/definitions/BatchNodeFile" + }, + "x-ms-identifiers": [] + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchNodeFillType": { + "type": "string", + "description": "BatchNodeFillType enums", + "enum": [ + "spread", + "pack" + ], + "x-ms-enum": { + "name": "BatchNodeFillType", + "modelAsString": true, + "values": [ + { + "name": "Spread", + "value": "spread", + "description": "Tasks should be assigned evenly across all Compute Nodes in the Pool." + }, + { + "name": "Pack", + "value": "pack", + "description": "As many Tasks as possible (taskSlotsPerNode) should be assigned to each Compute Node in the Pool before any Tasks are assigned to the next Compute Node in the Pool." + } + ] + } + }, + "BatchNodeIdentityReference": { + "type": "object", + "description": "The reference to a user assigned identity associated with the Batch pool which\na compute node will use.", + "properties": { + "resourceId": { + "type": "string", + "description": "The ARM resource id of the user assigned identity." + } + } + }, + "BatchNodeInfo": { + "type": "object", + "description": "Information about the Compute Node on which a Task ran.", + "properties": { + "affinityId": { + "type": "string", + "description": "An identifier for the Node on which the Task ran, which can be passed when adding a Task to request that the Task be scheduled on this Compute Node." + }, + "nodeUrl": { + "type": "string", + "description": "The URL of the Compute Node on which the Task ran." + }, + "poolId": { + "type": "string", + "description": "The ID of the Pool on which the Task ran." + }, + "nodeId": { + "type": "string", + "description": "The ID of the Compute Node on which the Task ran." + }, + "taskRootDirectory": { + "type": "string", + "description": "The root directory of the Task on the Compute Node." + }, + "taskRootDirectoryUrl": { + "type": "string", + "description": "The URL to the root directory of the Task on the Compute Node." + } + } + }, + "BatchNodeListResult": { + "type": "object", + "description": "The result of listing the Compute Nodes in a Pool.", + "properties": { + "value": { + "type": "array", + "description": "The list of Compute Nodes.", + "items": { + "$ref": "#/definitions/BatchNode" + } + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchNodePlacementConfiguration": { + "type": "object", + "description": "For regional placement, nodes in the pool will be allocated in the same region.\nFor zonal placement, nodes in the pool will be spread across different zones\nwith best effort balancing.", + "properties": { + "policy": { + "$ref": "#/definitions/BatchNodePlacementPolicyType", + "description": "Node placement Policy type on Batch Pools. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy." + } + } + }, + "BatchNodePlacementPolicyType": { + "type": "string", + "description": "BatchNodePlacementPolicyType enums", + "enum": [ + "Shared", + "Startup", + "VfsMounts", + "Task", + "JobPrep", + "Applications" + ], + "x-ms-enum": { + "name": "BatchNodePlacementPolicyType", + "modelAsString": true, + "values": [ + { + "name": "Shared", + "value": "Shared", + "description": "The path for multi-instances task to shared their files." + }, + { + "name": "Startup", + "value": "Startup", + "description": "The path for start task." + }, + { + "name": "VfsMounts", + "value": "VfsMounts", + "description": "The path contains all virtual file systems are mounted on this node." + }, + { + "name": "Task", + "value": "Task", + "description": "The task path." + }, + { + "name": "JobPrep", + "value": "JobPrep", + "description": "The job-prep task path." + }, + { + "name": "Applications", + "value": "Applications", + "description": "The applications path." + } + ] + } + }, + "BatchNodeRebootContent": { + "type": "object", + "description": "Parameters for rebooting an Azure Batch Compute Node.", + "properties": { + "nodeRebootOption": { + "$ref": "#/definitions/BatchNodeRebootOption", + "description": "When to reboot the Compute Node and what to do with currently running Tasks. The default value is requeue." + } + } + }, + "BatchNodeRebootOption": { + "type": "string", + "description": "BatchNodeRebootOption enums", + "enum": [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ], + "x-ms-enum": { + "name": "BatchNodeRebootOption", + "modelAsString": true, + "values": [ + { + "name": "Requeue", + "value": "requeue", + "description": "Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Restart the Compute Node as soon as Tasks have been terminated." + }, + { + "name": "Terminate", + "value": "terminate", + "description": "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Restart the Compute Node as soon as Tasks have been terminated." + }, + { + "name": "TaskCompletion", + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Restart the Compute Node when all Tasks have completed." + }, + { + "name": "RetainedData", + "value": "retaineddata", + "description": "Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no new Tasks while waiting. Restart the Compute Node when all Task retention periods have expired." + } + ] + } + }, + "BatchNodeReimageContent": { + "type": "object", + "description": "Parameters for reimaging an Azure Batch Compute Node.", + "properties": { + "nodeReimageOption": { + "$ref": "#/definitions/BatchNodeReimageOption", + "description": "When to reimage the Compute Node and what to do with currently running Tasks. The default value is requeue." + } + } + }, + "BatchNodeReimageOption": { + "type": "string", + "description": "BatchNodeReimageOption enums", + "enum": [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ], + "x-ms-enum": { + "name": "BatchNodeReimageOption", + "modelAsString": true, + "values": [ + { + "name": "Requeue", + "value": "requeue", + "description": "Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Reimage the Compute Node as soon as Tasks have been terminated." + }, + { + "name": "Terminate", + "value": "terminate", + "description": "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Reimage the Compute Node as soon as Tasks have been terminated." + }, + { + "name": "TaskCompletion", + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Reimage the Compute Node when all Tasks have completed." + }, + { + "name": "RetainedData", + "value": "retaineddata", + "description": "Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no new Tasks while waiting. Reimage the Compute Node when all Task retention periods have expired." + } + ] + } + }, + "BatchNodeRemoteLoginSettings": { + "type": "object", + "description": "The remote login settings for a Compute Node.", + "properties": { + "remoteLoginIPAddress": { + "type": "string", + "description": "The IP address used for remote login to the Compute Node.", + "x-ms-client-name": "remoteLoginIpAddress" + }, + "remoteLoginPort": { + "type": "integer", + "format": "int32", + "description": "The port used for remote login to the Compute Node." + } + }, + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ] + }, + "BatchNodeRemoveContent": { + "type": "object", + "description": "Parameters for removing nodes from an Azure Batch Pool.", + "properties": { + "nodeList": { + "type": "array", + "description": "A list containing the IDs of the Compute Nodes to be removed from the specified Pool. A maximum of 100 nodes may be removed per request.", + "items": { + "type": "string" + } + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "description": "The timeout for removal of Compute Nodes to the Pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "nodeDeallocationOption": { + "$ref": "#/definitions/BatchNodeDeallocationOption", + "description": "Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation. The default value is requeue." + } + }, + "required": [ + "nodeList" + ] + }, + "BatchNodeState": { + "type": "string", + "description": "BatchNodeState enums", + "enum": [ + "idle", + "rebooting", + "reimaging", + "running", + "unusable", + "creating", + "starting", + "waitingforstarttask", + "starttaskfailed", + "unknown", + "leavingpool", + "offline", + "preempted", + "upgradingos", + "deallocated", + "deallocating" + ], + "x-ms-enum": { + "name": "BatchNodeState", + "modelAsString": true, + "values": [ + { + "name": "Idle", + "value": "idle", + "description": "The Compute Node is not currently running a Task." + }, + { + "name": "Rebooting", + "value": "rebooting", + "description": "The Compute Node is rebooting." + }, + { + "name": "Reimaging", + "value": "reimaging", + "description": "The Compute Node is reimaging." + }, + { + "name": "Running", + "value": "running", + "description": "The Compute Node is running one or more Tasks (other than a StartTask)." + }, + { + "name": "Unusable", + "value": "unusable", + "description": "The Compute Node cannot be used for Task execution due to errors." + }, + { + "name": "Creating", + "value": "creating", + "description": "The Batch service has obtained the underlying virtual machine from Azure Compute, but it has not yet started to join the Pool." + }, + { + "name": "Starting", + "value": "starting", + "description": "The Batch service is starting on the underlying virtual machine." + }, + { + "name": "WaitingForStartTask", + "value": "waitingforstarttask", + "description": "The StartTask has started running on the Compute Node, but waitForSuccess is set and the StartTask has not yet completed." + }, + { + "name": "StartTaskFailed", + "value": "starttaskfailed", + "description": "The StartTask has failed on the Compute Node (and exhausted all retries), and waitForSuccess is set. The Compute Node is not usable for running Tasks." + }, + { + "name": "Unknown", + "value": "unknown", + "description": "The Batch service has lost contact with the Compute Node, and does not know its true state." + }, + { + "name": "LeavingPool", + "value": "leavingpool", + "description": "The Compute Node is leaving the Pool, either because the user explicitly removed it or because the Pool is resizing or autoscaling down." + }, + { + "name": "Offline", + "value": "offline", + "description": "The Compute Node is not currently running a Task, and scheduling of new Tasks to the Compute Node is disabled." + }, + { + "name": "Preempted", + "value": "preempted", + "description": "The Spot/Low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available." + }, + { + "name": "UpgradingOS", + "value": "upgradingos", + "description": "The Compute Node is undergoing an OS upgrade operation." + }, + { + "name": "Deallocated", + "value": "deallocated", + "description": "The Compute Node is deallocated." + }, + { + "name": "Deallocating", + "value": "deallocating", + "description": "The Compute Node is deallocating." + } + ] + } + }, + "BatchNodeUserCreateContent": { + "type": "object", + "description": "Parameters for creating a user account for RDP or SSH access on an Azure Batch Compute Node.", + "properties": { + "name": { + "type": "string", + "description": "The user name of the Account." + }, + "isAdmin": { + "type": "boolean", + "description": "Whether the Account should be an administrator on the Compute Node. The default value is false." + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Account should expire. If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day." + }, + "password": { + "type": "string", + "format": "password", + "description": "The password of the Account. The password is required for Windows Compute Nodes. For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property.", + "x-ms-secret": true + }, + "sshPublicKey": { + "type": "string", + "description": "The SSH public key that can be used for remote login to the Compute Node. The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + } + }, + "required": [ + "name" + ] + }, + "BatchNodeUserUpdateContent": { + "type": "object", + "description": "Parameters for updating a user account for RDP or SSH access on an Azure Batch Compute Node.", + "properties": { + "password": { + "type": "string", + "format": "password", + "description": "The password of the Account. The password is required for Windows Compute Nodes. For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is removed.", + "x-ms-secret": true + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Account should expire. If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day." + }, + "sshPublicKey": { + "type": "string", + "description": "The SSH public key that can be used for remote login to the Compute Node. The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If omitted, any existing SSH public key is removed." + } + } + }, + "BatchNodeVMExtension": { + "type": "object", + "description": "The configuration for virtual machine extension instance view.", + "properties": { + "provisioningState": { + "type": "string", + "description": "The provisioning state of the virtual machine extension." + }, + "vmExtension": { + "$ref": "#/definitions/VMExtension", + "description": "The virtual machine extension." + }, + "instanceView": { + "$ref": "#/definitions/VMExtensionInstanceView", + "description": "The vm extension instance view." + } + } + }, + "BatchNodeVMExtensionListResult": { + "type": "object", + "description": "The result of listing the Compute Node extensions in a Node.", + "properties": { + "value": { + "type": "array", + "description": "The list of Compute Node extensions.", + "items": { + "$ref": "#/definitions/BatchNodeVMExtension" + }, + "x-ms-identifiers": [] + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchPool": { + "type": "object", + "description": "A Pool in the Azure Batch service.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.", + "readOnly": true + }, + "url": { + "type": "string", + "description": "The URL of the Pool.", + "readOnly": true + }, + "eTag": { + "type": "string", + "description": "The ETag of the Pool. This is an opaque string. You can use it to detect whether the Pool has changed between requests. In particular, you can be pass the ETag when updating a Pool to specify that your changes should take effect only if nobody else has modified the Pool in the meantime.", + "readOnly": true + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The last modified time of the Pool. This is the last time at which the Pool level data, such as the targetDedicatedNodes or enableAutoscale settings, changed. It does not factor in node-level changes such as a Compute Node changing state.", + "readOnly": true + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "The creation time of the Pool.", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/BatchPoolState", + "description": "The current state of the Pool.", + "readOnly": true + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Pool entered its current state.", + "readOnly": true + }, + "allocationState": { + "$ref": "#/definitions/AllocationState", + "description": "Whether the Pool is resizing.", + "readOnly": true + }, + "allocationStateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Pool entered its current allocation state.", + "readOnly": true + }, + "vmSize": { + "type": "string", + "description": "The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available VM sizes, see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).", + "readOnly": true + }, + "virtualMachineConfiguration": { + "$ref": "#/definitions/VirtualMachineConfiguration", + "description": "The virtual machine configuration for the Pool. This property must be specified.", + "readOnly": true + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "description": "The timeout for allocation of Compute Nodes to the Pool. This is the timeout for the most recent resize operation. (The initial sizing when the Pool is created counts as a resize.) The default value is 15 minutes.", + "readOnly": true + }, + "resizeErrors": { + "type": "array", + "description": "A list of errors encountered while performing the last resize on the Pool. This property is set only if one or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady.", + "items": { + "$ref": "#/definitions/ResizeError" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "resourceTags": { + "type": "object", + "description": "The user-specified tags associated with the pool. The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + }, + "currentDedicatedNodes": { + "type": "integer", + "format": "int32", + "description": "The number of dedicated Compute Nodes currently in the Pool.", + "readOnly": true + }, + "currentLowPriorityNodes": { + "type": "integer", + "format": "int32", + "description": "The number of Spot/Low-priority Compute Nodes currently in the Pool. Spot/Low-priority Compute Nodes which have been preempted are included in this count.", + "readOnly": true + }, + "targetDedicatedNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of dedicated Compute Nodes in the Pool.", + "readOnly": true + }, + "targetLowPriorityNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of Spot/Low-priority Compute Nodes in the Pool.", + "readOnly": true + }, + "enableAutoScale": { + "type": "boolean", + "description": "Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false.", + "readOnly": true + }, + "autoScaleFormula": { + "type": "string", + "description": "A formula for the desired number of Compute Nodes in the Pool. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.", + "readOnly": true + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "description": "The time interval at which to automatically adjust the Pool size according to the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.", + "readOnly": true + }, + "autoScaleRun": { + "$ref": "#/definitions/AutoScaleRun", + "description": "The results and errors from the last execution of the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.", + "readOnly": true + }, + "enableInterNodeCommunication": { + "type": "boolean", + "description": "Whether the Pool permits direct communication between Compute Nodes. This imposes restrictions on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the chance of the requested number of Compute Nodes to be allocated in the Pool.", + "readOnly": true + }, + "networkConfiguration": { + "$ref": "#/definitions/NetworkConfiguration", + "description": "The network configuration for the Pool.", + "readOnly": true + }, + "startTask": { + "$ref": "#/definitions/BatchStartTask", + "description": "A Task specified to run on each Compute Node as it joins the Pool." + }, + "applicationPackageReferences": { + "type": "array", + "description": "The list of Packages to be installed on each Compute Node in the Pool. Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "taskSlotsPerNode": { + "type": "integer", + "format": "int32", + "description": "The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.", + "readOnly": true + }, + "taskSchedulingPolicy": { + "$ref": "#/definitions/BatchTaskSchedulingPolicy", + "description": "How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.", + "readOnly": true + }, + "userAccounts": { + "type": "array", + "description": "The list of user Accounts to be created on each Compute Node in the Pool.", + "items": { + "$ref": "#/definitions/UserAccount" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Pool as metadata.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "stats": { + "$ref": "#/definitions/BatchPoolStatistics", + "description": "Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if the BatchPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", + "readOnly": true + }, + "mountConfiguration": { + "type": "array", + "description": "A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.", + "items": { + "$ref": "#/definitions/MountConfiguration" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "identity": { + "$ref": "#/definitions/BatchPoolIdentity", + "description": "The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "readOnly": true + }, + "targetNodeCommunicationMode": { + "$ref": "#/definitions/BatchNodeCommunicationMode", + "description": "The desired node communication mode for the pool. If omitted, the default value is Default." + }, + "currentNodeCommunicationMode": { + "$ref": "#/definitions/BatchNodeCommunicationMode", + "description": "The current state of the pool communication mode.", + "readOnly": true + }, + "upgradePolicy": { + "$ref": "#/definitions/UpgradePolicy", + "description": "The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling." + } + } + }, + "BatchPoolCreateContent": { + "type": "object", + "description": "Parameters for creating an Azure Batch Pool.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two Pool IDs within an Account that differ only by case)." + }, + "displayName": { + "type": "string", + "description": "The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "vmSize": { + "type": "string", + "description": "The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available VM sizes for Pools using Images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration), see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)." + }, + "virtualMachineConfiguration": { + "$ref": "#/definitions/VirtualMachineConfiguration", + "description": "The virtual machine configuration for the Pool. This property must be specified." + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "description": "The timeout for allocation of Compute Nodes to the Pool. This timeout applies only to manual scaling; it has no effect when enableAutoScale is set to true. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "resourceTags": { + "type": "object", + "description": "The user-specified tags associated with the pool. The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.", + "additionalProperties": { + "type": "string" + } + }, + "targetDedicatedNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of dedicated Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "targetLowPriorityNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of Spot/Low-priority Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "enableAutoScale": { + "type": "boolean", + "description": "Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false." + }, + "autoScaleFormula": { + "type": "string", + "description": "A formula for the desired number of Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. If the formula is not valid, the Batch service rejects the request with detailed error information. For more information about specifying this formula, see 'Automatically scale Compute Nodes in an Azure Batch Pool' (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling/)." + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "description": "The time interval at which to automatically adjust the Pool size according to the autoscale formula. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "enableInterNodeCommunication": { + "type": "boolean", + "description": "Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false." + }, + "networkConfiguration": { + "$ref": "#/definitions/NetworkConfiguration", + "description": "The network configuration for the Pool." + }, + "startTask": { + "$ref": "#/definitions/BatchStartTask", + "description": "A Task specified to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted." + }, + "applicationPackageReferences": { + "type": "array", + "description": "The list of Packages to be installed on each Compute Node in the Pool. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}). Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "x-ms-identifiers": [] + }, + "taskSlotsPerNode": { + "type": "integer", + "format": "int32", + "description": "The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256." + }, + "taskSchedulingPolicy": { + "$ref": "#/definitions/BatchTaskSchedulingPolicy", + "description": "How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread." + }, + "userAccounts": { + "type": "array", + "description": "The list of user Accounts to be created on each Compute Node in the Pool.", + "items": { + "$ref": "#/definitions/UserAccount" + }, + "x-ms-identifiers": [] + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Pool as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + }, + "mountConfiguration": { + "type": "array", + "description": "Mount storage using specified file system for the entire lifetime of the pool. Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system.", + "items": { + "$ref": "#/definitions/MountConfiguration" + }, + "x-ms-identifiers": [] + }, + "targetNodeCommunicationMode": { + "$ref": "#/definitions/BatchNodeCommunicationMode", + "description": "The desired node communication mode for the pool. If omitted, the default value is Default." + }, + "upgradePolicy": { + "$ref": "#/definitions/UpgradePolicy", + "description": "The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling." + } + }, + "required": [ + "id", + "vmSize" + ] + }, + "BatchPoolEnableAutoScaleContent": { + "type": "object", + "description": "Parameters for enabling automatic scaling on an Azure Batch Pool.", + "properties": { + "autoScaleFormula": { + "type": "string", + "description": "The formula for the desired number of Compute Nodes in the Pool. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued." + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "description": "The time interval at which to automatically adjust the Pool size according to the autoscale formula. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued." + } + } + }, + "BatchPoolEndpointConfiguration": { + "type": "object", + "description": "The endpoint configuration for a Pool.", + "properties": { + "inboundNATPools": { + "type": "array", + "description": "A list of inbound NAT Pools that can be used to address specific ports on an individual Compute Node externally. The maximum number of inbound NAT Pools per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses.", + "items": { + "$ref": "#/definitions/InboundNatPool" + }, + "x-ms-client-name": "inboundNatPools", + "x-ms-identifiers": [] + } + }, + "required": [ + "inboundNATPools" + ] + }, + "BatchPoolEndpointConfigurationUpdate": { + "type": "object", + "description": "The endpoint configuration for a Pool.", + "properties": { + "inboundNATPools": { + "type": "array", + "description": "A list of inbound NAT Pools that can be used to address specific ports on an individual Compute Node externally. The maximum number of inbound NAT Pools per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses.", + "items": { + "$ref": "#/definitions/InboundNatPool" + }, + "x-ms-client-name": "inboundNatPools", + "x-ms-identifiers": [] + } + } + }, + "BatchPoolEvaluateAutoScaleContent": { + "type": "object", + "description": "Parameters for evaluating an automatic scaling formula on an Azure Batch Pool.", + "properties": { + "autoScaleFormula": { + "type": "string", + "description": "The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling)." + } + }, + "required": [ + "autoScaleFormula" + ] + }, + "BatchPoolIdentity": { + "type": "object", + "description": "The identity of the Batch pool, if configured.", + "properties": { + "type": { + "$ref": "#/definitions/BatchPoolIdentityType", + "description": "The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + }, + "userAssignedIdentities": { + "type": "array", + "description": "The list of user identities associated with the Batch account. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "type" + ] + }, + "BatchPoolIdentityType": { + "type": "string", + "description": "BatchPoolIdentityType enums", + "enum": [ + "UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "BatchPoolIdentityType", + "modelAsString": true, + "values": [ + { + "name": "UserAssigned", + "value": "UserAssigned", + "description": "Batch pool has user assigned identities with it." + }, + { + "name": "None", + "value": "None", + "description": "Batch pool has no identity associated with it. Setting `None` in update pool will remove existing identities." + } + ] + } + }, + "BatchPoolInfo": { + "type": "object", + "description": "Specifies how a Job should be assigned to a Pool.", + "properties": { + "poolId": { + "type": "string", + "description": "The ID of an existing Pool. All the Tasks of the Job will run on the specified Pool. You must ensure that the Pool referenced by this property exists. If the Pool does not exist at the time the Batch service tries to schedule a Job, no Tasks for the Job will run until you create a Pool with that id. Note that the Batch service will not reject the Job request; it will simply not run Tasks until the Pool exists. You must specify either the Pool ID or the auto Pool specification, but not both." + }, + "autoPoolSpecification": { + "$ref": "#/definitions/BatchAutoPoolSpecification", + "description": "Characteristics for a temporary 'auto pool'. The Batch service will create this auto Pool when the Job is submitted. If auto Pool creation fails, the Batch service moves the Job to a completed state, and the Pool creation error is set in the Job's scheduling error property. The Batch service manages the lifetime (both creation and, unless keepAlive is specified, deletion) of the auto Pool. Any user actions that affect the lifetime of the auto Pool while the Job is active will result in unexpected behavior. You must specify either the Pool ID or the auto Pool specification, but not both." + } + } + }, + "BatchPoolInfoUpdate": { + "type": "object", + "description": "Specifies how a Job should be assigned to a Pool.", + "properties": { + "poolId": { + "type": "string", + "description": "The ID of an existing Pool. All the Tasks of the Job will run on the specified Pool. You must ensure that the Pool referenced by this property exists. If the Pool does not exist at the time the Batch service tries to schedule a Job, no Tasks for the Job will run until you create a Pool with that id. Note that the Batch service will not reject the Job request; it will simply not run Tasks until the Pool exists. You must specify either the Pool ID or the auto Pool specification, but not both." + }, + "autoPoolSpecification": { + "$ref": "#/definitions/BatchAutoPoolSpecificationUpdate", + "description": "Characteristics for a temporary 'auto pool'. The Batch service will create this auto Pool when the Job is submitted. If auto Pool creation fails, the Batch service moves the Job to a completed state, and the Pool creation error is set in the Job's scheduling error property. The Batch service manages the lifetime (both creation and, unless keepAlive is specified, deletion) of the auto Pool. Any user actions that affect the lifetime of the auto Pool while the Job is active will result in unexpected behavior. You must specify either the Pool ID or the auto Pool specification, but not both." + } + } + }, + "BatchPoolLifetimeOption": { + "type": "string", + "description": "BatchPoolLifetimeOption enums", + "enum": [ + "jobschedule", + "job" + ], + "x-ms-enum": { + "name": "BatchPoolLifetimeOption", + "modelAsString": true, + "values": [ + { + "name": "JobSchedule", + "value": "jobschedule", + "description": "The Pool exists for the lifetime of the Job Schedule. The Batch Service creates the Pool when it creates the first Job on the schedule. You may apply this option only to Job Schedules, not to Jobs." + }, + { + "name": "Job", + "value": "job", + "description": "The Pool exists for the lifetime of the Job to which it is dedicated. The Batch service creates the Pool when it creates the Job. If the 'job' option is applied to a Job Schedule, the Batch service creates a new auto Pool for every Job created on the schedule." + } + ] + } + }, + "BatchPoolListResult": { + "type": "object", + "description": "The result of listing the Pools in an Account.", + "properties": { + "value": { + "type": "array", + "description": "The list of Pools.", + "items": { + "$ref": "#/definitions/BatchPool" + } + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchPoolListUsageMetricsResult": { + "type": "object", + "description": "The result of a listing the usage metrics for an Account.", + "properties": { + "value": { + "type": "array", + "description": "The Pool usage metrics data.", + "items": { + "$ref": "#/definitions/BatchPoolUsageMetrics" + }, + "x-ms-identifiers": [] + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchPoolNodeCounts": { + "type": "object", + "description": "The number of Compute Nodes in each state for a Pool.", + "properties": { + "poolId": { + "type": "string", + "description": "The ID of the Pool." + }, + "dedicated": { + "$ref": "#/definitions/BatchNodeCounts", + "description": "The number of dedicated Compute Nodes in each state." + }, + "lowPriority": { + "$ref": "#/definitions/BatchNodeCounts", + "description": "The number of Spot/Low-priority Compute Nodes in each state." + } + }, + "required": [ + "poolId" + ] + }, + "BatchPoolNodeCountsListResult": { + "type": "object", + "description": "The result of listing the Compute Node counts in the Account.", + "properties": { + "value": { + "type": "array", + "description": "A list of Compute Node counts by Pool.", + "items": { + "$ref": "#/definitions/BatchPoolNodeCounts" + }, + "x-ms-identifiers": [] + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchPoolReplaceContent": { + "type": "object", + "description": "Parameters for replacing properties on an Azure Batch Pool.", + "properties": { + "startTask": { + "$ref": "#/definitions/BatchStartTask", + "description": "A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is removed from the Pool." + }, + "applicationPackageReferences": { + "type": "array", + "description": "The list of Application Packages to be installed on each Compute Node in the Pool. The list replaces any existing Application Package references on the Pool. Changes to Application Package references affect all new Compute Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Application Package references on any given Pool. If omitted, or if you specify an empty collection, any existing Application Packages references are removed from the Pool. A maximum of 10 references may be specified on a given Pool.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "x-ms-identifiers": [] + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Pool as metadata. This list replaces any existing metadata configured on the Pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the Pool.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + }, + "targetNodeCommunicationMode": { + "$ref": "#/definitions/BatchNodeCommunicationMode", + "description": "The desired node communication mode for the pool. This setting replaces any existing targetNodeCommunication setting on the Pool. If omitted, the existing setting is default." + } + }, + "required": [ + "applicationPackageReferences", + "metadata" + ] + }, + "BatchPoolResizeContent": { + "type": "object", + "description": "Parameters for changing the size of an Azure Batch Pool.", + "properties": { + "targetDedicatedNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of dedicated Compute Nodes in the Pool." + }, + "targetLowPriorityNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of Spot/Low-priority Compute Nodes in the Pool." + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "description": "The timeout for allocation of Nodes to the Pool or removal of Compute Nodes from the Pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "nodeDeallocationOption": { + "$ref": "#/definitions/BatchNodeDeallocationOption", + "description": "Determines what to do with a Compute Node and its running task(s) if the Pool size is decreasing. The default value is requeue." + } + } + }, + "BatchPoolResourceStatistics": { + "type": "object", + "description": "Statistics related to resource consumption by Compute Nodes in a Pool.", + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "avgCPUPercentage": { + "type": "number", + "format": "float", + "description": "The average CPU usage across all Compute Nodes in the Pool (percentage per node).", + "x-ms-client-name": "avgCpuPercentage" + }, + "avgMemoryGiB": { + "type": "number", + "format": "float", + "description": "The average memory usage in GiB across all Compute Nodes in the Pool." + }, + "peakMemoryGiB": { + "type": "number", + "format": "float", + "description": "The peak memory usage in GiB across all Compute Nodes in the Pool." + }, + "avgDiskGiB": { + "type": "number", + "format": "float", + "description": "The average used disk space in GiB across all Compute Nodes in the Pool." + }, + "peakDiskGiB": { + "type": "number", + "format": "float", + "description": "The peak used disk space in GiB across all Compute Nodes in the Pool." + }, + "diskReadIOps": { + "type": "integer", + "format": "int64", + "description": "The total number of disk read operations across all Compute Nodes in the Pool." + }, + "diskWriteIOps": { + "type": "integer", + "format": "int64", + "description": "The total number of disk write operations across all Compute Nodes in the Pool." + }, + "diskReadGiB": { + "type": "number", + "format": "float", + "description": "The total amount of data in GiB of disk reads across all Compute Nodes in the Pool." + }, + "diskWriteGiB": { + "type": "number", + "format": "float", + "description": "The total amount of data in GiB of disk writes across all Compute Nodes in the Pool." + }, + "networkReadGiB": { + "type": "number", + "format": "float", + "description": "The total amount of data in GiB of network reads across all Compute Nodes in the Pool." + }, + "networkWriteGiB": { + "type": "number", + "format": "float", + "description": "The total amount of data in GiB of network writes across all Compute Nodes in the Pool." + } + }, + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ] + }, + "BatchPoolSpecification": { + "type": "object", + "description": "Specification for creating a new Pool.", + "properties": { + "displayName": { + "type": "string", + "description": "The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "vmSize": { + "type": "string", + "description": "The size of the virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes)." + }, + "virtualMachineConfiguration": { + "$ref": "#/definitions/VirtualMachineConfiguration", + "description": "The virtual machine configuration for the Pool. This property must be specified." + }, + "taskSlotsPerNode": { + "type": "integer", + "format": "int32", + "description": "The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256." + }, + "taskSchedulingPolicy": { + "$ref": "#/definitions/BatchTaskSchedulingPolicy", + "description": "How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread." + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "description": "The timeout for allocation of Compute Nodes to the Pool. This timeout applies only to manual scaling; it has no effect when enableAutoScale is set to true. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "resourceTags": { + "type": "string", + "description": "The user-specified tags associated with the pool.The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'." + }, + "targetDedicatedNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of dedicated Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "targetLowPriorityNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of Spot/Low-priority Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "enableAutoScale": { + "type": "boolean", + "description": "Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula element is required. The Pool automatically resizes according to the formula. The default value is false." + }, + "autoScaleFormula": { + "type": "string", + "description": "The formula for the desired number of Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. If the formula is not valid, the Batch service rejects the request with detailed error information." + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "description": "The time interval at which to automatically adjust the Pool size according to the autoscale formula. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "enableInterNodeCommunication": { + "type": "boolean", + "description": "Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false." + }, + "networkConfiguration": { + "$ref": "#/definitions/NetworkConfiguration", + "description": "The network configuration for the Pool." + }, + "startTask": { + "$ref": "#/definitions/BatchStartTask", + "description": "A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted." + }, + "applicationPackageReferences": { + "type": "array", + "description": "The list of Packages to be installed on each Compute Node in the Pool. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}). Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "x-ms-identifiers": [] + }, + "userAccounts": { + "type": "array", + "description": "The list of user Accounts to be created on each Compute Node in the Pool.", + "items": { + "$ref": "#/definitions/UserAccount" + }, + "x-ms-identifiers": [] + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Pool as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + }, + "mountConfiguration": { + "type": "array", + "description": "A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.", + "items": { + "$ref": "#/definitions/MountConfiguration" + }, + "x-ms-identifiers": [] + }, + "targetNodeCommunicationMode": { + "$ref": "#/definitions/BatchNodeCommunicationMode", + "description": "The desired node communication mode for the pool. If omitted, the default value is Default." + }, + "upgradePolicy": { + "$ref": "#/definitions/UpgradePolicy", + "description": "The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling." + } + }, + "required": [ + "vmSize" + ] + }, + "BatchPoolSpecificationUpdate": { + "type": "object", + "description": "Specification for creating a new Pool.", + "properties": { + "displayName": { + "type": "string", + "description": "The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "vmSize": { + "type": "string", + "description": "The size of the virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes)." + }, + "virtualMachineConfiguration": { + "$ref": "#/definitions/VirtualMachineConfigurationUpdate", + "description": "The virtual machine configuration for the Pool. This property must be specified." + }, + "taskSlotsPerNode": { + "type": "integer", + "format": "int32", + "description": "The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256." + }, + "taskSchedulingPolicy": { + "$ref": "#/definitions/BatchTaskSchedulingPolicyUpdate", + "description": "How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread." + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "description": "The timeout for allocation of Compute Nodes to the Pool. This timeout applies only to manual scaling; it has no effect when enableAutoScale is set to true. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "resourceTags": { + "type": "string", + "description": "The user-specified tags associated with the pool.The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'." + }, + "targetDedicatedNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of dedicated Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "targetLowPriorityNodes": { + "type": "integer", + "format": "int32", + "description": "The desired number of Spot/Low-priority Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "enableAutoScale": { + "type": "boolean", + "description": "Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula element is required. The Pool automatically resizes according to the formula. The default value is false." + }, + "autoScaleFormula": { + "type": "string", + "description": "The formula for the desired number of Compute Nodes in the Pool. This property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. If the formula is not valid, the Batch service rejects the request with detailed error information." + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "description": "The time interval at which to automatically adjust the Pool size according to the autoscale formula. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "enableInterNodeCommunication": { + "type": "boolean", + "description": "Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false." + }, + "networkConfiguration": { + "$ref": "#/definitions/NetworkConfigurationUpdate", + "description": "The network configuration for the Pool." + }, + "startTask": { + "$ref": "#/definitions/BatchStartTaskUpdate", + "description": "A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted." + }, + "applicationPackageReferences": { + "type": "array", + "description": "The list of Packages to be installed on each Compute Node in the Pool. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}). Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "x-ms-identifiers": [] + }, + "userAccounts": { + "type": "array", + "description": "The list of user Accounts to be created on each Compute Node in the Pool.", + "items": { + "$ref": "#/definitions/UserAccount" + }, + "x-ms-identifiers": [] + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Pool as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + }, + "mountConfiguration": { + "type": "array", + "description": "A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.", + "items": { + "$ref": "#/definitions/MountConfiguration" + }, + "x-ms-identifiers": [] + }, + "targetNodeCommunicationMode": { + "$ref": "#/definitions/BatchNodeCommunicationMode", + "description": "The desired node communication mode for the pool. If omitted, the default value is Default." + }, + "upgradePolicy": { + "$ref": "#/definitions/UpgradePolicyUpdate", + "description": "The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling." + } + } + }, + "BatchPoolState": { + "type": "string", + "description": "BatchPoolState enums", + "enum": [ + "active", + "deleting" + ], + "x-ms-enum": { + "name": "BatchPoolState", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "active", + "description": "The Pool is available to run Tasks subject to the availability of Compute Nodes." + }, + { + "name": "Deleting", + "value": "deleting", + "description": "The user has requested that the Pool be deleted, but the delete operation has not yet completed." + } + ] + } + }, + "BatchPoolStatistics": { + "type": "object", + "description": "Contains utilization and resource usage statistics for the lifetime of a Pool.", + "properties": { + "url": { + "type": "string", + "description": "The URL for the statistics." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "usageStats": { + "$ref": "#/definitions/BatchPoolUsageStatistics", + "description": "Statistics related to Pool usage, such as the amount of core-time used." + }, + "resourceStats": { + "$ref": "#/definitions/BatchPoolResourceStatistics", + "description": "Statistics related to resource consumption by Compute Nodes in the Pool." + } + }, + "required": [ + "url", + "startTime", + "lastUpdateTime" + ] + }, + "BatchPoolUpdateContent": { + "type": "object", + "description": "Parameters for updating an Azure Batch Pool.", + "properties": { + "displayName": { + "type": "string", + "description": "The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. This field can be updated only when the pool is empty." + }, + "vmSize": { + "type": "string", + "description": "The size of virtual machines in the Pool. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

This field can be updated only when the pool is empty." + }, + "enableInterNodeCommunication": { + "type": "boolean", + "description": "Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false.

This field can be updated only when the pool is empty." + }, + "startTask": { + "$ref": "#/definitions/BatchStartTaskUpdate", + "description": "A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is left unchanged." + }, + "applicationPackageReferences": { + "type": "array", + "description": "A list of Packages to be installed on each Compute Node in the Pool. Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. If this element is present, it replaces any existing Package references. If you specify an empty collection, then all Package references are removed from the Pool. If omitted, any existing Package references are left unchanged.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "x-ms-identifiers": [] + }, + "metadata": { + "type": "array", + "description": "A list of name-value pairs associated with the Pool as metadata. If this element is present, it replaces any existing metadata configured on the Pool. If you specify an empty collection, any metadata is removed from the Pool. If omitted, any existing metadata is left unchanged.", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "x-ms-identifiers": [] + }, + "virtualMachineConfiguration": { + "$ref": "#/definitions/VirtualMachineConfigurationUpdate", + "description": "The virtual machine configuration for the Pool. This property must be specified.

This field can be updated only when the pool is empty." + }, + "targetNodeCommunicationMode": { + "$ref": "#/definitions/BatchNodeCommunicationMode", + "description": "The desired node communication mode for the pool. If this element is present, it replaces the existing targetNodeCommunicationMode configured on the Pool. If omitted, any existing metadata is left unchanged." + }, + "taskSlotsPerNode": { + "type": "integer", + "format": "int32", + "description": "The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.

This field can be updated only when the pool is empty." + }, + "taskSchedulingPolicy": { + "$ref": "#/definitions/BatchTaskSchedulingPolicyUpdate", + "description": "How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.

This field can be updated only when the pool is empty." + }, + "networkConfiguration": { + "$ref": "#/definitions/NetworkConfigurationUpdate", + "description": "The network configuration for the Pool. This field can be updated only when the pool is empty." + }, + "resourceTags": { + "type": "object", + "description": "The user-specified tags associated with the pool. The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.

This field can be updated only when the pool is empty.", + "additionalProperties": { + "type": "string" + } + }, + "userAccounts": { + "type": "array", + "description": "The list of user Accounts to be created on each Compute Node in the Pool. This field can be updated only when the pool is empty.", + "items": { + "$ref": "#/definitions/UserAccount" + }, + "x-ms-identifiers": [] + }, + "mountConfiguration": { + "type": "array", + "description": "Mount storage using specified file system for the entire lifetime of the pool. Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system.

This field can be updated only when the pool is empty.", + "items": { + "$ref": "#/definitions/MountConfiguration" + }, + "x-ms-identifiers": [] + }, + "upgradePolicy": { + "$ref": "#/definitions/UpgradePolicyUpdate", + "description": "The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling.

This field can be updated only when the pool is empty." + } + } + }, + "BatchPoolUsageMetrics": { + "type": "object", + "description": "Usage metrics for a Pool across an aggregation interval.", + "properties": { + "poolId": { + "type": "string", + "description": "The ID of the Pool whose metrics are aggregated in this entry." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the aggregation interval covered by this entry." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the aggregation interval covered by this entry." + }, + "vmSize": { + "type": "string", + "description": "The size of virtual machines in the Pool. All VMs in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes)." + }, + "totalCoreHours": { + "type": "number", + "format": "float", + "description": "The total core hours used in the Pool during this aggregation interval." + } + }, + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours" + ] + }, + "BatchPoolUsageStatistics": { + "type": "object", + "description": "Statistics related to Pool usage information.", + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "dedicatedCoreTime": { + "type": "string", + "format": "duration", + "description": "The aggregated wall-clock time of the dedicated Compute Node cores being part of the Pool." + } + }, + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ] + }, + "BatchStartTask": { + "type": "object", + "description": "Batch will retry Tasks when a recovery operation is triggered on a Node.\nExamples of recovery operations include (but are not limited to) when an\nunhealthy Node is rebooted or a Compute Node disappeared due to host failure.\nRetries due to recovery operations are independent of and are not counted\nagainst the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal\nretry due to a recovery operation may occur. Because of this, all Tasks should\nbe idempotent. This means Tasks need to tolerate being interrupted and\nrestarted without causing any corruption or duplicate data. The best practice\nfor long running Tasks is to use some form of checkpointing. In some cases the\nStartTask may be re-run even though the Compute Node was not rebooted. Special\ncare should be taken to avoid StartTasks which create breakaway process or\ninstall/launch services from the StartTask working directory, as this will\nblock Batch from being able to re-run the StartTask.", + "properties": { + "commandLine": { + "type": "string", + "description": "The command line of the StartTask. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettings", + "description": "The settings for the container under which the StartTask runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers. Files listed under this element are located in the Task's working directory.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the StartTask.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the StartTask runs. If omitted, the Task runs as a non-administrative user unique to the Task." + }, + "maxTaskRetryCount": { + "type": "integer", + "format": "int32", + "description": "The maximum number of times the Task may be retried. The Batch service retries a Task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the Task. If the maximum retry count is -1, the Batch service retries the Task without limit, however this is not recommended for a start task or any task. The default value is 0 (no retries)." + }, + "waitForSuccess": { + "type": "boolean", + "description": "Whether the Batch service should wait for the StartTask to complete successfully (that is, to exit with exit code 0) before scheduling any Tasks on the Compute Node. If true and the StartTask fails on a Node, the Batch service retries the StartTask up to its maximum retry count (maxTaskRetryCount). If the Task has still not completed successfully after all retries, then the Batch service marks the Node unusable, and will not schedule Tasks to it. This condition can be detected via the Compute Node state and failure info details. If false, the Batch service will not wait for the StartTask to complete. In this case, other Tasks can start executing on the Compute Node while the StartTask is still running; and even if the StartTask fails, new Tasks will continue to be scheduled on the Compute Node. The default is true." + } + }, + "required": [ + "commandLine" + ] + }, + "BatchStartTaskInfo": { + "type": "object", + "description": "Information about a StartTask running on a Compute Node.", + "properties": { + "state": { + "$ref": "#/definitions/BatchStartTaskState", + "description": "The state of the StartTask on the Compute Node." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the StartTask started running. This value is reset every time the Task is restarted or retried (that is, this is the most recent time at which the StartTask started running)." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the StartTask stopped running. This is the end time of the most recent run of the StartTask, if that run has completed (even if that run failed and a retry is pending). This element is not present if the StartTask is currently running." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "description": "The exit code of the program specified on the StartTask command line. This property is set only if the StartTask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the StartTask (due to timeout, or user termination via the API) you may see an operating system-defined exit code." + }, + "containerInfo": { + "$ref": "#/definitions/BatchTaskContainerExecutionInfo", + "description": "Information about the container under which the Task is executing. This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/BatchTaskFailureInfo", + "description": "Information describing the Task failure, if any. This property is set only if the Task is in the completed state and encountered a failure." + }, + "retryCount": { + "type": "integer", + "format": "int32", + "description": "The number of times the Task has been retried by the Batch service. Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints." + }, + "lastRetryTime": { + "type": "string", + "format": "date-time", + "description": "The most recent time at which a retry of the Task started running. This element is present only if the Task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the Task has been restarted for reasons other than retry; for example, if the Compute Node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." + }, + "result": { + "$ref": "#/definitions/BatchTaskExecutionResult", + "description": "The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "required": [ + "state", + "startTime", + "retryCount" + ] + }, + "BatchStartTaskState": { + "type": "string", + "description": "BatchStartTaskState enums", + "enum": [ + "running", + "completed" + ], + "x-ms-enum": { + "name": "BatchStartTaskState", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "running", + "description": "The StartTask is currently running." + }, + { + "name": "Completed", + "value": "completed", + "description": "The StartTask has exited with exit code 0, or the StartTask has failed and the retry limit has reached, or the StartTask process did not run due to Task preparation errors (such as resource file download failures)." + } + ] + } + }, + "BatchStartTaskUpdate": { + "type": "object", + "description": "Batch will retry Tasks when a recovery operation is triggered on a Node.\nExamples of recovery operations include (but are not limited to) when an\nunhealthy Node is rebooted or a Compute Node disappeared due to host failure.\nRetries due to recovery operations are independent of and are not counted\nagainst the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal\nretry due to a recovery operation may occur. Because of this, all Tasks should\nbe idempotent. This means Tasks need to tolerate being interrupted and\nrestarted without causing any corruption or duplicate data. The best practice\nfor long running Tasks is to use some form of checkpointing. In some cases the\nStartTask may be re-run even though the Compute Node was not rebooted. Special\ncare should be taken to avoid StartTasks which create breakaway process or\ninstall/launch services from the StartTask working directory, as this will\nblock Batch from being able to re-run the StartTask.", + "properties": { + "commandLine": { + "type": "string", + "description": "The command line of the StartTask. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettingsUpdate", + "description": "The settings for the container under which the StartTask runs. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers. Files listed under this element are located in the Task's working directory.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the StartTask.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the StartTask runs. If omitted, the Task runs as a non-administrative user unique to the Task." + }, + "maxTaskRetryCount": { + "type": "integer", + "format": "int32", + "description": "The maximum number of times the Task may be retried. The Batch service retries a Task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the Task. If the maximum retry count is -1, the Batch service retries the Task without limit, however this is not recommended for a start task or any task. The default value is 0 (no retries)." + }, + "waitForSuccess": { + "type": "boolean", + "description": "Whether the Batch service should wait for the StartTask to complete successfully (that is, to exit with exit code 0) before scheduling any Tasks on the Compute Node. If true and the StartTask fails on a Node, the Batch service retries the StartTask up to its maximum retry count (maxTaskRetryCount). If the Task has still not completed successfully after all retries, then the Batch service marks the Node unusable, and will not schedule Tasks to it. This condition can be detected via the Compute Node state and failure info details. If false, the Batch service will not wait for the StartTask to complete. In this case, other Tasks can start executing on the Compute Node while the StartTask is still running; and even if the StartTask fails, new Tasks will continue to be scheduled on the Compute Node. The default is true." + } + } + }, + "BatchSubtask": { + "type": "object", + "description": "Information about an Azure Batch subtask.", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "The ID of the subtask." + }, + "nodeInfo": { + "$ref": "#/definitions/BatchNodeInfo", + "description": "Information about the Compute Node on which the subtask ran." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the subtask started running. If the subtask has been restarted or retried, this is the most recent time at which the subtask started running." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the subtask completed. This property is set only if the subtask is in the Completed state." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "description": "The exit code of the program specified on the subtask command line. This property is set only if the subtask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the subtask (due to timeout, or user termination via the API) you may see an operating system-defined exit code." + }, + "containerInfo": { + "$ref": "#/definitions/BatchTaskContainerExecutionInfo", + "description": "Information about the container under which the Task is executing. This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/BatchTaskFailureInfo", + "description": "Information describing the Task failure, if any. This property is set only if the Task is in the completed state and encountered a failure." + }, + "state": { + "$ref": "#/definitions/BatchSubtaskState", + "description": "The current state of the subtask." + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the subtask entered its current state." + }, + "previousState": { + "$ref": "#/definitions/BatchSubtaskState", + "description": "The previous state of the subtask. This property is not set if the subtask is in its initial running state." + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the subtask entered its previous state. This property is not set if the subtask is in its initial running state." + }, + "result": { + "$ref": "#/definitions/BatchTaskExecutionResult", + "description": "The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + } + }, + "BatchSubtaskState": { + "type": "string", + "description": "BatchSubtaskState enums", + "enum": [ + "preparing", + "running", + "completed" + ], + "x-ms-enum": { + "name": "BatchSubtaskState", + "modelAsString": true, + "values": [ + { + "name": "Preparing", + "value": "preparing", + "description": "The Task has been assigned to a Compute Node, but is waiting for a required Job Preparation Task to complete on the Compute Node. If the Job Preparation Task succeeds, the Task will move to running. If the Job Preparation Task fails, the Task will return to active and will be eligible to be assigned to a different Compute Node." + }, + { + "name": "Running", + "value": "running", + "description": "The Task is running on a Compute Node. This includes task-level preparation such as downloading resource files or deploying Packages specified on the Task - it does not necessarily mean that the Task command line has started executing." + }, + { + "name": "Completed", + "value": "completed", + "description": "The Task is no longer eligible to run, usually because the Task has finished successfully, or the Task has finished unsuccessfully and has exhausted its retry limit. A Task is also marked as completed if an error occurred launching the Task, or when the Task has been terminated." + } + ] + } + }, + "BatchSupportedImage": { + "type": "object", + "description": "A reference to the Azure Virtual Machines Marketplace Image and additional\ninformation about the Image.", + "properties": { + "nodeAgentSKUId": { + "type": "string", + "description": "The ID of the Compute Node agent SKU which the Image supports.", + "x-ms-client-name": "nodeAgentSkuId" + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "The reference to the Azure Virtual Machine's Marketplace Image." + }, + "osType": { + "$ref": "#/definitions/OSType", + "description": "The type of operating system (e.g. Windows or Linux) of the Image." + }, + "capabilities": { + "type": "array", + "description": "The capabilities or features which the Image supports. Not every capability of the Image is listed. Capabilities in this list are considered of special interest and are generally related to integration with other features in the Azure Batch service.", + "items": { + "type": "string" + } + }, + "batchSupportEndOfLife": { + "type": "string", + "format": "date-time", + "description": "The time when the Azure Batch service will stop accepting create Pool requests for the Image." + }, + "verificationType": { + "$ref": "#/definitions/ImageVerificationType", + "description": "Whether the Azure Batch service actively verifies that the Image is compatible with the associated Compute Node agent SKU." + } + }, + "required": [ + "nodeAgentSKUId", + "imageReference", + "osType", + "verificationType" + ] + }, + "BatchTask": { + "type": "object", + "description": "Batch will retry Tasks when a recovery operation is triggered on a Node.\nExamples of recovery operations include (but are not limited to) when an\nunhealthy Node is rebooted or a Compute Node disappeared due to host failure.\nRetries due to recovery operations are independent of and are not counted\nagainst the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal\nretry due to a recovery operation may occur. Because of this, all Tasks should\nbe idempotent. This means Tasks need to tolerate being interrupted and\nrestarted without causing any corruption or duplicate data. The best practice\nfor long running Tasks is to use some form of checkpointing.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "A display name for the Task. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.", + "readOnly": true + }, + "url": { + "type": "string", + "description": "The URL of the Task.", + "readOnly": true + }, + "eTag": { + "type": "string", + "description": "The ETag of the Task. This is an opaque string. You can use it to detect whether the Task has changed between requests. In particular, you can be pass the ETag when updating a Task to specify that your changes should take effect only if nobody else has modified the Task in the meantime.", + "readOnly": true + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The last modified time of the Task.", + "readOnly": true + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "The creation time of the Task.", + "readOnly": true + }, + "exitConditions": { + "$ref": "#/definitions/ExitConditions", + "description": "How the Batch service should respond when the Task completes.", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/BatchTaskState", + "description": "The current state of the Task.", + "readOnly": true + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Task entered its current state.", + "readOnly": true + }, + "previousState": { + "$ref": "#/definitions/BatchTaskState", + "description": "The previous state of the Task. This property is not set if the Task is in its initial Active state.", + "readOnly": true + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Task entered its previous state. This property is not set if the Task is in its initial Active state.", + "readOnly": true + }, + "commandLine": { + "type": "string", + "description": "The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables).", + "readOnly": true + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettings", + "description": "The settings for the container under which the Task runs. If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files.", + "readOnly": true + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. For multi-instance Tasks, the resource files will only be downloaded to the Compute Node on which the primary Task is executed. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "outputFiles": { + "type": "array", + "description": "A list of files that the Batch service will upload from the Compute Node after running the command line. For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed.", + "items": { + "$ref": "#/definitions/OutputFile" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the Task.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "affinityInfo": { + "$ref": "#/definitions/AffinityInfo", + "description": "A locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task.", + "readOnly": true + }, + "constraints": { + "$ref": "#/definitions/BatchTaskConstraints", + "description": "The execution constraints that apply to this Task." + }, + "requiredSlots": { + "type": "integer", + "format": "int32", + "description": "The number of scheduling slots that the Task requires to run. The default is 1. A Task can only be scheduled to run on a compute node if the node has enough free scheduling slots available. For multi-instance Tasks, this must be 1.", + "readOnly": true + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the Task runs. If omitted, the Task runs as a non-administrative user unique to the Task.", + "readOnly": true + }, + "executionInfo": { + "$ref": "#/definitions/BatchTaskExecutionInfo", + "description": "Information about the execution of the Task.", + "readOnly": true + }, + "nodeInfo": { + "$ref": "#/definitions/BatchNodeInfo", + "description": "Information about the Compute Node on which the Task ran.", + "readOnly": true + }, + "multiInstanceSettings": { + "$ref": "#/definitions/MultiInstanceSettings", + "description": "An object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task.", + "readOnly": true + }, + "stats": { + "$ref": "#/definitions/BatchTaskStatistics", + "description": "Resource usage statistics for the Task.", + "readOnly": true + }, + "dependsOn": { + "$ref": "#/definitions/BatchTaskDependencies", + "description": "The Tasks that this Task depends on. This Task will not be scheduled until all Tasks that it depends on have completed successfully. If any of those Tasks fail and exhaust their retry counts, this Task will never be scheduled.", + "readOnly": true + }, + "applicationPackageReferences": { + "type": "array", + "description": "A list of Packages that the Batch service will deploy to the Compute Node before running the command line. Application packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced package is already on the Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "authenticationTokenSettings": { + "$ref": "#/definitions/AuthenticationTokenSettings", + "description": "The settings for an authentication token that the Task can use to perform Batch service operations. If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job.", + "readOnly": true + } + } + }, + "BatchTaskAddCollectionResult": { + "type": "object", + "description": "The result of adding a collection of Tasks to a Job.", + "properties": { + "value": { + "type": "array", + "description": "The results of the add Task collection operation.", + "items": { + "$ref": "#/definitions/BatchTaskAddResult" + }, + "x-ms-identifiers": [] + } + } + }, + "BatchTaskAddResult": { + "type": "object", + "description": "Result for a single Task added as part of an add Task collection operation.", + "properties": { + "status": { + "$ref": "#/definitions/BatchTaskAddStatus", + "description": "The status of the add Task request." + }, + "taskId": { + "type": "string", + "description": "The ID of the Task for which this is the result." + }, + "eTag": { + "type": "string", + "description": "The ETag of the Task, if the Task was successfully added. You can use this to detect whether the Task has changed between requests. In particular, you can be pass the ETag with an Update Task request to specify that your changes should take effect only if nobody else has modified the Job in the meantime." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The last modified time of the Task." + }, + "location": { + "type": "string", + "description": "The URL of the Task, if the Task was successfully added." + }, + "error": { + "$ref": "#/definitions/BatchError", + "description": "The error encountered while attempting to add the Task." + } + }, + "required": [ + "status", + "taskId" + ] + }, + "BatchTaskAddStatus": { + "type": "string", + "description": "BatchTaskAddStatus enums", + "enum": [ + "success", + "clienterror", + "servererror" + ], + "x-ms-enum": { + "name": "BatchTaskAddStatus", + "modelAsString": true, + "values": [ + { + "name": "Success", + "value": "success", + "description": "The Task was added successfully." + }, + { + "name": "ClientError", + "value": "clienterror", + "description": "The Task failed to add due to a client error and should not be retried without modifying the request as appropriate." + }, + { + "name": "ServerError", + "value": "servererror", + "description": "Task failed to add due to a server error and can be retried without modification." + } + ] + } + }, + "BatchTaskConstraints": { + "type": "object", + "description": "Execution constraints to apply to a Task.", + "properties": { + "maxWallClockTime": { + "type": "string", + "format": "duration", + "description": "The maximum elapsed time that the Task may run, measured from the time the Task starts. If the Task does not complete within the time limit, the Batch service terminates it. If this is not specified, there is no time limit on how long the Task may run." + }, + "retentionTime": { + "type": "string", + "format": "duration", + "description": "The minimum time to retain the Task directory on the Compute Node where it ran, from the time it completes execution. After this time, the Batch service may delete the Task directory and all its contents. The default is 7 days, i.e. the Task directory will be retained for 7 days unless the Compute Node is removed or the Job is deleted." + }, + "maxTaskRetryCount": { + "type": "integer", + "format": "int32", + "description": "The maximum number of times the Task may be retried. The Batch service retries a Task if its exit code is nonzero. Note that this value specifically controls the number of retries for the Task executable due to a nonzero exit code. The Batch service will try the Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the Task after the first attempt. If the maximum retry count is -1, the Batch service retries the Task without limit, however this is not recommended for a start task or any task. The default value is 0 (no retries)." + } + } + }, + "BatchTaskContainerExecutionInfo": { + "type": "object", + "description": "Contains information about the container which a Task is executing.", + "properties": { + "containerId": { + "type": "string", + "description": "The ID of the container." + }, + "state": { + "type": "string", + "description": "The state of the container. This is the state of the container according to the Docker service. It is equivalent to the status field returned by \"docker inspect\"." + }, + "error": { + "type": "string", + "description": "Detailed error information about the container. This is the detailed error string from the Docker service, if available. It is equivalent to the error field returned by \"docker inspect\"." + } + } + }, + "BatchTaskContainerSettings": { + "type": "object", + "description": "The container settings for a Task.", + "properties": { + "containerRunOptions": { + "type": "string", + "description": "Additional options to the container create command. These additional options are supplied as arguments to the \"docker create\" command, in addition to those controlled by the Batch Service." + }, + "imageName": { + "type": "string", + "description": "The Image to use to create the container in which the Task will run. This is the full Image reference, as would be specified to \"docker pull\". If no tag is provided as part of the Image name, the tag \":latest\" is used as a default." + }, + "registry": { + "$ref": "#/definitions/ContainerRegistryReference", + "description": "The private registry which contains the container Image. This setting can be omitted if was already provided at Pool creation." + }, + "workingDirectory": { + "$ref": "#/definitions/ContainerWorkingDirectory", + "description": "The location of the container Task working directory. The default is 'taskWorkingDirectory'." + }, + "containerHostBatchBindMounts": { + "type": "array", + "description": "The paths you want to mounted to container task. If this array is null or be not present, container task will mount entire temporary disk drive in windows (or AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty.", + "items": { + "$ref": "#/definitions/ContainerHostBatchBindMountEntry" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "imageName" + ] + }, + "BatchTaskContainerSettingsUpdate": { + "type": "object", + "description": "The container settings for a Task.", + "properties": { + "containerRunOptions": { + "type": "string", + "description": "Additional options to the container create command. These additional options are supplied as arguments to the \"docker create\" command, in addition to those controlled by the Batch Service." + }, + "imageName": { + "type": "string", + "description": "The Image to use to create the container in which the Task will run. This is the full Image reference, as would be specified to \"docker pull\". If no tag is provided as part of the Image name, the tag \":latest\" is used as a default." + }, + "registry": { + "$ref": "#/definitions/ContainerRegistryReference", + "description": "The private registry which contains the container Image. This setting can be omitted if was already provided at Pool creation." + }, + "workingDirectory": { + "$ref": "#/definitions/ContainerWorkingDirectory", + "description": "The location of the container Task working directory. The default is 'taskWorkingDirectory'." + }, + "containerHostBatchBindMounts": { + "type": "array", + "description": "The paths you want to mounted to container task. If this array is null or be not present, container task will mount entire temporary disk drive in windows (or AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty.", + "items": { + "$ref": "#/definitions/ContainerHostBatchBindMountEntry" + }, + "x-ms-identifiers": [] + } + } + }, + "BatchTaskCounts": { + "type": "object", + "description": "The Task counts for a Job.", + "properties": { + "active": { + "type": "integer", + "format": "int32", + "description": "The number of Tasks in the active state." + }, + "running": { + "type": "integer", + "format": "int32", + "description": "The number of Tasks in the running or preparing state." + }, + "completed": { + "type": "integer", + "format": "int32", + "description": "The number of Tasks in the completed state." + }, + "succeeded": { + "type": "integer", + "format": "int32", + "description": "The number of Tasks which succeeded. A Task succeeds if its result (found in the executionInfo property) is 'success'." + }, + "failed": { + "type": "integer", + "format": "int32", + "description": "The number of Tasks which failed. A Task fails if its result (found in the executionInfo property) is 'failure'." + } + }, + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed" + ] + }, + "BatchTaskCountsResult": { + "type": "object", + "description": "The Task and TaskSlot counts for a Job.", + "properties": { + "taskCounts": { + "$ref": "#/definitions/BatchTaskCounts", + "description": "The number of Tasks per state." + }, + "taskSlotCounts": { + "$ref": "#/definitions/BatchTaskSlotCounts", + "description": "The number of TaskSlots required by Tasks per state." + } + }, + "required": [ + "taskCounts", + "taskSlotCounts" + ] + }, + "BatchTaskCreateContent": { + "type": "object", + "description": "Parameters for creating an Azure Batch Task.", + "properties": { + "id": { + "type": "string", + "description": "A string that uniquely identifies the Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within a Job that differ only by case)." + }, + "displayName": { + "type": "string", + "description": "A display name for the Task. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "exitConditions": { + "$ref": "#/definitions/ExitConditions", + "description": "How the Batch service should respond when the Task completes." + }, + "commandLine": { + "type": "string", + "description": "The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/BatchTaskContainerSettings", + "description": "The settings for the container under which the Task runs. If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "resourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download to the Compute Node before running the command line. For multi-instance Tasks, the resource files will only be downloaded to the Compute Node on which the primary Task is executed. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + }, + "outputFiles": { + "type": "array", + "description": "A list of files that the Batch service will upload from the Compute Node after running the command line. For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed.", + "items": { + "$ref": "#/definitions/OutputFile" + }, + "x-ms-identifiers": [] + }, + "environmentSettings": { + "type": "array", + "description": "A list of environment variable settings for the Task.", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "x-ms-identifiers": [] + }, + "affinityInfo": { + "$ref": "#/definitions/AffinityInfo", + "description": "A locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task." + }, + "constraints": { + "$ref": "#/definitions/BatchTaskConstraints", + "description": "The execution constraints that apply to this Task. If you do not specify constraints, the maxTaskRetryCount is the maxTaskRetryCount specified for the Job, the maxWallClockTime is infinite, and the retentionTime is 7 days." + }, + "requiredSlots": { + "type": "integer", + "format": "int32", + "description": "The number of scheduling slots that the Task required to run. The default is 1. A Task can only be scheduled to run on a compute node if the node has enough free scheduling slots available. For multi-instance Tasks, this must be 1." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "description": "The user identity under which the Task runs. If omitted, the Task runs as a non-administrative user unique to the Task." + }, + "multiInstanceSettings": { + "$ref": "#/definitions/MultiInstanceSettings", + "description": "An object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task." + }, + "dependsOn": { + "$ref": "#/definitions/BatchTaskDependencies", + "description": "The Tasks that this Task depends on. This Task will not be scheduled until all Tasks that it depends on have completed successfully. If any of those Tasks fail and exhaust their retry counts, this Task will never be scheduled. If the Job does not have usesTaskDependencies set to true, and this element is present, the request fails with error code TaskDependenciesNotSpecifiedOnJob." + }, + "applicationPackageReferences": { + "type": "array", + "description": "A list of Packages that the Batch service will deploy to the Compute Node before running the command line. Application packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced package is already on the Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails.", + "items": { + "$ref": "#/definitions/BatchApplicationPackageReference" + }, + "x-ms-identifiers": [] + }, + "authenticationTokenSettings": { + "$ref": "#/definitions/AuthenticationTokenSettings", + "description": "The settings for an authentication token that the Task can use to perform Batch service operations. If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job." + } + }, + "required": [ + "id", + "commandLine" + ] + }, + "BatchTaskDependencies": { + "type": "object", + "description": "Specifies any dependencies of a Task. Any Task that is explicitly specified or\nwithin a dependency range must complete before the dependant Task will be\nscheduled.", + "properties": { + "taskIds": { + "type": "array", + "description": "The list of Task IDs that this Task depends on. All Tasks in this list must complete successfully before the dependent Task can be scheduled. The taskIds collection is limited to 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection exceeds the maximum length, the Add Task request fails with error code TaskDependencyListTooLong. In this case consider using Task ID ranges instead.", + "items": { + "type": "string" + } + }, + "taskIdRanges": { + "type": "array", + "description": "The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete successfully before the dependent Task can be scheduled.", + "items": { + "$ref": "#/definitions/BatchTaskIdRange" + }, + "x-ms-identifiers": [] + } + } + }, + "BatchTaskExecutionInfo": { + "type": "object", + "description": "Information about the execution of a Task.", + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Task started running. 'Running' corresponds to the running state, so if the Task specifies resource files or Packages, then the start time reflects the time at which the Task started downloading or deploying these. If the Task has been restarted or retried, this is the most recent time at which the Task started running. This property is present only for Tasks that are in the running or completed state." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the Task completed. This property is set only if the Task is in the Completed state." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "description": "The exit code of the program specified on the Task command line. This property is set only if the Task is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the Task (due to timeout, or user termination via the API) you may see an operating system-defined exit code." + }, + "containerInfo": { + "$ref": "#/definitions/BatchTaskContainerExecutionInfo", + "description": "Information about the container under which the Task is executing. This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/BatchTaskFailureInfo", + "description": "Information describing the Task failure, if any. This property is set only if the Task is in the completed state and encountered a failure." + }, + "retryCount": { + "type": "integer", + "format": "int32", + "description": "The number of times the Task has been retried by the Batch service. Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints." + }, + "lastRetryTime": { + "type": "string", + "format": "date-time", + "description": "The most recent time at which a retry of the Task started running. This element is present only if the Task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the Task has been restarted for reasons other than retry; for example, if the Compute Node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." + }, + "requeueCount": { + "type": "integer", + "format": "int32", + "description": "The number of times the Task has been requeued by the Batch service as the result of a user request. When the user removes Compute Nodes from a Pool (by resizing/shrinking the pool) or when the Job is being disabled, the user can specify that running Tasks on the Compute Nodes be requeued for execution. This count tracks how many times the Task has been requeued for these reasons." + }, + "lastRequeueTime": { + "type": "string", + "format": "date-time", + "description": "The most recent time at which the Task has been requeued by the Batch service as the result of a user request. This property is set only if the requeueCount is nonzero." + }, + "result": { + "$ref": "#/definitions/BatchTaskExecutionResult", + "description": "The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "required": [ + "retryCount", + "requeueCount" + ] + }, + "BatchTaskExecutionResult": { + "type": "string", + "description": "BatchTaskExecutionResult enums", + "enum": [ + "success", + "failure" + ], + "x-ms-enum": { + "name": "BatchTaskExecutionResult", + "modelAsString": true, + "values": [ + { + "name": "Success", + "value": "success", + "description": "The Task ran successfully." + }, + { + "name": "Failure", + "value": "failure", + "description": "There was an error during processing of the Task. The failure may have occurred before the Task process was launched, while the Task process was executing, or after the Task process exited." + } + ] + } + }, + "BatchTaskFailureInfo": { + "type": "object", + "description": "Information about a Task failure.", + "properties": { + "category": { + "$ref": "#/definitions/ErrorCategory", + "description": "The category of the Task error." + }, + "code": { + "type": "string", + "description": "An identifier for the Task error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the Task error, intended to be suitable for display in a user interface." + }, + "details": { + "type": "array", + "description": "A list of additional details related to the error.", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "category" + ] + }, + "BatchTaskGroup": { + "type": "object", + "description": "A collection of Azure Batch Tasks to add.", + "properties": { + "value": { + "type": "array", + "description": "The collection of Tasks to add. The maximum count of Tasks is 100. The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each Task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer Tasks.", + "items": { + "$ref": "#/definitions/BatchTaskCreateContent" + } + } + }, + "required": [ + "value" + ] + }, + "BatchTaskIdRange": { + "type": "object", + "description": "The start and end of the range are inclusive. For example, if a range has start\n9 and end 12, then it represents Tasks '9', '10', '11' and '12'.", + "properties": { + "start": { + "type": "integer", + "format": "int32", + "description": "The first Task ID in the range." + }, + "end": { + "type": "integer", + "format": "int32", + "description": "The last Task ID in the range." + } + }, + "required": [ + "start", + "end" + ] + }, + "BatchTaskInfo": { + "type": "object", + "description": "Information about a Task running on a Compute Node.", + "properties": { + "taskUrl": { + "type": "string", + "description": "The URL of the Task." + }, + "jobId": { + "type": "string", + "description": "The ID of the Job to which the Task belongs." + }, + "taskId": { + "type": "string", + "description": "The ID of the Task." + }, + "subtaskId": { + "type": "integer", + "format": "int32", + "description": "The ID of the subtask if the Task is a multi-instance Task." + }, + "taskState": { + "$ref": "#/definitions/BatchTaskState", + "description": "The current state of the Task." + }, + "executionInfo": { + "$ref": "#/definitions/BatchTaskExecutionInfo", + "description": "Information about the execution of the Task." + } + }, + "required": [ + "taskState" + ] + }, + "BatchTaskListResult": { + "type": "object", + "description": "The result of listing the Tasks in a Job.", + "properties": { + "value": { + "type": "array", + "description": "The list of Tasks.", + "items": { + "$ref": "#/definitions/BatchTask" + } + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchTaskListSubtasksResult": { + "type": "object", + "description": "The result of listing the subtasks of a Task.", + "properties": { + "value": { + "type": "array", + "description": "The list of subtasks.", + "items": { + "$ref": "#/definitions/BatchSubtask" + } + }, + "odata.nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "BatchTaskSchedulingPolicy": { + "type": "object", + "description": "Specifies how Tasks should be distributed across Compute Nodes.", + "properties": { + "nodeFillType": { + "$ref": "#/definitions/BatchNodeFillType", + "description": "How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread." + } + }, + "required": [ + "nodeFillType" + ] + }, + "BatchTaskSchedulingPolicyUpdate": { + "type": "object", + "description": "Specifies how Tasks should be distributed across Compute Nodes.", + "properties": { + "nodeFillType": { + "$ref": "#/definitions/BatchNodeFillType", + "description": "How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread." + } + } + }, + "BatchTaskSlotCounts": { + "type": "object", + "description": "The TaskSlot counts for a Job.", + "properties": { + "active": { + "type": "integer", + "format": "int32", + "description": "The number of TaskSlots for active Tasks." + }, + "running": { + "type": "integer", + "format": "int32", + "description": "The number of TaskSlots for running Tasks." + }, + "completed": { + "type": "integer", + "format": "int32", + "description": "The number of TaskSlots for completed Tasks." + }, + "succeeded": { + "type": "integer", + "format": "int32", + "description": "The number of TaskSlots for succeeded Tasks." + }, + "failed": { + "type": "integer", + "format": "int32", + "description": "The number of TaskSlots for failed Tasks." + } + }, + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed" + ] + }, + "BatchTaskState": { + "type": "string", + "description": "BatchTaskState enums", + "enum": [ + "active", + "preparing", + "running", + "completed" + ], + "x-ms-enum": { + "name": "BatchTaskState", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "active", + "description": "The Task is queued and able to run, but is not currently assigned to a Compute Node. A Task enters this state when it is created, when it is enabled after being disabled, or when it is awaiting a retry after a failed run." + }, + { + "name": "Preparing", + "value": "preparing", + "description": "The Task has been assigned to a Compute Node, but is waiting for a required Job Preparation Task to complete on the Compute Node. If the Job Preparation Task succeeds, the Task will move to running. If the Job Preparation Task fails, the Task will return to active and will be eligible to be assigned to a different Compute Node." + }, + { + "name": "Running", + "value": "running", + "description": "The Task is running on a Compute Node. This includes task-level preparation such as downloading resource files or deploying Packages specified on the Task - it does not necessarily mean that the Task command line has started executing." + }, + { + "name": "Completed", + "value": "completed", + "description": "The Task is no longer eligible to run, usually because the Task has finished successfully, or the Task has finished unsuccessfully and has exhausted its retry limit. A Task is also marked as completed if an error occurred launching the Task, or when the Task has been terminated." + } + ] + } + }, + "BatchTaskStatistics": { + "type": "object", + "description": "Resource usage statistics for a Task.", + "properties": { + "url": { + "type": "string", + "description": "The URL of the statistics." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "userCPUTime": { + "type": "string", + "format": "duration", + "description": "The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task.", + "x-ms-client-name": "userCpuTime" + }, + "kernelCPUTime": { + "type": "string", + "format": "duration", + "description": "The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task.", + "x-ms-client-name": "kernelCpuTime" + }, + "wallClockTime": { + "type": "string", + "format": "duration", + "description": "The total wall clock time of the Task. The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If the Task was retried, this includes the wall clock time of all the Task retries." + }, + "readIOps": { + "type": "integer", + "format": "int64", + "description": "The total number of disk read operations made by the Task." + }, + "writeIOps": { + "type": "integer", + "format": "int64", + "description": "The total number of disk write operations made by the Task." + }, + "readIOGiB": { + "type": "number", + "format": "float", + "description": "The total gibibytes read from disk by the Task." + }, + "writeIOGiB": { + "type": "number", + "format": "float", + "description": "The total gibibytes written to disk by the Task." + }, + "waitTime": { + "type": "string", + "format": "duration", + "description": "The total wait time of the Task. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.)." + } + }, + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ] + }, + "CachingType": { + "type": "string", + "description": "CachingType enums", + "enum": [ + "none", + "readonly", + "readwrite" + ], + "x-ms-enum": { + "name": "CachingType", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "none", + "description": "The caching mode for the disk is not enabled." + }, + { + "name": "ReadOnly", + "value": "readonly", + "description": "The caching mode for the disk is read only." + }, + { + "name": "ReadWrite", + "value": "readwrite", + "description": "The caching mode for the disk is read and write." + } + ] + } + }, + "CifsMountConfiguration": { + "type": "object", + "description": "Information used to connect to a CIFS file system.", + "properties": { + "username": { + "type": "string", + "description": "The user to use for authentication against the CIFS file system." + }, + "source": { + "type": "string", + "description": "The URI of the file system to mount." + }, + "relativeMountPath": { + "type": "string", + "description": "The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable." + }, + "mountOptions": { + "type": "string", + "description": "Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux." + }, + "password": { + "type": "string", + "format": "password", + "description": "The password to use for authentication against the CIFS file system.", + "x-ms-secret": true + } + }, + "required": [ + "username", + "source", + "relativeMountPath", + "password" + ] + }, + "ContainerConfiguration": { + "type": "object", + "description": "The configuration for container-enabled Pools.", + "properties": { + "type": { + "$ref": "#/definitions/ContainerType", + "description": "The container technology to be used." + }, + "containerImageNames": { + "type": "array", + "description": "The collection of container Image names. This is the full Image reference, as would be specified to \"docker pull\". An Image will be sourced from the default Docker registry unless the Image is fully qualified with an alternative registry.", + "items": { + "type": "string" + } + }, + "containerRegistries": { + "type": "array", + "description": "Additional private registries from which containers can be pulled. If any Images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.", + "items": { + "$ref": "#/definitions/ContainerRegistryReference" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "type" + ] + }, + "ContainerConfigurationUpdate": { + "type": "object", + "description": "The configuration for container-enabled Pools.", + "properties": { + "type": { + "$ref": "#/definitions/ContainerType", + "description": "The container technology to be used." + }, + "containerImageNames": { + "type": "array", + "description": "The collection of container Image names. This is the full Image reference, as would be specified to \"docker pull\". An Image will be sourced from the default Docker registry unless the Image is fully qualified with an alternative registry.", + "items": { + "type": "string" + } + }, + "containerRegistries": { + "type": "array", + "description": "Additional private registries from which containers can be pulled. If any Images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.", + "items": { + "$ref": "#/definitions/ContainerRegistryReference" + }, + "x-ms-identifiers": [] + } + } + }, + "ContainerHostBatchBindMountEntry": { + "type": "object", + "description": "The entry of path and mount mode you want to mount into task container.", + "properties": { + "source": { + "$ref": "#/definitions/ContainerHostDataPath", + "description": "The path which be mounted to container customer can select." + }, + "isReadOnly": { + "type": "boolean", + "description": "Mount this source path as read-only mode or not. Default value is false (read/write mode). For Linux, if you mount this path as a read/write mode, this does not mean that all users in container have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, all users within the container will not be able to modify the path." + } + } + }, + "ContainerHostDataPath": { + "type": "string", + "description": "The paths which will be mounted to container task's container.", + "enum": [ + "regional", + "zonal" + ], + "x-ms-enum": { + "name": "ContainerHostDataPath", + "modelAsString": true, + "values": [ + { + "name": "Regional", + "value": "regional", + "description": "All nodes in the pool will be allocated in the same region." + }, + { + "name": "Zonal", + "value": "zonal", + "description": "Nodes in the pool will be spread across different availability zones with best effort balancing." + } + ] + } + }, + "ContainerRegistryReference": { + "type": "object", + "description": "A private container registry.", + "properties": { + "username": { + "type": "string", + "description": "The user name to log into the registry server." + }, + "password": { + "type": "string", + "format": "password", + "description": "The password to log into the registry server.", + "x-ms-secret": true + }, + "registryServer": { + "type": "string", + "description": "The registry URL. If omitted, the default is \"docker.io\"." + }, + "identityReference": { + "$ref": "#/definitions/BatchNodeIdentityReference", + "description": "The reference to the user assigned identity to use to access an Azure Container Registry instead of username and password." + } + } + }, + "ContainerType": { + "type": "string", + "description": "ContainerType enums", + "enum": [ + "dockerCompatible", + "criCompatible" + ], + "x-ms-enum": { + "name": "ContainerType", + "modelAsString": true, + "values": [ + { + "name": "DockerCompatible", + "value": "dockerCompatible", + "description": "A Docker compatible container technology will be used to launch the containers." + }, + { + "name": "CriCompatible", + "value": "criCompatible", + "description": "A CRI based technology will be used to launch the containers." + } + ] + } + }, + "ContainerWorkingDirectory": { + "type": "string", + "description": "ContainerWorkingDirectory enums", + "enum": [ + "taskWorkingDirectory", + "containerImageDefault" + ], + "x-ms-enum": { + "name": "ContainerWorkingDirectory", + "modelAsString": true, + "values": [ + { + "name": "TaskWorkingDirectory", + "value": "taskWorkingDirectory", + "description": "Use the standard Batch service Task working directory, which will contain the Task Resource Files populated by Batch." + }, + { + "name": "ContainerImageDefault", + "value": "containerImageDefault", + "description": "Use the working directory defined in the container Image. Beware that this directory will not contain the Resource Files downloaded by Batch." + } + ] + } + }, + "DataDisk": { + "type": "object", + "description": "Settings which will be used by the data disks associated to Compute Nodes in\nthe Pool. When using attached data disks, you need to mount and format the\ndisks from within a VM to use them.", + "properties": { + "lun": { + "type": "integer", + "format": "int32", + "description": "The logical unit number. The logicalUnitNumber is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct logicalUnitNumber. The value must be between 0 and 63, inclusive.", + "x-ms-client-name": "logicalUnitNumber" + }, + "caching": { + "$ref": "#/definitions/CachingType", + "description": "The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/." + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "The initial disk size in gigabytes.", + "x-ms-client-name": "diskSizeGb" + }, + "storageAccountType": { + "$ref": "#/definitions/StorageAccountType", + "description": "The storage Account type to be used for the data disk. If omitted, the default is \"standard_lrs\"." + } + }, + "required": [ + "lun", + "diskSizeGB" + ] + }, + "DependencyAction": { + "type": "string", + "description": "DependencyAction enums", + "enum": [ + "satisfy", + "block" + ], + "x-ms-enum": { + "name": "DependencyAction", + "modelAsString": true, + "values": [ + { + "name": "Satisfy", + "value": "satisfy", + "description": "Satisfy tasks waiting on this task; once all dependencies are satisfied, the task will be scheduled to run." + }, + { + "name": "Block", + "value": "block", + "description": "Blocks tasks waiting on this task, preventing them from being scheduled." + } + ] + } + }, + "DiffDiskPlacement": { + "type": "string", + "description": "Specifies the ephemeral disk placement for operating system disk for all compute nodes (VMs) in the pool. This property can be used by user in the request to choose which location the operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements", + "enum": [ + "cachedisk" + ], + "x-ms-enum": { + "name": "DiffDiskPlacement", + "modelAsString": true, + "values": [ + { + "name": "CacheDisk", + "value": "cachedisk", + "description": "The Ephemeral OS Disk is stored on the VM cache." + } + ] + } + }, + "DiffDiskSettings": { + "type": "object", + "description": "Specifies the ephemeral Disk Settings for the operating system disk used by the\ncompute node (VM).", + "properties": { + "placement": { + "$ref": "#/definitions/DiffDiskPlacement", + "description": "Specifies the ephemeral disk placement for operating system disk for all VMs in the pool. This property can be used by user in the request to choose the location e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements." + } + } + }, + "DisableBatchJobOption": { + "type": "string", + "description": "DisableBatchJobOption enums", + "enum": [ + "requeue", + "terminate", + "wait" + ], + "x-ms-enum": { + "name": "DisableBatchJobOption", + "modelAsString": true, + "values": [ + { + "name": "Requeue", + "value": "requeue", + "description": "Terminate running Tasks and requeue them. The Tasks will run again when the Job is enabled." + }, + { + "name": "Terminate", + "value": "terminate", + "description": "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again." + }, + { + "name": "Wait", + "value": "wait", + "description": "Allow currently running Tasks to complete." + } + ] + } + }, + "DiskEncryptionConfiguration": { + "type": "object", + "description": "The disk encryption configuration applied on compute nodes in the pool.\nDisk encryption configuration is not supported on Linux pool created with\nAzure Compute Gallery Image.", + "properties": { + "targets": { + "type": "array", + "description": "The list of disk targets Batch Service will encrypt on the compute node. The list of disk targets Batch Service will encrypt on the compute node.", + "items": { + "$ref": "#/definitions/DiskEncryptionTarget" + } + } + } + }, + "DiskEncryptionTarget": { + "type": "string", + "description": "DiskEncryptionTarget enums", + "enum": [ + "osdisk", + "temporarydisk" + ], + "x-ms-enum": { + "name": "DiskEncryptionTarget", + "modelAsString": true, + "values": [ + { + "name": "OsDisk", + "value": "osdisk", + "description": "The OS Disk on the compute node is encrypted." + }, + { + "name": "TemporaryDisk", + "value": "temporarydisk", + "description": "The temporary disk on the compute node is encrypted. On Linux this encryption applies to other partitions (such as those on mounted data disks) when encryption occurs at boot time." + } + ] + } + }, + "DynamicVNetAssignmentScope": { + "type": "string", + "description": "DynamicVNetAssignmentScope enums", + "enum": [ + "none", + "job" + ], + "x-ms-enum": { + "name": "DynamicVNetAssignmentScope", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "none", + "description": "No dynamic VNet assignment is enabled." + }, + { + "name": "Job", + "value": "job", + "description": "Dynamic VNet assignment is done per-job." + } + ] + } + }, + "ElevationLevel": { + "type": "string", + "description": "ElevationLevel enums", + "enum": [ + "nonadmin", + "admin" + ], + "x-ms-enum": { + "name": "ElevationLevel", + "modelAsString": true, + "values": [ + { + "name": "NonAdmin", + "value": "nonadmin", + "description": "The user is a standard user without elevated access." + }, + { + "name": "Admin", + "value": "admin", + "description": "The user is a user with elevated access and operates with full Administrator permissions." + } + ] + } + }, + "EnvironmentSetting": { + "type": "object", + "description": "An environment variable to be set on a Task process.", + "properties": { + "name": { + "type": "string", + "description": "The name of the environment variable." + }, + "value": { + "type": "string", + "description": "The value of the environment variable." + } + }, + "required": [ + "name" + ] + }, + "ErrorCategory": { + "type": "string", + "description": "ErrorCategory enums", + "enum": [ + "usererror", + "servererror" + ], + "x-ms-enum": { + "name": "ErrorCategory", + "modelAsString": true, + "values": [ + { + "name": "UserError", + "value": "usererror", + "description": "The error is due to a user issue, such as misconfiguration." + }, + { + "name": "ServerError", + "value": "servererror", + "description": "The error is due to an internal server issue." + } + ] + } + }, + "ExitCodeMapping": { + "type": "object", + "description": "How the Batch service should respond if a Task exits with a particular exit\ncode.", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "description": "A process exit code." + }, + "exitOptions": { + "$ref": "#/definitions/ExitOptions", + "description": "How the Batch service should respond if the Task exits with this exit code." + } + }, + "required": [ + "code", + "exitOptions" + ] + }, + "ExitCodeRangeMapping": { + "type": "object", + "description": "A range of exit codes and how the Batch service should respond to exit codes\nwithin that range.", + "properties": { + "start": { + "type": "integer", + "format": "int32", + "description": "The first exit code in the range." + }, + "end": { + "type": "integer", + "format": "int32", + "description": "The last exit code in the range." + }, + "exitOptions": { + "$ref": "#/definitions/ExitOptions", + "description": "How the Batch service should respond if the Task exits with an exit code in the range start to end (inclusive)." + } + }, + "required": [ + "start", + "end", + "exitOptions" + ] + }, + "ExitConditions": { + "type": "object", + "description": "Specifies how the Batch service should respond when the Task completes.", + "properties": { + "exitCodes": { + "type": "array", + "description": "A list of individual Task exit codes and how the Batch service should respond to them.", + "items": { + "$ref": "#/definitions/ExitCodeMapping" + }, + "x-ms-identifiers": [] + }, + "exitCodeRanges": { + "type": "array", + "description": "A list of Task exit code ranges and how the Batch service should respond to them.", + "items": { + "$ref": "#/definitions/ExitCodeRangeMapping" + }, + "x-ms-identifiers": [] + }, + "preProcessingError": { + "$ref": "#/definitions/ExitOptions", + "description": "How the Batch service should respond if the Task fails to start due to an error." + }, + "fileUploadError": { + "$ref": "#/definitions/ExitOptions", + "description": "How the Batch service should respond if a file upload error occurs. If the Task exited with an exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file upload error, then the action specified by the exit code takes precedence." + }, + "default": { + "$ref": "#/definitions/ExitOptions", + "description": "How the Batch service should respond if the Task fails with an exit condition not covered by any of the other properties. This value is used if the Task exits with any nonzero exit code not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the preProcessingError property is not present, or with a file upload error if the fileUploadError property is not present. If you want non-default behavior on exit code 0, you must list it explicitly using the exitCodes or exitCodeRanges collection." + } + } + }, + "ExitOptions": { + "type": "object", + "description": "Specifies how the Batch service responds to a particular exit condition.", + "properties": { + "jobAction": { + "$ref": "#/definitions/BatchJobAction", + "description": "An action to take on the Job containing the Task, if the Task completes with the given exit condition and the Job's onTaskFailed property is 'performExitOptionsJobAction'. The default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "dependencyAction": { + "$ref": "#/definitions/DependencyAction", + "description": "An action that the Batch service performs on Tasks that depend on this Task. Possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks." + } + } + }, + "FileProperties": { + "type": "object", + "description": "The properties of a file on a Compute Node.", + "properties": { + "creationTime": { + "type": "string", + "format": "date-time", + "description": "The file creation time. The creation time is not returned for files on Linux Compute Nodes." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The time at which the file was last modified." + }, + "contentLength": { + "type": "string", + "description": "The length of the file." + }, + "contentType": { + "type": "string", + "description": "The content type of the file." + }, + "fileMode": { + "type": "string", + "description": "The file mode attribute in octal format. The file mode is returned only for files on Linux Compute Nodes." + } + }, + "required": [ + "lastModified", + "contentLength" + ] + }, + "HttpHeader": { + "type": "object", + "description": "An HTTP header name-value pair", + "properties": { + "name": { + "type": "string", + "description": "The case-insensitive name of the header to be used while uploading output files." + }, + "value": { + "type": "string", + "description": "The value of the header to be used while uploading output files." + } + }, + "required": [ + "name" + ] + }, + "ImageReference": { + "type": "object", + "description": "A reference to an Azure Virtual Machines Marketplace Image or a Azure Compute Gallery Image.\nTo get the list of all Azure Marketplace Image references verified by Azure Batch, see the\n' List Supported Images ' operation.", + "properties": { + "publisher": { + "type": "string", + "description": "The publisher of the Azure Virtual Machines Marketplace Image. For example, Canonical or MicrosoftWindowsServer." + }, + "offer": { + "type": "string", + "description": "The offer type of the Azure Virtual Machines Marketplace Image. For example, UbuntuServer or WindowsServer." + }, + "sku": { + "type": "string", + "description": "The SKU of the Azure Virtual Machines Marketplace Image. For example, 18.04-LTS or 2019-Datacenter." + }, + "version": { + "type": "string", + "description": "The version of the Azure Virtual Machines Marketplace Image. A value of 'latest' can be specified to select the latest version of an Image. If omitted, the default is 'latest'." + }, + "virtualMachineImageId": { + "type": "string", + "description": "The ARM resource identifier of the Azure Compute Gallery Image. Compute Nodes in the Pool will be created using this Image Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} or /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} for always defaulting to the latest image version. This property is mutually exclusive with other ImageReference properties. The Azure Compute Gallery Image must have replicas in the same region and must be in the same subscription as the Azure Batch account. If the image version is not specified in the imageId, the latest version will be used. For information about the firewall settings for the Batch Compute Node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration." + }, + "exactVersion": { + "type": "string", + "description": "The specific version of the platform image or marketplace image used to create the node. This read-only field differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'.", + "readOnly": true + }, + "sharedGalleryImageId": { + "type": "string", + "description": "The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call." + }, + "communityGalleryImageId": { + "type": "string", + "description": "The community gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from community gallery image GET call." + } + } + }, + "ImageVerificationType": { + "type": "string", + "description": "ImageVerificationType enums", + "enum": [ + "verified", + "unverified" + ], + "x-ms-enum": { + "name": "ImageVerificationType", + "modelAsString": true, + "values": [ + { + "name": "Verified", + "value": "verified", + "description": "The Image is guaranteed to be compatible with the associated Compute Node agent SKU and all Batch features have been confirmed to work as expected." + }, + { + "name": "Unverified", + "value": "unverified", + "description": "The associated Compute Node agent SKU should have binary compatibility with the Image, but specific functionality has not been verified." + } + ] + } + }, + "InboundEndpoint": { + "type": "object", + "description": "An inbound endpoint on a Compute Node.", + "properties": { + "name": { + "type": "string", + "description": "The name of the endpoint." + }, + "protocol": { + "$ref": "#/definitions/InboundEndpointProtocol", + "description": "The protocol of the endpoint." + }, + "publicIPAddress": { + "type": "string", + "description": "The public IP address of the Compute Node.", + "x-ms-client-name": "publicIpAddress" + }, + "publicFQDN": { + "type": "string", + "description": "The public fully qualified domain name for the Compute Node." + }, + "frontendPort": { + "type": "integer", + "format": "int32", + "description": "The public port number of the endpoint." + }, + "backendPort": { + "type": "integer", + "format": "int32", + "description": "The backend port number of the endpoint." + } + }, + "required": [ + "name", + "protocol", + "publicIPAddress", + "publicFQDN", + "frontendPort", + "backendPort" + ] + }, + "InboundEndpointProtocol": { + "type": "string", + "description": "InboundEndpointProtocol enums", + "enum": [ + "tcp", + "udp" + ], + "x-ms-enum": { + "name": "InboundEndpointProtocol", + "modelAsString": true, + "values": [ + { + "name": "Tcp", + "value": "tcp", + "description": "Use TCP for the endpoint." + }, + { + "name": "Udp", + "value": "udp", + "description": "Use UDP for the endpoint." + } + ] + } + }, + "InboundNatPool": { + "type": "object", + "description": "A inbound NAT Pool that can be used to address specific ports on Compute Nodes\nin a Batch Pool externally.", + "properties": { + "name": { + "type": "string", + "description": "The name of the endpoint. The name must be unique within a Batch Pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400." + }, + "protocol": { + "$ref": "#/definitions/InboundEndpointProtocol", + "description": "The protocol of the endpoint." + }, + "backendPort": { + "type": "integer", + "format": "int32", + "description": "The port number on the Compute Node. This must be unique within a Batch Pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400." + }, + "frontendPortRangeStart": { + "type": "integer", + "format": "int32", + "description": "The first port number in the range of external ports that will be used to provide inbound access to the backendPort on individual Compute Nodes. Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a Pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400." + }, + "frontendPortRangeEnd": { + "type": "integer", + "format": "int32", + "description": "The last port number in the range of external ports that will be used to provide inbound access to the backendPort on individual Compute Nodes. Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a Pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400." + }, + "networkSecurityGroupRules": { + "type": "array", + "description": "A list of network security group rules that will be applied to the endpoint. The maximum number of rules that can be specified across all the endpoints on a Batch Pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.", + "items": { + "$ref": "#/definitions/NetworkSecurityGroupRule" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "name", + "protocol", + "backendPort", + "frontendPortRangeStart", + "frontendPortRangeEnd" + ] + }, + "InstanceViewStatus": { + "type": "object", + "description": "The instance view status.", + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "displayStatus": { + "type": "string", + "description": "The localized label for the status." + }, + "level": { + "$ref": "#/definitions/StatusLevelTypes", + "description": "Level code." + }, + "message": { + "type": "string", + "description": "The detailed status message." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + } + }, + "IpAddressProvisioningType": { + "type": "string", + "description": "IPAddressProvisioningType enums", + "enum": [ + "batchmanaged", + "usermanaged", + "nopublicipaddresses" + ], + "x-ms-enum": { + "name": "IpAddressProvisioningType", + "modelAsString": true, + "values": [ + { + "name": "BatchManaged", + "value": "batchmanaged", + "description": "A public IP will be created and managed by Batch. There may be multiple public IPs depending on the size of the Pool." + }, + { + "name": "UserManaged", + "value": "usermanaged", + "description": "Public IPs are provided by the user and will be used to provision the Compute Nodes." + }, + { + "name": "NoPublicIpAddresses", + "value": "nopublicipaddresses", + "description": "No public IP Address will be created." + } + ] + } + }, + "LinuxUserConfiguration": { + "type": "object", + "description": "Properties used to create a user Account on a Linux Compute Node.", + "properties": { + "uid": { + "type": "integer", + "format": "int32", + "description": "The user ID of the user Account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid." + }, + "gid": { + "type": "integer", + "format": "int32", + "description": "The group ID for the user Account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid." + }, + "sshPrivateKey": { + "type": "string", + "format": "password", + "description": "The SSH private key for the user Account. The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between Compute Nodes in a Linux Pool when the Pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between Compute Nodes (no modification of the user's .ssh directory is done).", + "x-ms-secret": true + } + } + }, + "LoginMode": { + "type": "string", + "description": "LoginMode enums", + "enum": [ + "batch", + "interactive" + ], + "x-ms-enum": { + "name": "LoginMode", + "modelAsString": true, + "values": [ + { + "name": "Batch", + "value": "batch", + "description": "The LOGON32_LOGON_BATCH Win32 login mode. The batch login mode is recommended for long running parallel processes." + }, + { + "name": "Interactive", + "value": "interactive", + "description": "The LOGON32_LOGON_INTERACTIVE Win32 login mode. UAC is enabled on Windows VirtualMachineConfiguration Pools. If this option is used with an elevated user identity in a Windows VirtualMachineConfiguration Pool, the user session will not be elevated unless the application executed by the Task command line is configured to always require administrative privilege or to always require maximum privilege." + } + ] + } + }, + "ManagedDisk": { + "type": "object", + "description": "The managed disk parameters.", + "properties": { + "storageAccountType": { + "$ref": "#/definitions/StorageAccountType", + "description": "The storage account type for managed disk." + }, + "securityProfile": { + "$ref": "#/definitions/VMDiskSecurityProfile", + "description": "Specifies the security profile settings for the managed disk." + } + } + }, + "MetadataItem": { + "type": "object", + "description": "The Batch service does not assign any meaning to this metadata; it is solely\nfor the use of user code.", + "properties": { + "name": { + "type": "string", + "description": "The name of the metadata item." + }, + "value": { + "type": "string", + "description": "The value of the metadata item." + } + }, + "required": [ + "name", + "value" + ] + }, + "MountConfiguration": { + "type": "object", + "description": "The file system to mount on each node.", + "properties": { + "azureBlobFileSystemConfiguration": { + "$ref": "#/definitions/AzureBlobFileSystemConfiguration", + "description": "The Azure Storage Container to mount using blob FUSE on each node. This property is mutually exclusive with all other properties." + }, + "nfsMountConfiguration": { + "$ref": "#/definitions/NfsMountConfiguration", + "description": "The NFS file system to mount on each node. This property is mutually exclusive with all other properties." + }, + "cifsMountConfiguration": { + "$ref": "#/definitions/CifsMountConfiguration", + "description": "The CIFS/SMB file system to mount on each node. This property is mutually exclusive with all other properties." + }, + "azureFileShareConfiguration": { + "$ref": "#/definitions/AzureFileShareConfiguration", + "description": "The Azure File Share to mount on each node. This property is mutually exclusive with all other properties." + } + } + }, + "MultiInstanceSettings": { + "type": "object", + "description": "Multi-instance Tasks are commonly used to support MPI Tasks. In the MPI case,\nif any of the subtasks fail (for example due to exiting with a non-zero exit\ncode) the entire multi-instance Task fails. The multi-instance Task is then\nterminated and retried, up to its retry limit.", + "properties": { + "numberOfInstances": { + "type": "integer", + "format": "int32", + "description": "The number of Compute Nodes required by the Task. If omitted, the default is 1." + }, + "coordinationCommandLine": { + "type": "string", + "description": "The command line to run on all the Compute Nodes to enable them to coordinate when the primary runs the main Task command. A typical coordination command line launches a background service and verifies that the service is ready to process inter-node messages." + }, + "commonResourceFiles": { + "type": "array", + "description": "A list of files that the Batch service will download before running the coordination command line. The difference between common resource files and Task resource files is that common resource files are downloaded for all subtasks including the primary, whereas Task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the Task working directory, but instead are downloaded to the Task root directory (one directory above the working directory). There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "coordinationCommandLine" + ] + }, + "NameValuePair": { + "type": "object", + "description": "Represents a name-value pair.", + "properties": { + "name": { + "type": "string", + "description": "The name in the name-value pair." + }, + "value": { + "type": "string", + "description": "The value in the name-value pair." + } + } + }, + "NetworkConfiguration": { + "type": "object", + "description": "The network configuration for a Pool.", + "properties": { + "subnetId": { + "type": "string", + "description": "The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. Only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. Enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration." + }, + "dynamicVNetAssignmentScope": { + "$ref": "#/definitions/DynamicVNetAssignmentScope", + "description": "The scope of dynamic vnet assignment." + }, + "endpointConfiguration": { + "$ref": "#/definitions/BatchPoolEndpointConfiguration", + "description": "The configuration for endpoints on Compute Nodes in the Batch Pool." + }, + "publicIPAddressConfiguration": { + "$ref": "#/definitions/PublicIpAddressConfiguration", + "description": "The Public IPAddress configuration for Compute Nodes in the Batch Pool.", + "x-ms-client-name": "publicIpAddressConfiguration" + }, + "enableAcceleratedNetworking": { + "type": "boolean", + "description": "Whether this pool should enable accelerated networking. Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview." + } + } + }, + "NetworkConfigurationUpdate": { + "type": "object", + "description": "The network configuration for a Pool.", + "properties": { + "subnetId": { + "type": "string", + "description": "The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. Only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. Enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration." + }, + "dynamicVNetAssignmentScope": { + "$ref": "#/definitions/DynamicVNetAssignmentScope", + "description": "The scope of dynamic vnet assignment." + }, + "endpointConfiguration": { + "$ref": "#/definitions/BatchPoolEndpointConfigurationUpdate", + "description": "The configuration for endpoints on Compute Nodes in the Batch Pool." + }, + "publicIPAddressConfiguration": { + "$ref": "#/definitions/PublicIpAddressConfiguration", + "description": "The Public IPAddress configuration for Compute Nodes in the Batch Pool.", + "x-ms-client-name": "publicIpAddressConfiguration" + }, + "enableAcceleratedNetworking": { + "type": "boolean", + "description": "Whether this pool should enable accelerated networking. Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview." + } + } + }, + "NetworkSecurityGroupRule": { + "type": "object", + "description": "A network security group rule to apply to an inbound endpoint.", + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority for this rule. Priorities within a Pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400." + }, + "access": { + "$ref": "#/definitions/NetworkSecurityGroupRuleAccess", + "description": "The action that should be taken for a specified IP address, subnet range or tag." + }, + "sourceAddressPrefix": { + "type": "string", + "description": "The source address prefix or tag to match for the rule. Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400." + }, + "sourcePortRanges": { + "type": "array", + "description": "The source port ranges to match for the rule. Valid values are '*' (for all ports 0 - 65535), a specific port (i.e. 22), or a port range (i.e. 100-200). The ports must be in the range of 0 to 65535. Each entry in this collection must not overlap any other entry (either a range or an individual port). If any other values are provided the request fails with HTTP status code 400. The default value is '*'.", + "items": { + "type": "string" + } + } + }, + "required": [ + "priority", + "access", + "sourceAddressPrefix" + ] + }, + "NetworkSecurityGroupRuleAccess": { + "type": "string", + "description": "NetworkSecurityGroupRuleAccess enums", + "enum": [ + "allow", + "deny" + ], + "x-ms-enum": { + "name": "NetworkSecurityGroupRuleAccess", + "modelAsString": true, + "values": [ + { + "name": "Allow", + "value": "allow", + "description": "Allow access." + }, + { + "name": "Deny", + "value": "deny", + "description": "Deny access." + } + ] + } + }, + "NfsMountConfiguration": { + "type": "object", + "description": "Information used to connect to an NFS file system.", + "properties": { + "source": { + "type": "string", + "description": "The URI of the file system to mount." + }, + "relativeMountPath": { + "type": "string", + "description": "The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable." + }, + "mountOptions": { + "type": "string", + "description": "Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux." + } + }, + "required": [ + "source", + "relativeMountPath" + ] + }, + "OSDisk": { + "type": "object", + "description": "Settings for the operating system disk of the compute node (VM).", + "properties": { + "ephemeralOSDiskSettings": { + "$ref": "#/definitions/DiffDiskSettings", + "description": "Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM)." + }, + "caching": { + "$ref": "#/definitions/CachingType", + "description": "Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage." + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "The initial disk size in GB when creating new OS disk." + }, + "managedDisk": { + "$ref": "#/definitions/ManagedDisk", + "description": "The managed disk parameters." + }, + "writeAcceleratorEnabled": { + "type": "boolean", + "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." + } + } + }, + "OSType": { + "type": "string", + "description": "OSType enums", + "enum": [ + "linux", + "windows" + ], + "x-ms-enum": { + "name": "OSType", + "modelAsString": true, + "values": [ + { + "name": "Linux", + "value": "linux", + "description": "The Linux operating system." + }, + { + "name": "Windows", + "value": "windows", + "description": "The Windows operating system." + } + ] + } + }, + "OnAllBatchTasksComplete": { + "type": "string", + "description": "The action the Batch service should take when all Tasks in the Job are in the completed state.", + "enum": [ + "noaction", + "terminatejob" + ], + "x-ms-enum": { + "name": "OnAllBatchTasksComplete", + "modelAsString": true, + "values": [ + { + "name": "NoAction", + "value": "noaction", + "description": "Do nothing. The Job remains active unless terminated or disabled by some other means." + }, + { + "name": "TerminateJob", + "value": "terminatejob", + "description": "Terminate the Job. The Job's terminationReason is set to 'AllTasksComplete'." + } + ] + } + }, + "OnBatchTaskFailure": { + "type": "string", + "description": "OnTaskFailure enums", + "enum": [ + "noaction", + "performexitoptionsjobaction" + ], + "x-ms-enum": { + "name": "OnBatchTaskFailure", + "modelAsString": true, + "values": [ + { + "name": "NoAction", + "value": "noaction", + "description": "Do nothing. The Job remains active unless terminated or disabled by some other means." + }, + { + "name": "PerformExitOptionsJobAction", + "value": "performexitoptionsjobaction", + "description": "Terminate the Job. The Job's terminationReason is set to 'AllTasksComplete'." + } + ] + } + }, + "OutputFile": { + "type": "object", + "description": "On every file uploads, Batch service writes two log files to the compute node, 'fileuploadout.txt' and 'fileuploaderr.txt'. These log files are used to learn more about a specific failure.", + "properties": { + "filePattern": { + "type": "string", + "description": "A pattern indicating which file(s) to upload. Both relative and absolute paths are supported. Relative paths are relative to the Task working directory. The following wildcards are supported: * matches 0 or more characters (for example pattern abc* would match abc or abcdef), ** matches any directory, ? matches any single character, [abc] matches one character in the brackets, and [a-c] matches one character in the range. Brackets can include a negation to match any character not specified (for example [!abc] matches any character but a, b, or c). If a file name starts with \".\" it is ignored by default but may be matched by specifying it explicitly (for example *.gif will not match .a.gif, but .*.gif will). A simple example: **\\*.txt matches any file that does not start in '.' and ends with .txt in the Task working directory or any subdirectory. If the filename contains a wildcard character it can be escaped using brackets (for example abc[*] would match a file named abc*). Note that both \\ and / are treated as directory separators on Windows, but only / is on Linux. Environment variables (%var% on Windows or $var on Linux) are expanded prior to the pattern being applied." + }, + "destination": { + "$ref": "#/definitions/OutputFileDestination", + "description": "The destination for the output file(s)." + }, + "uploadOptions": { + "$ref": "#/definitions/OutputFileUploadConfig", + "description": "Additional options for the upload operation, including under what conditions to perform the upload." + } + }, + "required": [ + "filePattern", + "destination", + "uploadOptions" + ] + }, + "OutputFileBlobContainerDestination": { + "type": "object", + "description": "Specifies a file upload destination within an Azure blob storage container.", + "properties": { + "path": { + "type": "string", + "description": "The destination blob or virtual directory within the Azure Storage container. If filePattern refers to a specific file (i.e. contains no wildcards), then path is the name of the blob to which to upload that file. If filePattern contains one or more wildcards (and therefore may match multiple files), then path is the name of the blob virtual directory (which is prepended to each blob name) to which to upload the file(s). If omitted, file(s) are uploaded to the root of the container with a blob name matching their file name." + }, + "containerUrl": { + "type": "string", + "description": "The URL of the container within Azure Blob Storage to which to upload the file(s). If not using a managed identity, the URL must include a Shared Access Signature (SAS) granting write permissions to the container." + }, + "identityReference": { + "$ref": "#/definitions/BatchNodeIdentityReference", + "description": "The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container." + }, + "uploadHeaders": { + "type": "array", + "description": "A list of name-value pairs for headers to be used in uploading output files. These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when uploading blobs: https://docs.microsoft.com/rest/api/storageservices/put-blob#request-headers-all-blob-types.", + "items": { + "$ref": "#/definitions/HttpHeader" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "containerUrl" + ] + }, + "OutputFileDestination": { + "type": "object", + "description": "The destination to which a file should be uploaded.", + "properties": { + "container": { + "$ref": "#/definitions/OutputFileBlobContainerDestination", + "description": "A location in Azure blob storage to which files are uploaded." + } + } + }, + "OutputFileUploadCondition": { + "type": "string", + "description": "OutputFileUploadCondition enums", + "enum": [ + "tasksuccess", + "taskfailure", + "taskcompletion" + ], + "x-ms-enum": { + "name": "OutputFileUploadCondition", + "modelAsString": true, + "values": [ + { + "name": "TaskSuccess", + "value": "tasksuccess", + "description": "Upload the file(s) only after the Task process exits with an exit code of 0." + }, + { + "name": "TaskFailure", + "value": "taskfailure", + "description": "Upload the file(s) only after the Task process exits with a nonzero exit code." + }, + { + "name": "TaskCompletion", + "value": "taskcompletion", + "description": "Upload the file(s) after the Task process exits, no matter what the exit code was." + } + ] + } + }, + "OutputFileUploadConfig": { + "type": "object", + "description": "Options for an output file upload operation, including under what conditions\nto perform the upload.", + "properties": { + "uploadCondition": { + "$ref": "#/definitions/OutputFileUploadCondition", + "description": "The conditions under which the Task output file or set of files should be uploaded. The default is taskcompletion." + } + }, + "required": [ + "uploadCondition" + ] + }, + "PublicIpAddressConfiguration": { + "type": "object", + "description": "The public IP Address configuration of the networking configuration of a Pool.", + "properties": { + "provision": { + "$ref": "#/definitions/IpAddressProvisioningType", + "description": "The provisioning type for Public IP Addresses for the Pool. The default value is BatchManaged.", + "x-ms-client-name": "IpAddressProvisioningType" + }, + "ipAddressIds": { + "type": "array", + "description": "The list of public IPs which the Batch service will use when provisioning Compute Nodes. The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/Low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.", + "items": { + "type": "string" + } + } + } + }, + "RecentBatchJob": { + "type": "object", + "description": "Information about the most recent Job to run under the Job Schedule.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the Job." + }, + "url": { + "type": "string", + "description": "The URL of the Job." + } + } + }, + "ResizeError": { + "type": "object", + "description": "An error that occurred when resizing a Pool.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the Pool resize error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the Pool resize error, intended to be suitable for display in a user interface." + }, + "values": { + "type": "array", + "description": "A list of additional error details related to the Pool resize error.", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "x-ms-identifiers": [] + } + } + }, + "ResourceFile": { + "type": "object", + "description": "A single file or multiple files to be downloaded to a Compute Node.", + "properties": { + "autoStorageContainerName": { + "type": "string", + "description": "The storage container name in the auto storage Account. The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified." + }, + "storageContainerUrl": { + "type": "string", + "description": "The URL of the blob container within Azure Blob Storage. The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable from compute nodes. There are three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, use a managed identity with read and list permissions, or set the ACL for the container to allow public access." + }, + "httpUrl": { + "type": "string", + "description": "The URL of the file to download. The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, use a managed identity with read permission, or set the ACL for the blob or its container to allow public access." + }, + "blobPrefix": { + "type": "string", + "description": "The blob prefix to use when downloading blobs from an Azure Storage container. Only the blobs whose names begin with the specified prefix will be downloaded. The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded." + }, + "filePath": { + "type": "string", + "description": "The location on the Compute Node to which to download the file(s), relative to the Task's working directory. If the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the Task's working directory (for example by using '..')." + }, + "fileMode": { + "type": "string", + "description": "The file permission mode attribute in octal format. This property applies only to files being downloaded to Linux Compute Nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows Compute Node. If this property is not specified for a Linux Compute Node, then a default value of 0770 is applied to the file." + }, + "identityReference": { + "$ref": "#/definitions/BatchNodeIdentityReference", + "description": "The reference to the user assigned identity to use to access Azure Blob Storage specified by storageContainerUrl or httpUrl." + } + } + }, + "RollingUpgradePolicy": { + "type": "object", + "description": "The configuration parameters used while performing a rolling upgrade.", + "properties": { + "enableCrossZoneUpgrade": { + "type": "boolean", + "description": "Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal." + }, + "maxBatchInstancePercent": { + "type": "integer", + "format": "int32", + "description": "The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent." + }, + "maxUnhealthyInstancePercent": { + "type": "integer", + "format": "int32", + "description": "The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent." + }, + "maxUnhealthyUpgradedInstancePercent": { + "type": "integer", + "format": "int32", + "description": "The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive." + }, + "pauseTimeBetweenBatches": { + "type": "string", + "format": "duration", + "description": "The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format.." + }, + "prioritizeUnhealthyInstances": { + "type": "boolean", + "description": "Upgrade all unhealthy instances in a scale set before any healthy instances." + }, + "rollbackFailedInstancesOnPolicyBreach": { + "type": "boolean", + "description": "Rollback failed instances to previous model if the Rolling Upgrade policy is violated." + } + } + }, + "SchedulingState": { + "type": "string", + "description": "SchedulingState enums", + "enum": [ + "enabled", + "disabled" + ], + "x-ms-enum": { + "name": "SchedulingState", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "enabled", + "description": "Tasks can be scheduled on the Compute Node." + }, + { + "name": "Disabled", + "value": "disabled", + "description": "No new Tasks will be scheduled on the Compute Node. Tasks already running on the Compute Node may still run to completion. All Compute Nodes start with scheduling enabled." + } + ] + } + }, + "SecurityEncryptionTypes": { + "type": "string", + "description": "SecurityEncryptionTypes enums", + "enum": [ + "NonPersistedTPM", + "VMGuestStateOnly" + ], + "x-ms-enum": { + "name": "SecurityEncryptionTypes", + "modelAsString": true, + "values": [ + { + "name": "NonPersistedTPM", + "value": "NonPersistedTPM", + "description": "NonPersistedTPM" + }, + { + "name": "VMGuestStateOnly", + "value": "VMGuestStateOnly", + "description": "VMGuestStateOnly" + } + ] + } + }, + "SecurityProfile": { + "type": "object", + "description": "Specifies the security profile settings for the virtual machine or virtual machine scale set.", + "properties": { + "encryptionAtHost": { + "type": "boolean", + "description": "This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. For more information on encryption at host requirements, please refer to https://learn.microsoft.com/azure/virtual-machines/disk-encryption#supported-vm-sizes." + }, + "securityType": { + "$ref": "#/definitions/SecurityTypes", + "description": "Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings." + }, + "uefiSettings": { + "$ref": "#/definitions/UefiSettings", + "description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Specifies the security settings like secure boot and vTPM used while creating the virtual machine." + } + }, + "required": [ + "encryptionAtHost", + "securityType", + "uefiSettings" + ] + }, + "SecurityProfileUpdate": { + "type": "object", + "description": "Specifies the security profile settings for the virtual machine or virtual machine scale set.", + "properties": { + "encryptionAtHost": { + "type": "boolean", + "description": "This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. For more information on encryption at host requirements, please refer to https://learn.microsoft.com/azure/virtual-machines/disk-encryption#supported-vm-sizes." + }, + "securityType": { + "$ref": "#/definitions/SecurityTypes", + "description": "Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings." + }, + "uefiSettings": { + "$ref": "#/definitions/UefiSettings", + "description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Specifies the security settings like secure boot and vTPM used while creating the virtual machine." + } + } + }, + "SecurityTypes": { + "type": "string", + "description": "Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.", + "enum": [ + "trustedLaunch", + "confidentialVM" + ], + "x-ms-enum": { + "name": "SecurityTypes", + "modelAsString": true, + "values": [ + { + "name": "trustedLaunch", + "value": "trustedLaunch", + "description": "Trusted launch protects against advanced and persistent attack techniques." + }, + { + "name": "confidentialVM", + "value": "confidentialVM", + "description": "Azure confidential computing offers confidential VMs are for tenants with high security and confidentiality requirements. These VMs provide a strong, hardware-enforced boundary to help meet your security needs. You can use confidential VMs for migrations without making changes to your code, with the platform protecting your VM's state from being read or modified." + } + ] + } + }, + "ServiceArtifactReference": { + "type": "object", + "description": "Specifies the service artifact reference id used to set same image version\nfor all virtual machines in the scale set when using 'latest' image version.", + "properties": { + "id": { + "type": "string", + "description": "The service artifact reference id of ServiceArtifactReference. The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}" + } + }, + "required": [ + "id" + ] + }, + "ServiceArtifactReferenceUpdate": { + "type": "object", + "description": "Specifies the service artifact reference id used to set same image version\nfor all virtual machines in the scale set when using 'latest' image version.", + "properties": { + "id": { + "type": "string", + "description": "The service artifact reference id of ServiceArtifactReference. The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}" + } + } + }, + "StatusLevelTypes": { + "type": "string", + "description": "Level code.", + "enum": [ + "Error", + "Info", + "Warning" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true, + "values": [ + { + "name": "Error", + "value": "Error", + "description": "Error" + }, + { + "name": "Info", + "value": "Info", + "description": "Info" + }, + { + "name": "Warning", + "value": "Warning", + "description": "Warning" + } + ] + } + }, + "StorageAccountType": { + "type": "string", + "description": "StorageAccountType enums", + "enum": [ + "standard_lrs", + "premium_lrs", + "standardssd_lrs" + ], + "x-ms-enum": { + "name": "StorageAccountType", + "modelAsString": true, + "values": [ + { + "name": "StandardLRS", + "value": "standard_lrs", + "description": "The data disk should use standard locally redundant storage." + }, + { + "name": "PremiumLRS", + "value": "premium_lrs", + "description": "The data disk should use premium locally redundant storage." + }, + { + "name": "StandardSSDLRS", + "value": "standardssd_lrs", + "description": "The data disk / OS disk should use standard SSD locally redundant storage." + } + ] + } + }, + "UefiSettings": { + "type": "object", + "description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine.", + "properties": { + "secureBootEnabled": { + "type": "boolean", + "description": "Specifies whether secure boot should be enabled on the virtual machine." + }, + "vTpmEnabled": { + "type": "boolean", + "description": "Specifies whether vTPM should be enabled on the virtual machine." + } + } + }, + "UpgradeMode": { + "type": "string", + "description": "UpgradeMode enums", + "enum": [ + "automatic", + "manual", + "rolling" + ], + "x-ms-enum": { + "name": "UpgradeMode", + "modelAsString": true, + "values": [ + { + "name": "Automatic", + "value": "automatic", + "description": "TAll virtual machines in the scale set are automatically updated at the same time." + }, + { + "name": "Manual", + "value": "manual", + "description": "You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action." + }, + { + "name": "Rolling", + "value": "rolling", + "description": "The existing instances in a scale set are brought down in batches to be upgraded. Once the upgraded batch is complete, the instances will begin taking traffic again and the next batch will begin. This continues until all instances brought up-to-date." + } + ] + } + }, + "UpgradePolicy": { + "type": "object", + "description": "Describes an upgrade policy - automatic, manual, or rolling.", + "properties": { + "mode": { + "$ref": "#/definitions/UpgradeMode", + "description": "Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time.

**Rolling** - Scale set performs updates in batches with an optional pause time in between." + }, + "automaticOSUpgradePolicy": { + "$ref": "#/definitions/AutomaticOsUpgradePolicy", + "description": "Configuration parameters used for performing automatic OS Upgrade. The configuration parameters used for performing automatic OS upgrade.", + "x-ms-client-name": "automaticOsUpgradePolicy" + }, + "rollingUpgradePolicy": { + "$ref": "#/definitions/RollingUpgradePolicy", + "description": "The configuration parameters used while performing a rolling upgrade." + } + }, + "required": [ + "mode" + ] + }, + "UpgradePolicyUpdate": { + "type": "object", + "description": "Describes an upgrade policy - automatic, manual, or rolling.", + "properties": { + "mode": { + "$ref": "#/definitions/UpgradeMode", + "description": "Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time.

**Rolling** - Scale set performs updates in batches with an optional pause time in between." + }, + "automaticOSUpgradePolicy": { + "$ref": "#/definitions/AutomaticOsUpgradePolicy", + "description": "Configuration parameters used for performing automatic OS Upgrade. The configuration parameters used for performing automatic OS upgrade.", + "x-ms-client-name": "automaticOsUpgradePolicy" + }, + "rollingUpgradePolicy": { + "$ref": "#/definitions/RollingUpgradePolicy", + "description": "The configuration parameters used while performing a rolling upgrade." + } + } + }, + "UploadBatchServiceLogsContent": { + "type": "object", + "description": "The Azure Batch service log files upload parameters for a Compute Node.", + "properties": { + "containerUrl": { + "type": "string", + "description": "The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). If a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime." + }, + "identityReference": { + "$ref": "#/definitions/BatchNodeIdentityReference", + "description": "The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container." + } + }, + "required": [ + "containerUrl", + "startTime" + ] + }, + "UploadBatchServiceLogsResult": { + "type": "object", + "description": "The result of uploading Batch service log files from a specific Compute Node.", + "properties": { + "virtualDirectoryName": { + "type": "string", + "description": "The virtual directory within Azure Blob Storage container to which the Batch Service log file(s) will be uploaded. The virtual directory name is part of the blob name for each log file uploaded, and it is built based poolId, nodeId and a unique identifier." + }, + "numberOfFilesUploaded": { + "type": "integer", + "format": "int32", + "description": "The number of log files which will be uploaded." + } + }, + "required": [ + "virtualDirectoryName", + "numberOfFilesUploaded" + ] + }, + "UserAccount": { + "type": "object", + "description": "Properties used to create a user used to execute Tasks on an Azure Batch\nCompute Node.", + "properties": { + "name": { + "type": "string", + "description": "The name of the user Account. Names can contain any Unicode characters up to a maximum length of 20." + }, + "password": { + "type": "string", + "format": "password", + "description": "The password for the user Account.", + "x-ms-secret": true + }, + "elevationLevel": { + "$ref": "#/definitions/ElevationLevel", + "description": "The elevation level of the user Account. The default value is nonAdmin." + }, + "linuxUserConfiguration": { + "$ref": "#/definitions/LinuxUserConfiguration", + "description": "The Linux-specific user configuration for the user Account. This property is ignored if specified on a Windows Pool. If not specified, the user is created with the default options." + }, + "windowsUserConfiguration": { + "$ref": "#/definitions/WindowsUserConfiguration", + "description": "The Windows-specific user configuration for the user Account. This property can only be specified if the user is on a Windows Pool. If not specified and on a Windows Pool, the user is created with the default options." + } + }, + "required": [ + "name", + "password" + ] + }, + "UserAssignedIdentity": { + "type": "object", + "description": "The user assigned Identity", + "properties": { + "resourceId": { + "type": "string", + "description": "The ARM resource id of the user assigned identity." + }, + "clientId": { + "type": "string", + "description": "The client id of the user assigned identity.", + "readOnly": true + }, + "principalId": { + "type": "string", + "description": "The principal id of the user assigned identity.", + "readOnly": true + } + }, + "required": [ + "resourceId" + ] + }, + "UserIdentity": { + "type": "object", + "description": "The definition of the user identity under which the Task is run. Specify either the userName or autoUser property, but not both.", + "properties": { + "username": { + "type": "string", + "description": "The name of the user identity under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both." + }, + "autoUser": { + "$ref": "#/definitions/AutoUserSpecification", + "description": "The auto user under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both." + } + } + }, + "VMDiskSecurityProfile": { + "type": "object", + "description": "Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and required when using Confidential VMs.", + "properties": { + "securityEncryptionType": { + "$ref": "#/definitions/SecurityEncryptionTypes", + "description": "Specifies the EncryptionType of the managed disk. It is set to VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob. **Note**: It can be set for only Confidential VMs and is required when using Confidential VMs." + } + } + }, + "VMExtension": { + "type": "object", + "description": "The configuration for virtual machine extensions.", + "properties": { + "name": { + "type": "string", + "description": "The name of the virtual machine extension." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "The type of the extension." + }, + "typeHandlerVersion": { + "type": "string", + "description": "The version of script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "enableAutomaticUpgrade": { + "type": "boolean", + "description": "Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available." + }, + "settings": { + "type": "object", + "description": "JSON formatted public settings for the extension.", + "additionalProperties": { + "type": "string" + } + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.", + "additionalProperties": { + "type": "string" + } + }, + "provisionAfterExtensions": { + "type": "array", + "description": "The collection of extension names. Collection of extension names after which this extension needs to be provisioned.", + "items": { + "type": "string" + } + } + }, + "required": [ + "name", + "publisher", + "type" + ] + }, + "VMExtensionInstanceView": { + "type": "object", + "description": "The vm extension instance view.", + "properties": { + "name": { + "type": "string", + "description": "The name of the vm extension instance view." + }, + "statuses": { + "type": "array", + "description": "The resource status information.", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "x-ms-identifiers": [] + }, + "subStatuses": { + "type": "array", + "description": "The resource status information.", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "x-ms-identifiers": [] + } + } + }, + "VirtualMachineConfiguration": { + "type": "object", + "description": "The configuration for Compute Nodes in a Pool based on the Azure Virtual\nMachines infrastructure.", + "properties": { + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "A reference to the Azure Virtual Machines Marketplace Image or the custom Virtual Machine Image to use." + }, + "nodeAgentSKUId": { + "type": "string", + "description": "The SKU of the Batch Compute Node agent to be provisioned on Compute Nodes in the Pool. The Batch Compute Node agent is a program that runs on each Compute Node in the Pool, and provides the command-and-control interface between the Compute Node and the Batch service. There are different implementations of the Compute Node agent, known as SKUs, for different operating systems. You must specify a Compute Node agent SKU which matches the selected Image reference. To get the list of supported Compute Node agent SKUs along with their list of verified Image references, see the 'List supported Compute Node agent SKUs' operation.", + "x-ms-client-name": "nodeAgentSkuId" + }, + "windowsConfiguration": { + "$ref": "#/definitions/WindowsConfiguration", + "description": "Windows operating system settings on the virtual machine. This property must not be specified if the imageReference property specifies a Linux OS Image." + }, + "dataDisks": { + "type": "array", + "description": "The configuration for data disks attached to the Compute Nodes in the Pool. This property must be specified if the Compute Nodes in the Pool need to have empty data disks attached to them. This cannot be updated. Each Compute Node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine.", + "items": { + "$ref": "#/definitions/DataDisk" + }, + "x-ms-identifiers": [] + }, + "licenseType": { + "type": "string", + "description": "This only applies to Images that contain the Windows operating system, and\nshould only be used when you hold valid on-premises licenses for the Compute\nNodes which will be deployed. If omitted, no on-premises licensing discount is\napplied. Values are:\n\n Windows_Server - The on-premises license is for Windows\nServer.\n Windows_Client - The on-premises license is for Windows Client.\n" + }, + "containerConfiguration": { + "$ref": "#/definitions/ContainerConfiguration", + "description": "The container configuration for the Pool. If specified, setup is performed on each Compute Node in the Pool to allow Tasks to run in containers. All regular Tasks and Job manager Tasks run on this Pool must specify the containerSettings property, and all other Tasks may specify it." + }, + "diskEncryptionConfiguration": { + "$ref": "#/definitions/DiskEncryptionConfiguration", + "description": "The disk encryption configuration for the pool. If specified, encryption is performed on each node in the pool during node provisioning." + }, + "nodePlacementConfiguration": { + "$ref": "#/definitions/BatchNodePlacementConfiguration", + "description": "The node placement configuration for the pool. This configuration will specify rules on how nodes in the pool will be physically allocated." + }, + "extensions": { + "type": "array", + "description": "The virtual machine extension for the pool. If specified, the extensions mentioned in this configuration will be installed on each node.", + "items": { + "$ref": "#/definitions/VMExtension" + }, + "x-ms-identifiers": [] + }, + "osDisk": { + "$ref": "#/definitions/OSDisk", + "description": "Settings for the operating system disk of the Virtual Machine." + }, + "securityProfile": { + "$ref": "#/definitions/SecurityProfile", + "description": "Specifies the security profile settings for the virtual machine or virtual machine scale set." + }, + "serviceArtifactReference": { + "$ref": "#/definitions/ServiceArtifactReference", + "description": "Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}" + } + }, + "required": [ + "imageReference", + "nodeAgentSKUId" + ] + }, + "VirtualMachineConfigurationUpdate": { + "type": "object", + "description": "The configuration for Compute Nodes in a Pool based on the Azure Virtual\nMachines infrastructure.", + "properties": { + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "A reference to the Azure Virtual Machines Marketplace Image or the custom Virtual Machine Image to use." + }, + "nodeAgentSKUId": { + "type": "string", + "description": "The SKU of the Batch Compute Node agent to be provisioned on Compute Nodes in the Pool. The Batch Compute Node agent is a program that runs on each Compute Node in the Pool, and provides the command-and-control interface between the Compute Node and the Batch service. There are different implementations of the Compute Node agent, known as SKUs, for different operating systems. You must specify a Compute Node agent SKU which matches the selected Image reference. To get the list of supported Compute Node agent SKUs along with their list of verified Image references, see the 'List supported Compute Node agent SKUs' operation.", + "x-ms-client-name": "nodeAgentSkuId" + }, + "windowsConfiguration": { + "$ref": "#/definitions/WindowsConfiguration", + "description": "Windows operating system settings on the virtual machine. This property must not be specified if the imageReference property specifies a Linux OS Image." + }, + "dataDisks": { + "type": "array", + "description": "The configuration for data disks attached to the Compute Nodes in the Pool. This property must be specified if the Compute Nodes in the Pool need to have empty data disks attached to them. This cannot be updated. Each Compute Node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine.", + "items": { + "$ref": "#/definitions/DataDisk" + }, + "x-ms-identifiers": [] + }, + "licenseType": { + "type": "string", + "description": "This only applies to Images that contain the Windows operating system, and\nshould only be used when you hold valid on-premises licenses for the Compute\nNodes which will be deployed. If omitted, no on-premises licensing discount is\napplied. Values are:\n\n Windows_Server - The on-premises license is for Windows\nServer.\n Windows_Client - The on-premises license is for Windows Client.\n" + }, + "containerConfiguration": { + "$ref": "#/definitions/ContainerConfigurationUpdate", + "description": "The container configuration for the Pool. If specified, setup is performed on each Compute Node in the Pool to allow Tasks to run in containers. All regular Tasks and Job manager Tasks run on this Pool must specify the containerSettings property, and all other Tasks may specify it." + }, + "diskEncryptionConfiguration": { + "$ref": "#/definitions/DiskEncryptionConfiguration", + "description": "The disk encryption configuration for the pool. If specified, encryption is performed on each node in the pool during node provisioning." + }, + "nodePlacementConfiguration": { + "$ref": "#/definitions/BatchNodePlacementConfiguration", + "description": "The node placement configuration for the pool. This configuration will specify rules on how nodes in the pool will be physically allocated." + }, + "extensions": { + "type": "array", + "description": "The virtual machine extension for the pool. If specified, the extensions mentioned in this configuration will be installed on each node.", + "items": { + "$ref": "#/definitions/VMExtension" + }, + "x-ms-identifiers": [] + }, + "osDisk": { + "$ref": "#/definitions/OSDisk", + "description": "Settings for the operating system disk of the Virtual Machine." + }, + "securityProfile": { + "$ref": "#/definitions/SecurityProfileUpdate", + "description": "Specifies the security profile settings for the virtual machine or virtual machine scale set." + }, + "serviceArtifactReference": { + "$ref": "#/definitions/ServiceArtifactReferenceUpdate", + "description": "Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}" + } + } + }, + "VirtualMachineInfo": { + "type": "object", + "description": "Info about the current state of the virtual machine.", + "properties": { + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "The reference to the Azure Virtual Machine's Marketplace Image." + }, + "scaleSetVmResourceId": { + "type": "string", + "description": "The resource ID of the Compute Node's current Virtual Machine Scale Set VM. Only defined if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'." + } + } + }, + "WindowsConfiguration": { + "type": "object", + "description": "Windows operating system settings to apply to the virtual machine.", + "properties": { + "enableAutomaticUpdates": { + "type": "boolean", + "description": "Whether automatic updates are enabled on the virtual machine. If omitted, the default value is true." + } + } + }, + "WindowsUserConfiguration": { + "type": "object", + "description": "Properties used to create a user Account on a Windows Compute Node.", + "properties": { + "loginMode": { + "$ref": "#/definitions/LoginMode", + "description": "The login mode for the user. The default is 'batch'." + } + } + } + }, + "parameters": { + "Azure.Core.Foundations.ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The API version to use for this operation.", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "method", + "x-ms-client-name": "apiVersion" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_GetApplication.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_GetApplication.json new file mode 100644 index 000000000000..24120780e2d2 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_GetApplication.json @@ -0,0 +1,22 @@ +{ + "operationId": "Applications_GetApplication", + "title": "Get applications", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "applicationId": "my_application_id" + }, + "responses": { + "200": { + "body": { + "id": "my_application_id", + "versions": [ + "v1.0" + ], + "displayName": "my_display_name" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_ListApplications.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_ListApplications.json new file mode 100644 index 000000000000..3d9488449d95 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_ListApplications.json @@ -0,0 +1,25 @@ +{ + "operationId": "Applications_ListApplications", + "title": "List applications", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "my_application_id", + "versions": [ + "v1.0" + ], + "displayName": "my_display_name" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json new file mode 100644 index 000000000000..84d8577c3564 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json @@ -0,0 +1,24 @@ +{ + "operationId": "JobSchedules_CreateJobSchedule", + "title": "Creates a basic JobSchedule", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobSchedule": { + "id": "jobScheduleId", + "schedule": { + "recurrenceInterval": "PT5M" + }, + "jobSpecification": { + "poolInfo": { + "poolId": "poolId" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json new file mode 100644 index 000000000000..597bbe4dbd88 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json @@ -0,0 +1,132 @@ +{ + "operationId": "JobSchedules_CreateJobSchedule", + "title": "Creates a complex JobScheduleAdd", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobSchedule": { + "id": "jobScheduleId", + "schedule": { + "doNotRunUntil": "2014-09-10T02:30:00.000Z", + "doNotRunAfter": "2014-09-10T06:30:00.000Z", + "startWindow": "PT1M", + "recurrenceInterval": "PT5M" + }, + "jobSpecification": { + "priority": 100, + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 + }, + "jobManagerTask": { + "id": "mytask1", + "commandLine": "myprogram.exe", + "resourceFiles": [ + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/myprogram.exe?sas", + "filePath": "myprogram.exe" + }, + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/test.txt?sas", + "filePath": "test.txt" + } + ], + "environmentSettings": [ + { + "name": "myvariable", + "value": "myvalue" + } + ], + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 0, + "retentionTime": "PT1H" + }, + "requiredSlots": 2, + "killJobOnCompletion": true, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "runExclusive": true + }, + "poolInfo": { + "autoPoolSpecification": { + "autoPoolIdPrefix": "mypool", + "poolLifetimeOption": "jobschedule", + "pool": { + "vmSize": "STANDARD_D2S_V3", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": false + }, + "nodePlacementConfiguration": { + "policy": "zonal" + } + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 3, + "targetLowPriorityNodes": 0, + "taskSlotsPerNode": 2, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "startTask": { + "commandLine": "myprogram2.exe", + "resourceFiles": [ + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/myprogram2.exe?sas", + "filePath": "myprogram2.exe" + } + ], + "environmentSettings": [ + { + "name": "myvariable", + "value": "myvalue" + } + ], + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "admin" + } + }, + "maxTaskRetryCount": 2, + "waitForSuccess": true + }, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ], + "targetNodeCommunicationMode": "default" + } + } + } + }, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json new file mode 100644 index 000000000000..cfb3b3126163 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json @@ -0,0 +1,14 @@ +{ + "operationId": "JobSchedules_DeleteJobSchedule", + "title": "JobSchedule delete", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json new file mode 100644 index 000000000000..ec35089fd54c --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json @@ -0,0 +1,14 @@ +{ + "operationId": "JobSchedules_DisableJobSchedule", + "title": "JobSchedule disable", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json new file mode 100644 index 000000000000..299fe57388f9 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json @@ -0,0 +1,14 @@ +{ + "operationId": "JobSchedules_EnableJobSchedule", + "title": "JobSchedule enable", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json new file mode 100644 index 000000000000..cc71f9cd756b --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json @@ -0,0 +1,48 @@ +{ + "operationId": "JobSchedules_GetJobSchedule", + "title": "JobSchedule get", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "jobScheduleId", + "url": "https://account.region.batch.azure.com/jobschedules/jobScheduleId", + "eTag": "0x8D40FFD2E848323", + "lastModified": "2016-11-18T21:52:24.7661347Z", + "creationTime": "2016-11-18T21:52:22.5431125Z", + "state": "completed", + "stateTransitionTime": "2016-11-18T21:52:24.8371778Z", + "previousState": "active", + "previousStateTransitionTime": "2016-11-18T21:52:24.0064874Z", + "jobSpecification": { + "priority": 0, + "maxParallelTasks": -1, + "allowTaskPreemption": false, + "usesTaskDependencies": false, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction", + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "testPool" + } + }, + "executionInfo": { + "recentJob": { + "url": "https://account.region.batch.azure.com/jobschedules/jobScheduleId:job-1", + "id": "jobScheduleId:job-1" + }, + "endTime": "2016-11-18T21:52:24.8371778Z" + } + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json new file mode 100644 index 000000000000..d67abcf3e706 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json @@ -0,0 +1,15 @@ +{ + "operationId": "JobSchedules_JobScheduleExists", + "title": "Check Job Schedule Exists", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json new file mode 100644 index 000000000000..04e4d32afcee --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json @@ -0,0 +1,79 @@ +{ + "operationId": "JobSchedules_ListJobSchedules", + "title": "JobSchedule list", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jobSchedule1", + "url": "https://account.region.batch.azure.com/jobschedules/jobSchedule1", + "eTag": "0x8D40FFD2E10996A", + "lastModified": "2016-11-18T21:52:24.0064874Z", + "creationTime": "2016-11-18T21:52:22.5431125Z", + "state": "active", + "stateTransitionTime": "2016-11-18T21:52:24.0064874Z", + "previousState": "disabled", + "previousStateTransitionTime": "2016-11-18T21:52:23.6471782Z", + "jobSpecification": { + "priority": 0, + "maxParallelTasks": -1, + "allowTaskPreemption": false, + "usesTaskDependencies": false, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction", + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + } + }, + "executionInfo": { + "recentJob": { + "url": "https://account.region.batch.azure.com/jobs/jobSchedule1:job-1", + "id": "jobSchedule1:job-1" + } + } + }, + { + "id": "jobSchedule2", + "url": "https://account.region.batch.azure.com/jobschedules/jobSchedule2", + "eTag": "0x8D40FFCFF760B51", + "lastModified": "2016-11-18T21:51:05.8184017Z", + "creationTime": "2016-11-18T21:51:05.8184017Z", + "state": "active", + "stateTransitionTime": "2016-11-18T21:51:05.8184017Z", + "schedule": { + "doNotRunUntil": "2020-01-01T12:30:00Z" + }, + "jobSpecification": { + "priority": 0, + "maxParallelTasks": -1, + "usesTaskDependencies": false, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction", + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "testPool2" + } + }, + "executionInfo": { + "nextRunTime": "2020-01-01T12:30:00Z" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json new file mode 100644 index 000000000000..d48982782b9c --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json @@ -0,0 +1,30 @@ +{ + "operationId": "JobSchedules_ReplaceJobSchedule", + "title": "JobSchedule patch", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobSchedule": { + "schedule": { + "doNotRunUntil": "2025-01-01T12:30:00Z" + }, + "jobSpecification": { + "priority": 0, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + } + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json new file mode 100644 index 000000000000..b18cf1916b2b --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json @@ -0,0 +1,14 @@ +{ + "operationId": "JobSchedules_TerminateJobSchedule", + "title": "JobSchedule terminate", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json new file mode 100644 index 000000000000..7e9311ab4f57 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json @@ -0,0 +1,30 @@ +{ + "operationId": "JobSchedules_UpdateJobSchedule", + "title": "JobSchedule update", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobSchedule": { + "schedule": { + "doNotRunUntil": "2025-01-01T12:30:00Z" + }, + "jobSpecification": { + "priority": 0, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + } + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json new file mode 100644 index 000000000000..ba9c69bb1c08 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json @@ -0,0 +1,20 @@ +{ + "operationId": "Jobs_CreateJob", + "title": "Creates a basic job", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "job": { + "id": "jobId", + "priority": 0, + "poolInfo": { + "poolId": "poolId" + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json new file mode 100644 index 000000000000..4d0b8560f32f --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json @@ -0,0 +1,124 @@ +{ + "operationId": "Jobs_CreateJob", + "title": "Creates a complex job", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "job": { + "id": "jobId", + "priority": 100, + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 + }, + "jobManagerTask": { + "id": "taskId", + "commandLine": "myprogram.exe", + "resourceFiles": [ + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/myprogram.exe?sas", + "filePath": "myprogram.exe" + }, + { + "storageContainerUrl": "http://mystorage1.blob.core.windows.net/data?sas", + "filePath": "datafolder" + } + ], + "environmentSettings": [ + { + "name": "myvariable", + "value": "myvalue" + } + ], + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 0, + "retentionTime": "PT1H" + }, + "requiredSlots": 2, + "killJobOnCompletion": false, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "admin" + } + }, + "runExclusive": true + }, + "poolInfo": { + "autoPoolSpecification": { + "autoPoolIdPrefix": "mypool", + "poolLifetimeOption": "job", + "pool": { + "vmSize": "STANDARD_D2S_V3", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": false + }, + "nodePlacementConfiguration": { + "policy": "zonal" + } + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 3, + "targetLowPriorityNodes": 0, + "taskSlotsPerNode": 2, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "startTask": { + "commandLine": "myprogram2.exe", + "resourceFiles": [ + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/myprogram2.exe?sas", + "filePath": "myprogram2.exe" + } + ], + "environmentSettings": [ + { + "name": "myvariable", + "value": "myvalue" + } + ], + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "admin" + } + }, + "maxTaskRetryCount": 2, + "waitForSuccess": true + }, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ], + "targetNodeCommunicationMode": "default" + } + } + }, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DeleteJob.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DeleteJob.json new file mode 100644 index 000000000000..83175db2e27a --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DeleteJob.json @@ -0,0 +1,14 @@ +{ + "operationId": "Jobs_DeleteJob", + "title": "Delete Job", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DisableJob.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DisableJob.json new file mode 100644 index 000000000000..28510af741a6 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DisableJob.json @@ -0,0 +1,17 @@ +{ + "operationId": "Jobs_DisableJob", + "title": "Job disable", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "content": { + "disableTasks": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_EnableJob.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_EnableJob.json new file mode 100644 index 000000000000..8251b14494c0 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_EnableJob.json @@ -0,0 +1,14 @@ +{ + "operationId": "Jobs_EnableJob", + "title": "Job enable", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJob.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJob.json new file mode 100644 index 000000000000..bd508f90a31f --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJob.json @@ -0,0 +1,45 @@ +{ + "operationId": "Jobs_GetJob", + "title": "Job get", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "jobId", + "url": "https://account.region.batch.azure.com/jobs/jobId", + "eTag": "0x8D4100FC49F0278", + "lastModified": "2016-11-19T00:05:27.5391608Z", + "creationTime": "2016-11-19T00:05:25.311915Z", + "state": "completed", + "stateTransitionTime": "2016-11-19T00:05:27.578581Z", + "previousState": "active", + "previousStateTransitionTime": "2016-11-19T00:05:27.2137716Z", + "priority": 0, + "maxParallelTasks": -1, + "allowTaskPreemption": false, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + }, + "executionInfo": { + "startTime": "2016-11-19T00:05:25.3309105Z", + "endTime": "2016-11-19T00:05:27.578581Z", + "poolId": "poolId", + "terminateReason": "UserTerminate" + }, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json new file mode 100644 index 000000000000..39ca25067b14 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json @@ -0,0 +1,31 @@ +{ + "operationId": "Jobs_GetJobTaskCounts", + "title": "Job get task counts", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "taskCounts": { + "active": 5, + "running": 7, + "completed": 4, + "succeeded": 2, + "failed": 2 + }, + "taskSlotCounts": { + "active": 5, + "running": 7, + "completed": 4, + "succeeded": 2, + "failed": 2 + } + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json new file mode 100644 index 000000000000..a174e7067877 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json @@ -0,0 +1,42 @@ +{ + "operationId": "Jobs_ListJobPreparationAndReleaseTaskStatus", + "title": "Job list preparation and release task status", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "poolId": "poolId", + "nodeId": "tvm-2167304207_1-20140905t174658z", + "nodeUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_1-20140905t174658z", + "jobPreparationTaskExecutionInfo": { + "state": "completed", + "startTime": "2015-05-01T10:20:31Z", + "endTime": "2015-05-02T20:12:42Z", + "taskRootDirectory": "tasks/myjob/job-1/myjobpreptask", + "taskRootDirectoryUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_1-20140905t174658z/files/tasks/myjob/job-1/myjobpreptask", + "exitCode": 0, + "retryCount": 0 + }, + "jobReleaseTaskExecutionInfo": { + "state": "completed", + "startTime": "2015-05-01T10:20:31Z", + "endTime": "2015-05-02T20:12:42Z", + "taskRootDirectory": "tasks/myjob/job-1/myjobreleasetask", + "taskRootDirectoryUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_1-20140905t174658z/files/tasks/myjob/job-1/myjobreleasetask", + "exitCode": 0 + } + } + ], + "odata.nextLink": "https://account.region.batch.azure.com/jobs/myjob/jobpreparationandreleasestatus?$skipToken=tvm-2167304207_1-20140905t174658z&api-version=2024-07-01.20.0" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobs.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobs.json new file mode 100644 index 000000000000..dab7b8e30caa --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobs.json @@ -0,0 +1,46 @@ +{ + "operationId": "Jobs_ListJobs", + "title": "Job list", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jobId", + "url": "https://account.region.batch.azure.com/jobs/jobId", + "eTag": "0x8D4100FC46D5BF4", + "lastModified": "2016-11-19T00:05:27.2137716Z", + "creationTime": "2016-11-19T00:05:25.311915Z", + "state": "active", + "stateTransitionTime": "2016-11-19T00:05:27.2137716Z", + "previousState": "disabled", + "previousStateTransitionTime": "2016-11-19T00:05:26.88777Z", + "priority": 0, + "maxParallelTasks": -1, + "allowTaskPreemption": false, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + }, + "executionInfo": { + "startTime": "2016-11-19T00:05:25.3309105Z", + "poolId": "poolId" + }, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json new file mode 100644 index 000000000000..a763b9bad5b0 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json @@ -0,0 +1,47 @@ +{ + "operationId": "Jobs_ListJobsFromSchedule", + "title": "List Job Under Job Schedule", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jobId", + "url": "https://account.region.batch.azure.com/jobs/jobId", + "eTag": "0x8D4100FC46D5BF4", + "lastModified": "2016-11-19T00:05:27.2137716Z", + "creationTime": "2016-11-19T00:05:25.311915Z", + "state": "active", + "stateTransitionTime": "2016-11-19T00:05:27.2137716Z", + "previousState": "disabled", + "previousStateTransitionTime": "2016-11-19T00:05:26.88777Z", + "priority": 0, + "maxParallelTasks": -1, + "allowTaskPreemption": false, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + }, + "executionInfo": { + "startTime": "2016-11-19T00:05:25.3309105Z", + "poolId": "poolId" + }, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ReplaceJob.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ReplaceJob.json new file mode 100644 index 000000000000..eedb3083e1e0 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ReplaceJob.json @@ -0,0 +1,24 @@ +{ + "operationId": "Jobs_ReplaceJob", + "title": "Job patch", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "job": { + "priority": 100, + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 + }, + "poolInfo": { + "poolId": "poolId" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_TerminateJob.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_TerminateJob.json new file mode 100644 index 000000000000..92f2f3c56481 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_TerminateJob.json @@ -0,0 +1,17 @@ +{ + "operationId": "Jobs_TerminateJob", + "title": "Job terminate", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobTerminateParameter": { + "terminateReason": "User supplied termination reason" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_UpdateJob.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_UpdateJob.json new file mode 100644 index 000000000000..1280cb696495 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_UpdateJob.json @@ -0,0 +1,24 @@ +{ + "operationId": "Jobs_UpdateJob", + "title": "Job update", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "job": { + "priority": 100, + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 + }, + "poolInfo": { + "poolId": "poolId" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_DeallocateNode.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_DeallocateNode.json new file mode 100644 index 000000000000..beba564d2c46 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_DeallocateNode.json @@ -0,0 +1,18 @@ +{ + "operationId": "Nodes_DeallocateNode", + "title": "Node Deallocate", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeDeallocateParameter": { + "nodeDeallocateOption": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_StartNode.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_StartNode.json new file mode 100644 index 000000000000..dba002f5df03 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_StartNode.json @@ -0,0 +1,15 @@ +{ + "operationId": "Nodes_StartNode", + "title": "Node start", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json new file mode 100644 index 000000000000..d38cd713bb4b --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json @@ -0,0 +1,21 @@ +{ + "operationId": "Nodes_CreateNodeUser", + "title": "Node create user", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "user": { + "name": "userName", + "isAdmin": false, + "expiryTime": "2017-08-01T00:00:00Z", + "password": "Password" + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json new file mode 100644 index 000000000000..862b172936a1 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json @@ -0,0 +1,17 @@ +{ + "operationId": "Nodes_DeleteNodeFile", + "title": "File delete from node", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "recursive": false + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json new file mode 100644 index 000000000000..415f79422e46 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json @@ -0,0 +1,16 @@ +{ + "operationId": "Nodes_DeleteNodeUser", + "title": "Node delete user", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "userName": "userName", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json new file mode 100644 index 000000000000..78838915dfcf --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json @@ -0,0 +1,18 @@ +{ + "operationId": "Nodes_DisableNodeScheduling", + "title": "Node disable scheduling", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeDisableSchedulingParameter": { + "nodeDisableSchedulingOption": "terminate" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json new file mode 100644 index 000000000000..868be69627aa --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json @@ -0,0 +1,15 @@ +{ + "operationId": "Nodes_EnableNodeScheduling", + "title": "Node enable scheduling", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNode.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNode.json new file mode 100644 index 000000000000..04656b7cb676 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNode.json @@ -0,0 +1,54 @@ +{ + "operationId": "Nodes_GetNode", + "title": "Node get", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "poolId": "poolId", + "nodeId": "tvm-1695681911_2-20161122t193202z", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "tvm-1695681911_2-20161122t193202z", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_2-20161122t193202z", + "state": "idle", + "schedulingState": "enabled", + "stateTransitionTime": "2016-11-22T19:37:31.4285526Z", + "lastBootTime": "2016-11-22T19:37:28.623369Z", + "allocationTime": "2016-11-22T19:32:02.8155319Z", + "ipAddress": "1.1.1.1", + "affinityId": "TVM:tvm-1695681911_2-20161122t193202z", + "vmSize": "small", + "totalTasksRun": 0, + "totalTasksSucceeded": 0, + "runningTasksCount": 0, + "isDedicated": true, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "startTaskInfo": { + "state": "completed", + "startTime": "2016-11-22T19:37:31.4285526Z", + "endTime": "2016-11-22T19:37:31.838028Z", + "exitCode": 0, + "retryCount": 0 + }, + "nodeAgentInfo": { + "version": "1.2.0.0", + "lastUpdateTime": "2016-11-22T19:37:28.623369Z" + } + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json new file mode 100644 index 000000000000..f1b15b4a6a3b --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json @@ -0,0 +1,37 @@ +{ + "operationId": "Nodes_GetNodeExtension", + "title": "Get batch node extension", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "poolId": "poolId", + "nodeId": "tvm-1695681911_2-20161122t193202z", + "extensionName": "batchNodeExtension", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "instanceView": { + "name": "batchNodeExtension", + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "Enable succeeded: Enabling and starting agent and controller" + } + ] + }, + "vmExtension": { + "name": "batchNodeExtension", + "publisher": "Microsoft.Azure.Extensions", + "type": "CustomScript", + "typeHandlerVersion": "2.0", + "autoUpgradeMinorVersion": true + } + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFile.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFile.json new file mode 100644 index 000000000000..92a376d1d4a6 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFile.json @@ -0,0 +1,23 @@ +{ + "operationId": "Nodes_GetNodeFile", + "title": "Get File From Compute Node", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "nodeId", + "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream", + "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json new file mode 100644 index 000000000000..4e76206dd77c --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json @@ -0,0 +1,22 @@ +{ + "operationId": "Nodes_GetNodeFileProperties", + "title": "File get properties from node", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "nodeId", + "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json new file mode 100644 index 000000000000..53b5291a569c --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json @@ -0,0 +1,20 @@ +{ + "operationId": "Nodes_GetNodeRemoteLoginSettings", + "title": "Node get remote login settings", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "remoteLoginIPAddress": "1.1.1.1", + "remoteLoginPort": 50000 + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json new file mode 100644 index 000000000000..5e4f7fb1eebe --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json @@ -0,0 +1,61 @@ +{ + "operationId": "Nodes_ListNodeExtensions", + "title": "List compute node extensions", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_2-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "instanceView": { + "name": "batchNodeExtension", + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "Enable succeeded: Enabling and starting agent and controller" + } + ] + }, + "vmExtension": { + "name": "batchNodeExtension", + "publisher": "Microsoft.Azure.Extensions", + "type": "CustomScript", + "typeHandlerVersion": "2.0", + "autoUpgradeMinorVersion": true + } + }, + { + "instanceView": { + "name": "customExtension", + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "ExtensionOperation:enable. Status:Success" + } + ] + }, + "vmExtension": { + "name": "customExtension", + "publisher": "Microsoft.Azure.Geneva", + "type": "GenevaMonitoring", + "typeHandlerVersion": "2.0", + "autoUpgradeMinorVersion": true, + "enableAutomaticUpgrade": true + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json new file mode 100644 index 000000000000..b7dd7ef9b6db --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json @@ -0,0 +1,48 @@ +{ + "operationId": "Nodes_ListNodeFiles", + "title": "File list from node", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "recursive": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "shared", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/shared", + "isDirectory": true + }, + { + "name": "startup\\ProcessEnv.cmd", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/startup\\ProcessEnv.cmd", + "isDirectory": false, + "properties": { + "creationTime": "2014-09-19T21:56:17.679195Z", + "lastModified": "2014-09-19T21:56:17.679195Z", + "contentLength": "1813", + "contentType": "application/octet-stream" + } + }, + { + "name": "startup\\stderr.txt", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/startup\\stderr.txt", + "isDirectory": false, + "properties": { + "creationTime": "2014-09-19T21:56:17.5590855Z", + "lastModified": "2014-09-19T21:56:17.5590855Z", + "contentLength": "0", + "contentType": "application/octet-stream" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodes.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodes.json new file mode 100644 index 000000000000..ebec819a1bde --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodes.json @@ -0,0 +1,136 @@ +{ + "operationId": "Nodes_ListNodes", + "title": "Node list", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "tvm-1695681911_1-20161122t193202z", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_1-20161122t193202z", + "state": "idle", + "schedulingState": "enabled", + "stateTransitionTime": "2016-11-22T22:22:27.2236818Z", + "lastBootTime": "2016-11-22T22:22:24.4634125Z", + "allocationTime": "2016-11-22T19:32:02.8155319Z", + "ipAddress": "1.1.1.1", + "affinityId": "TVM:tvm-1695681911_1-20161122t193202z", + "vmSize": "small", + "totalTasksRun": 0, + "totalTasksSucceeded": 0, + "runningTasksCount": 0, + "runningTaskSlotsCount": 0, + "isDedicated": true, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "startTaskInfo": { + "state": "completed", + "startTime": "2016-11-22T22:22:27.2236818Z", + "endTime": "2016-11-22T22:22:27.567189Z", + "exitCode": 0, + "retryCount": 0 + }, + "nodeAgentInfo": { + "version": "1.2.0.0", + "lastUpdateTime": "2016-11-22T22:22:24.4634125Z" + } + }, + { + "id": "tvm-1695681911_2-20161122t193202z", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_2-20161122t193202z", + "state": "idle", + "schedulingState": "enabled", + "stateTransitionTime": "2016-11-22T19:37:31.4285526Z", + "lastBootTime": "2016-11-22T19:37:28.623369Z", + "allocationTime": "2016-11-22T19:32:02.8155319Z", + "ipAddress": "1.1.1.1", + "affinityId": "TVM:tvm-1695681911_2-20161122t193202z", + "vmSize": "small", + "totalTasksRun": 0, + "totalTasksSucceeded": 0, + "runningTasksCount": 0, + "runningTaskSlotsCount": 0, + "isDedicated": true, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "startTaskInfo": { + "state": "completed", + "startTime": "2016-11-22T19:37:31.4285526Z", + "endTime": "2016-11-22T19:37:31.838028Z", + "exitCode": 0, + "retryCount": 0 + }, + "nodeAgentInfo": { + "version": "1.2.0.0", + "lastUpdateTime": "2016-11-22T22:22:24.4634125Z" + } + }, + { + "id": "tvm-1695681911_3-20161122t193202z", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_3-20161122t193202z", + "state": "idle", + "schedulingState": "enabled", + "stateTransitionTime": "2016-11-22T19:36:51.0013378Z", + "lastBootTime": "2016-11-22T19:36:48.21721Z", + "allocationTime": "2016-11-22T19:32:02.8155319Z", + "ipAddress": "1.1.1.1", + "affinityId": "TVM:tvm-1695681911_3-20161122t193202z", + "vmSize": "small", + "totalTasksRun": 0, + "totalTasksSucceeded": 0, + "runningTasksCount": 0, + "runningTaskSlotsCount": 0, + "isDedicated": true, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "startTaskInfo": { + "state": "completed", + "startTime": "2016-11-22T19:36:51.0013378Z", + "endTime": "2016-11-22T19:36:51.2363447Z", + "exitCode": 0, + "retryCount": 0 + }, + "nodeAgentInfo": { + "version": "1.2.0.0", + "lastUpdateTime": "2016-11-22T22:22:24.4634125Z" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_NodeReimage.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_NodeReimage.json new file mode 100644 index 000000000000..b53e9c67d153 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_NodeReimage.json @@ -0,0 +1,18 @@ +{ + "operationId": "Nodes_ReimageNode", + "title": "Node reimage", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeReimageParameter": { + "nodeReimageOption": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_RebootNode.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_RebootNode.json new file mode 100644 index 000000000000..150acaadcd07 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_RebootNode.json @@ -0,0 +1,18 @@ +{ + "operationId": "Nodes_RebootNode", + "title": "Node reboot", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeRebootParameter": { + "nodeRebootOption": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json new file mode 100644 index 000000000000..d93a7ffd93eb --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json @@ -0,0 +1,20 @@ +{ + "operationId": "Nodes_ReplaceNodeUser", + "title": "Node update user", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "userName": "userName", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "content": { + "password": "12345", + "expiryTime": "2016-11-27T00:45:48.7320857Z" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json new file mode 100644 index 000000000000..c4ce833ad67a --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json @@ -0,0 +1,24 @@ +{ + "operationId": "Nodes_UploadNodeLogs", + "title": "Upload BatchService Logs", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "content": { + "containerUrl": "https://somestorageacct.blob.core.windows.net/batch-compute-node-logs?se=2017-12-09T18%3A51%3A00Z&sp=w&sv=2016-05-31&sr=c&sig", + "startTime": "2017-11-27T00:00:00Z" + } + }, + "responses": { + "200": { + "body": { + "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", + "numberOfFilesUploaded": 8 + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json new file mode 100644 index 000000000000..92dc19a13166 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json @@ -0,0 +1,30 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a pool with accelerated networking", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Thu, 27 Apr 2023 05:31:01 GMT", + "pool": { + "id": "mypool01", + "vmSize": "Standard_D1_v2", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.windows amd64" + }, + "targetDedicatedNodes": 2, + "networkConfiguration": { + "enableAcceleratedNetworking": true + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json new file mode 100644 index 000000000000..226ddbba2925 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json @@ -0,0 +1,72 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a pool with mount drive specified", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "id": "pool2", + "vmSize": "standard_a1", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "20_04-lts" + }, + "nodeAgentSKUId": "batch.node.ubuntu 20.04" + }, + "mountConfiguration": [ + { + "azureBlobFileSystemConfiguration": { + "accountName": "accountName", + "containerName": "blobContainerName", + "accountKey": "accountKey", + "relativeMountPath": "bfusepath" + } + }, + { + "azureFileShareConfiguration": { + "accountName": "accountName", + "azureFileUrl": "https://myaccount.file.core.windows.net/fileshare", + "accountKey": "accountKey", + "relativeMountPath": "filesharepath", + "mountOptions": "mount options ver=1.0" + } + }, + { + "nfsMountConfiguration": { + "source": "somesource nfs url", + "relativeMountPath": "mountpath", + "mountOptions": "mount options ver=1.0" + } + }, + { + "cifsMountConfiguration": { + "username": "accountName", + "password": "password", + "source": "//myaccount.file.core.windows.net/file", + "relativeMountPath": "mountpath", + "mountOptions": "mount options ver=1.0" + } + } + ], + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "taskSlotsPerNode": 3, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false + } + }, + "responses": { + "201": { + "request-id": "00000000-0000-0000-0000-000000000000", + "ETag": "0x8D45765A6A2DC04", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json new file mode 100644 index 000000000000..b6b570be4153 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json @@ -0,0 +1,40 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a VirtualMachineConfiguration pool with OS disk", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Wed, 23 Aug 2023 08:40:02 GMT", + "pool": { + "id": "mypool001", + "vmSize": "standard_d2s_v3", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "0001-com-ubuntu-server-focal", + "sku": "20_04-lts" + }, + "osDisk": { + "diskSizeGB": 100, + "managedDisk": { + "storageAccountType": "standardssd_lrs" + }, + "caching": "readwrite", + "ephemeralOSDiskSettings": { + "placement": "cachedisk" + } + }, + "nodeAgentSKUId": "batch.node.ubuntu 20.04" + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 1, + "targetLowPriorityNodes": 0, + "taskSlotsPerNode": 1, + "enableAutoScale": false + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json new file mode 100644 index 000000000000..87ef2da9bbc2 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json @@ -0,0 +1,31 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a simple pool with resourceTags", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Wed, 14 Jun 2023 06:39:01 GMT", + "pool": { + "id": "mypool001", + "vmSize": "STANDARD_DC2s_V2", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "18_04-lts-gen2", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.ubuntu 18.04" + }, + "targetDedicatedNodes": 1, + "resourceTags": { + "TagName1": "TagValue1", + "TagName2": "TagValue2" + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json new file mode 100644 index 000000000000..0bb88a3b5fc3 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json @@ -0,0 +1,35 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a pool with SecurityProfile", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Wed, 14 Jun 2023 06:39:01 GMT", + "pool": { + "id": "mypool001", + "vmSize": "STANDARD_DC2s_V2", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "18_04-lts-gen2", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.ubuntu 18.04", + "securityProfile": { + "securityType": "trustedLaunch", + "encryptionAtHost": true, + "uefiSettings": { + "secureBootEnabled": false, + "vTpmEnabled": null + } + } + }, + "targetDedicatedNodes": 1 + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json new file mode 100644 index 000000000000..80f90a22dda3 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json @@ -0,0 +1,44 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a VirtualMachineConfiguration pool", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "id": "pool2", + "vmSize": "standard_a1", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "0001-com-ubuntu-server-focal", + "sku": "20_04-lts" + }, + "nodeAgentSKUId": "batch.node.ubuntu 20.04" + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "taskSlotsPerNode": 3, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + }, + "responses": { + "201": { + "request-id": "00000000-0000-0000-0000-000000000000", + "ETag": "0x8D45765A6A2DC04", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json new file mode 100644 index 000000000000..08306081f2a7 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json @@ -0,0 +1,43 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a VirtualMachineConfiguration pool with containers", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "id": "pool2", + "vmSize": "standard_a1", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "0001-com-ubuntu-server-focal", + "sku": "120_04-lts" + }, + "nodeAgentSKUId": "batch.node.ubuntu 20.04", + "containerConfiguration": { + "type": "dockerCompatible", + "containerImageNames": [ + "busybox" + ] + } + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "taskSlotsPerNode": 3, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false + } + }, + "responses": { + "201": { + "request-id": "00000000-0000-0000-0000-000000000000", + "ETag": "0x8D45765A6A2DC04", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json new file mode 100644 index 000000000000..1dfd0411496c --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json @@ -0,0 +1,59 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a VirtualMachineConfiguration pool with extensions", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "id": "pool2", + "vmSize": "standard_a1", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "0001-com-ubuntu-server-focal", + "sku": "20_04-lts" + }, + "nodeAgentSKUId": "batch.node.ubuntu 20.04", + "extensions": [ + { + "name": "batchextension1", + "type": "KeyVaultForLinux", + "publisher": "Microsoft.Azure.KeyVault", + "typeHandlerVersion": "2.0", + "autoUpgradeMinorVersion": true, + "enableAutomaticUpgrade": true, + "settings": { + "secretsManagementSettingsKey": "secretsManagementSettingsValue", + "authenticationSettingsKey": "authenticationSettingsValue" + } + } + ] + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "taskSlotsPerNode": 3, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ], + "targetNodeCommunicationMode": "simplified" + } + }, + "responses": { + "201": { + "request-id": "00000000-0000-0000-0000-000000000000", + "ETag": "0x8D45765A6A2DC04", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json new file mode 100644 index 000000000000..488744a59ee6 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json @@ -0,0 +1,33 @@ +{ + "operationId": "Pools_CreatePool", + "title": "Creates a VirtualMachineConfiguration pool with ServiceArtifactReference", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Thu, 11 May 2023 08:03:01 GMT", + "pool": { + "id": "mypool002", + "vmSize": "Standard_A1_v2", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-datacenter-smalldisk", + "version": "latest" + }, + "windowsConfiguration": { + "enableAutomaticUpdates": false + }, + "serviceArtifactReference": { + "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile" + }, + "nodeAgentSKUId": "batch.node.windows amd64" + }, + "targetDedicatedNodes": 2 + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DeletePool.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DeletePool.json new file mode 100644 index 000000000000..3125fb5f45ce --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DeletePool.json @@ -0,0 +1,14 @@ +{ + "operationId": "Pools_DeletePool", + "title": "Pool delete", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json new file mode 100644 index 000000000000..973f97a7dbcb --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json @@ -0,0 +1,14 @@ +{ + "operationId": "Pools_DisablePoolAutoScale", + "title": "Disable pool autoscale", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json new file mode 100644 index 000000000000..c4ce7c23579d --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json @@ -0,0 +1,18 @@ +{ + "operationId": "Pools_EnablePoolAutoScale", + "title": "Pool enable autoscale", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "content": { + "autoScaleFormula": "$TargetDedicated=0", + "autoScaleEvaluationInterval": "PT8M" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json new file mode 100644 index 000000000000..25ee2bbcf2f6 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json @@ -0,0 +1,22 @@ +{ + "operationId": "Pools_EvaluatePoolAutoScale", + "title": "Pool evaluate autoscale", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "content": { + "autoScaleFormula": "$TargetDedicated=1" + } + }, + "responses": { + "200": { + "body": { + "timestamp": "2016-11-22T19:39:28.5246331Z", + "results": "$TargetDedicated=1;$NodeDeallocationOption=requeue" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json new file mode 100644 index 000000000000..8b7526f52f1e --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json @@ -0,0 +1,52 @@ +{ + "operationId": "Pools_GetPool", + "title": "Get a pool with AcceleratedNetworking", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "pool", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 28 Apr 2023 02:43:01 GMT" + }, + "responses": { + "200": { + "body": { + "id": "pool", + "url": "https://account.region.batch.azure.com/pools/pool", + "eTag": "0x8DB4792BE8566A2", + "lastModified": "2023-04-28T02:46:19.0268066Z", + "creationTime": "2023-04-28T02:46:19.0268066Z", + "state": "active", + "stateTransitionTime": "2023-04-28T02:46:19.0268066Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2023-04-28T02:47:17.9169655Z", + "vmSize": "standard_d1_v2", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 2, + "targetDedicatedNodes": 2, + "currentLowPriorityNodes": 0, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.windows amd64" + }, + "networkConfiguration": { + "dynamicVNetAssignmentScope": "none", + "enableAcceleratedNetworking": true + }, + "currentNodeCommunicationMode": "classic" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_Basic.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_Basic.json new file mode 100644 index 000000000000..6262ef80a3f7 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_Basic.json @@ -0,0 +1,58 @@ +{ + "operationId": "Pools_GetPool", + "title": "Pool get", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "pool", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "pool", + "url": "https://account.region.batch.azure.com/pools/pool", + "eTag": "0x8D413091E739A56", + "lastModified": "2016-11-22T18:55:25.2608598Z", + "creationTime": "2016-11-22T18:55:24.2632496Z", + "state": "active", + "stateTransitionTime": "2016-11-22T18:55:24.2632496Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2016-11-22T18:55:24.8154041Z", + "vmSize": "standard_a1", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0, + "targetDedicatedNodes": 0, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "startTask": { + "commandLine": "/bin/bash -c 'echo start task'", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "0001-com-ubuntu-server-focal", + "sku": "20_04-lts", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.ubuntu 20.04" + } + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json new file mode 100644 index 000000000000..58ee2ddcbd99 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json @@ -0,0 +1,55 @@ +{ + "operationId": "Pools_GetPool", + "title": "Get a VirtualMachineConfiguration pool with SecurityProfile", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "mypool001", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Wed, 14 Jun 2023 06:39:01 GMT" + }, + "responses": { + "200": { + "body": { + "id": "mypool001", + "url": "https://account.region.batch.azure.com/pools/pool", + "eTag": "0x8DB6CA2DFF530D1", + "lastModified": "2023-06-14T06:45:00.0946897Z", + "creationTime": "2023-06-14T06:45:00.0946897Z", + "state": "active", + "stateTransitionTime": "2023-06-14T06:45:00.0946897Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2023-06-14T06:45:59.4770341Z", + "vmSize": "standard_dc2s_v2", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 1, + "targetDedicatedNodes": 1, + "currentLowPriorityNodes": 0, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "18_04-lts-gen2", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.ubuntu 18.04", + "securityProfile": { + "securityType": "trustedLaunch", + "encryptionAtHost": true, + "uefiSettings": { + "secureBootEnabled": false + } + } + }, + "currentNodeCommunicationMode": "classic" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json new file mode 100644 index 000000000000..d6e1c7d07a0b --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json @@ -0,0 +1,74 @@ +{ + "operationId": "Pools_GetPool", + "title": "Get a VirtualMachineConfiguration pool with extensions", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "pool", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "pool", + "url": "https://account.region.batch.azure.com/pools/pool", + "eTag": "0x8D413091E739A56", + "lastModified": "2016-11-22T18:55:25.2608598Z", + "creationTime": "2016-11-22T18:55:24.2632496Z", + "state": "active", + "stateTransitionTime": "2016-11-22T18:55:24.2632496Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2016-11-22T18:55:24.8154041Z", + "vmSize": "standard_a1", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0, + "targetDedicatedNodes": 0, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "startTask": { + "commandLine": "/bin/bash -c 'echo start task'", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "0001-com-ubuntu-server-focal", + "sku": "20_04-lts", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.ubuntu 20.04", + "extensions": [ + { + "name": "batchextension1", + "type": "KeyVaultForLinux", + "publisher": "Microsoft.Azure.KeyVault", + "typeHandlerVersion": "2.0", + "autoUpgradeMinorVersion": true, + "enableAutomaticUpgrade": true, + "settings": { + "secretsManagementSettingsKey": "secretsManagementSettingsValue", + "authenticationSettingsKey": "authenticationSettingsValue" + } + } + ] + }, + "targetNodeCommunicationMode": "classic", + "currentNodeCommunicationMode": "classic" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json new file mode 100644 index 000000000000..c8c72b256329 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json @@ -0,0 +1,58 @@ +{ + "operationId": "Pools_GetPool", + "title": "Add a VirtualMachineConfiguration pool with OS disk", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "mypool001", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Wed, 23 Aug 2023 08:42:01 GMT" + }, + "responses": { + "200": { + "body": { + "id": "mypool001", + "url": "http://localhost:20302/testaccount1tls/pools/mypool001", + "eTag": "0x8DBA3B4E91CD7B7", + "lastModified": "2023-08-23T08:42:40.3479479Z", + "creationTime": "2023-08-23T08:42:40.3479479Z", + "state": "active", + "stateTransitionTime": "2023-08-23T08:42:40.3479479Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2023-08-23T08:42:53.8587829Z", + "vmSize": "standard_d2s_v3", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 1, + "targetDedicatedNodes": 1, + "currentLowPriorityNodes": 0, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "0001-com-ubuntu-server-focal", + "sku": "20_04-lts", + "version": "latest" + }, + "osDisk": { + "ephemeralOSDiskSettings": { + "placement": "cachedisk" + }, + "managedDisk": { + "storageAccountType": "standardssd_lrs" + }, + "diskSizeGB": 100, + "caching": "readwrite" + }, + "nodeAgentSKUId": "batch.node.ubuntu 20.04" + }, + "currentNodeCommunicationMode": "classic" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json new file mode 100644 index 000000000000..065c6d30d888 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json @@ -0,0 +1,54 @@ +{ + "operationId": "Pools_GetPool", + "title": "Get a VirtualMachineConfiguration pool with ServiceArtifactReference", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "pool", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Thu, 11 May 2023 08:08:01 GMT" + }, + "responses": { + "200": { + "body": { + "id": "pool", + "url": "https://account.region.batch.azure.com/pools/pool", + "eTag": "0x8DB51F652DFC78F", + "lastModified": "2023-05-11T08:04:19.7259151Z", + "creationTime": "2023-05-11T08:04:19.7259151Z", + "state": "active", + "stateTransitionTime": "2023-05-11T08:04:19.7259151Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2023-05-11T08:05:22.0020052Z", + "vmSize": "standard_a1_v2", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 2, + "targetDedicatedNodes": 2, + "currentLowPriorityNodes": 0, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": false + }, + "serviceArtifactReference": { + "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile" + } + }, + "currentNodeCommunicationMode": "classic" + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json new file mode 100644 index 000000000000..d25481d5bbe0 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json @@ -0,0 +1,141 @@ +{ + "operationId": "Pools_ListPoolNodeCounts", + "title": "NodeCountsPayload", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "poolId": "pool1", + "dedicated": { + "creating": 0, + "deallocated": 0, + "deallocating": 0, + "idle": 0, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 0, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "upgradingOS": 0, + "total": 0 + }, + "lowPriority": { + "creating": 0, + "deallocated": 0, + "deallocating": 0, + "idle": 0, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 2, + "starting": 1, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "upgradingOS": 0, + "total": 3 + } + }, + { + "poolId": "pool2", + "dedicated": { + "creating": 0, + "deallocated": 0, + "deallocating": 0, + "idle": 1, + "leavingPool": 0, + "offline": 3, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 0, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "upgradingOS": 0, + "total": 4 + }, + "lowPriority": { + "creating": 0, + "deallocated": 0, + "deallocating": 0, + "idle": 0, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 0, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "upgradingOS": 0, + "total": 0 + } + }, + { + "poolId": "pool3", + "dedicated": { + "creating": 0, + "deallocated": 0, + "deallocating": 0, + "idle": 5, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 4, + "running": 0, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "upgradingOS": 0, + "total": 9 + }, + "lowPriority": { + "creating": 7, + "deallocated": 0, + "deallocating": 0, + "idle": 0, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 4, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "upgradingOS": 0, + "total": 11 + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json new file mode 100644 index 000000000000..b9fc8590ee01 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json @@ -0,0 +1,32 @@ +{ + "operationId": "Pools_ListPoolUsageMetrics", + "title": "Pool list usage metrics", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "startTime": "2013-04-01T00:00:00Z", + "endTime": "2013-04-01T00:30:00Z", + "poolId": "p1", + "vmSize": "a1", + "totalCoreHours": 39.384838 + }, + { + "startTime": "2013-04-01T00:30:00Z", + "endTime": "2013-04-01T01:00:00Z", + "poolId": "p2", + "vmSize": "a8", + "totalCoreHours": 3039.384838 + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPools_Basic.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPools_Basic.json new file mode 100644 index 000000000000..f7a2eba406d2 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPools_Basic.json @@ -0,0 +1,61 @@ +{ + "operationId": "Pools_ListPools", + "title": "Pool list", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "testPool", + "url": "https://accountname.region.batch.azure.com/pools/testPool", + "eTag": "0x8D4123BEF87D233", + "lastModified": "2016-11-21T18:26:39.7108787Z", + "creationTime": "2016-11-21T18:26:39.7108787Z", + "state": "active", + "stateTransitionTime": "2016-11-21T18:26:39.7108787Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2016-11-21T18:27:40.287803Z", + "vmSize": "small", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 3, + "currentLowPriorityNodes": 0, + "targetDedicatedNodes": 3, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.windows amd64" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListSupportedImages.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListSupportedImages.json new file mode 100644 index 000000000000..a680b3a7f718 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListSupportedImages.json @@ -0,0 +1,78 @@ +{ + "operationId": "Pools_ListSupportedImages", + "title": "Account list node agent skus", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "nodeAgentSKUId": "batch.node.centos 7", + "imageReference": { + "publisher": "OpenLogic", + "offer": "CentOS", + "sku": "7.2", + "version": "latest" + }, + "verificationType": "verified", + "capabilities": [ + "DockerCompatible", + "NvidiaTeslaDriverInstalled" + ], + "osType": "linux" + }, + { + "nodeAgentSKUId": "batch.node.centos 7", + "imageReference": { + "publisher": "OpenLogic", + "offer": "CentOS", + "sku": "7.1", + "version": "latest" + }, + "verificationType": "unverified", + "osType": "linux", + "batchSupportEndOfLife": "2019-11-01T00:00:00.0Z" + }, + { + "nodeAgentSKUId": "batch.node.debian 8", + "imageReference": { + "publisher": "Credativ", + "offer": "Debian", + "sku": "8", + "version": "latest" + }, + "verificationType": "verified", + "osType": "linux" + }, + { + "nodeAgentSKUId": "batch.node.windows amd64", + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2012-R2-Datacenter", + "version": "latest" + }, + "verificationType": "verified", + "osType": "windows" + }, + { + "nodeAgentSKUId": "batch.node.windows amd64", + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2012-Datacenter", + "version": "latest" + }, + "verificationType": "verified", + "osType": "windows" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_PoolExists.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_PoolExists.json new file mode 100644 index 000000000000..3d4df6ca98df --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_PoolExists.json @@ -0,0 +1,15 @@ +{ + "operationId": "Pools_PoolExists", + "title": "Check Pool Exists", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_RemoveNodes.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_RemoveNodes.json new file mode 100644 index 000000000000..2e68b4a5da9f --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_RemoveNodes.json @@ -0,0 +1,20 @@ +{ + "operationId": "Pools_RemoveNodes", + "title": "Pool remove nodes", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "content": { + "nodeList": [ + "tvm-1695681911_1-20161122t224741z", + "tvm-1695681911_2-20161122t224741z" + ] + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json new file mode 100644 index 000000000000..c2208c4d2c0e --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json @@ -0,0 +1,21 @@ +{ + "operationId": "Pools_ReplacePoolProperties", + "title": "Pool update", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "startTask": { + "commandLine": "/bin/bash -c 'echo start task'" + }, + "applicationPackageReferences": [], + "metadata": [] + } + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ResizePool.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ResizePool.json new file mode 100644 index 000000000000..29ffedcbcfab --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ResizePool.json @@ -0,0 +1,18 @@ +{ + "operationId": "Pools_ResizePool", + "title": "Pool resize", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "resizePool", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "content": { + "targetDedicatedNodes": 1, + "targetLowPriorityNodes": 0 + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_StopPoolResize.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_StopPoolResize.json new file mode 100644 index 000000000000..c63dce3238c5 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_StopPoolResize.json @@ -0,0 +1,14 @@ +{ + "operationId": "Pools_StopPoolResize", + "title": "Pool stop resize", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_UpdatePool.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_UpdatePool.json new file mode 100644 index 000000000000..28d784abfed8 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_UpdatePool.json @@ -0,0 +1,19 @@ +{ + "operationId": "Pools_UpdatePool", + "title": "Patch the Pool", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "startTask": { + "commandLine": "/bin/bash -c 'echo start task'" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json new file mode 100644 index 000000000000..d2e7cc3f97f0 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json @@ -0,0 +1,45 @@ +{ + "operationId": "Tasks_CreateTaskCollection", + "title": "Creates a basic collection of tasks", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "taskCollection": { + "value": [ + { + "id": "simple1", + "commandLine": "cmd /c dir /s" + }, + { + "id": "simple2", + "commandLine": "cmd /c dir /s" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "status": "success", + "taskId": "simple1", + "eTag": "0x8D3D623CD661246", + "lastModified": "2016-09-06T07:02:44.7589958Z", + "location": "https://account.region.batch.azure.com/jobs/jobId/tasks/simple1" + }, + { + "status": "success", + "taskId": "simple2", + "eTag": "0x8D3D623CD7072CC", + "lastModified": "2016-09-06T07:02:44.8270028Z", + "location": "https://account.region.batch.azure.com/jobs/jobId/tasks/simple2" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json new file mode 100644 index 000000000000..3124669e48a4 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json @@ -0,0 +1,80 @@ +{ + "operationId": "Tasks_CreateTaskCollection", + "title": "Creates a complex collection of tasks", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "taskCollection": { + "value": [ + { + "id": "complex1", + "commandLine": "cmd /c dir /s", + "resourceFiles": [ + { + "autoStorageContainerName": "containerName", + "filePath": "data" + } + ], + "environmentSettings": [ + { + "name": "env1", + "value": "value1" + }, + { + "name": "env2", + "value": "value2" + } + ], + "affinityInfo": { + "affinityId": "affinityId" + }, + "constraints": { + "maxWallClockTime": "P1D", + "retentionTime": "P2D", + "maxTaskRetryCount": 5 + }, + "requiredSlots": 2, + "multiInstanceSettings": { + "numberOfInstances": 3, + "coordinationCommandLine": "cmd /c echo coordinating", + "commonResourceFiles": [ + { + "httpUrl": "https://common.blob.core.windows.net/", + "filePath": "common.exe" + } + ] + } + }, + { + "id": "simple3", + "commandLine": "cmd /c dir /s" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "taskId": "simple3", + "status": "success", + "eTag": "0x8D3D623CE295629", + "lastModified": "2016-09-06T07:02:46.0386857Z", + "location": "https://account.region.batch.azure.com/jobs/jobId/tasks/simple3" + }, + { + "taskId": "complex1", + "status": "success", + "eTag": "0x8D3D623CE29A412", + "lastModified": "2016-09-06T07:02:46.0406802Z", + "location": "https://account.region.batch.azure.com/jobs/jobId/tasks/complex1" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json new file mode 100644 index 000000000000..19009ec05e46 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json @@ -0,0 +1,18 @@ +{ + "operationId": "Tasks_CreateTask", + "title": "Creates a basic task", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "task": { + "id": "task1", + "commandLine": "cmd /c echo task1" + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json new file mode 100644 index 000000000000..435647de8e6f --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json @@ -0,0 +1,28 @@ +{ + "operationId": "Tasks_CreateTask", + "title": "Creates a task with container settings", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "task": { + "id": "taskId", + "commandLine": "bash -c 'echo hello'", + "containerSettings": { + "imageName": "ubuntu", + "containerRunOptions": "--rm" + }, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json new file mode 100644 index 000000000000..bf4b3e6125c1 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json @@ -0,0 +1,33 @@ +{ + "operationId": "Tasks_CreateTask", + "title": "Creates a task with container settings with data isolation", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Tue, 26 Mar 2024 00:00:00 GMT", + "task": { + "id": "taskId", + "commandLine": "bash -c 'echo hello'", + "containerSettings": { + "imageName": "ubuntu", + "containerHostBatchBindMounts": [ + { + "source": "Task", + "isReadOnly": true + } + ] + }, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json new file mode 100644 index 000000000000..219df4f7ed6b --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json @@ -0,0 +1,37 @@ +{ + "operationId": "Tasks_CreateTask", + "title": "Creates a task with container settings with duplicate source", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Tue, 26 Mar 2024 00:00:00 GMT", + "task": { + "id": "taskId", + "commandLine": "bash -c 'echo hello'", + "containerSettings": { + "imageName": "ubuntu", + "containerHostBatchBindMounts": [ + { + "source": "Task", + "isReadOnly": true + }, + { + "source": "Task", + "isReadOnly": true + } + ] + }, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json new file mode 100644 index 000000000000..7e906114290b --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json @@ -0,0 +1,35 @@ +{ + "operationId": "Tasks_CreateTask", + "title": "Creates a task with exit conditions", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "task": { + "id": "taskId", + "commandLine": "cmd /c exit 3", + "exitConditions": { + "exitCodeRanges": [ + { + "start": 2, + "end": 4, + "exitOptions": { + "jobAction": "terminate" + } + } + ] + }, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json new file mode 100644 index 000000000000..d5edf7f9b2f3 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json @@ -0,0 +1,19 @@ +{ + "operationId": "Tasks_CreateTask", + "title": "Creates a task with extra slot requirement", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "task": { + "id": "task1", + "requiredSlots": 2, + "commandLine": "cmd /c echo task1" + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTask.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTask.json new file mode 100644 index 000000000000..137f15899eea --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTask.json @@ -0,0 +1,15 @@ +{ + "operationId": "Tasks_DeleteTask", + "title": "Task delete", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json new file mode 100644 index 000000000000..aaafede1c026 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json @@ -0,0 +1,17 @@ +{ + "operationId": "Tasks_DeleteTaskFile", + "title": "File delete from task", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "task1", + "filePath": "wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "recursive": false + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTask.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTask.json new file mode 100644 index 000000000000..312752b206e9 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTask.json @@ -0,0 +1,46 @@ +{ + "operationId": "Tasks_GetTask", + "title": "Task get", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "testTask", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/taskId", + "eTag": "0x8D3D62350711C55", + "creationTime": "2016-09-06T06:59:15.1161429Z", + "lastModified": "2016-09-06T06:59:15.1161429Z", + "state": "active", + "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", + "commandLine": "cmd /c hostname", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "multiInstanceSettings": { + "numberOfInstances": 3, + "coordinationCommandLine": "cmd /c echo coordinating" + }, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "retentionTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "requiredSlots": 2, + "executionInfo": { + "retryCount": 0, + "requeueCount": 0 + } + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFile.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFile.json new file mode 100644 index 000000000000..4dbf72e96c7f --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFile.json @@ -0,0 +1,23 @@ +{ + "operationId": "Tasks_GetTaskFile", + "title": "Get File From Task", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "task1", + "filePath": "wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream", + "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json new file mode 100644 index 000000000000..99e3c7b9177f --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json @@ -0,0 +1,22 @@ +{ + "operationId": "Tasks_GetTaskFileProperties", + "title": "File get properties from task", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "taskId", + "filePath": "wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListSubTasks.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListSubTasks.json new file mode 100644 index 000000000000..f98c195dff2a --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListSubTasks.json @@ -0,0 +1,52 @@ +{ + "operationId": "Tasks_ListSubTasks", + "title": "Task list subtasks", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": 1, + "startTime": "2016-09-06T06:59:16.3139271Z", + "endTime": "2016-09-06T06:59:20.0242024Z", + "state": "completed", + "stateTransitionTime": "2016-09-06T06:59:20.0242024Z", + "previousState": "running", + "previousStateTransitionTime": "2016-09-06T06:59:16.3139271Z", + "exitCode": 0, + "nodeInfo": { + "affinityId": "TVM:tvm-2544493925_3-20160905t051718z", + "nodeUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2544493925_3-20160905t051718z", + "poolId": "mpiPool", + "nodeId": "tvm-2544493925_3-20160905t051718z", + "taskRootDirectory": "\\workitems\\jobId\\job-1\\taskId\\1", + "taskRootDirectoryUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2544493925_3-20160905t051718z/files//workitems/jobId/job-1/taskId/1" + } + }, + { + "id": 2, + "startTime": "2016-09-06T06:59:16.9702844Z", + "state": "running", + "stateTransitionTime": "2016-09-06T06:59:16.9702844Z", + "nodeInfo": { + "affinityId": "TVM:tvm-2544493925_2-20160905t051718z", + "nodeUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2544493925_2-20160905t051718z", + "poolId": "mpiPool", + "nodeId": "tvm-2544493925_2-20160905t051718z", + "taskRootDirectory": "\\workitems\\jobId\\job-1\\taskId\\2", + "taskRootDirectoryUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2544493925_2-20160905t051718z/files//workitems/jobId/job-1/taskId/2" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json new file mode 100644 index 000000000000..494f14e3252d --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json @@ -0,0 +1,43 @@ +{ + "operationId": "Tasks_ListTaskFiles", + "title": "File list from task", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "recursive": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "startup\\ProcessEnv.cmd", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/taskId/files/startup\\ProcessEnv.cmd", + "isDirectory": false, + "properties": { + "creationTime": "2014-09-19T21:56:17.679195Z", + "lastModified": "2014-09-19T21:56:17.679195Z", + "contentLength": "1813", + "contentType": "application/octet-stream" + } + }, + { + "name": "startup\\stderr.txt", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/taskId/files/startup\\stderr.txt", + "isDirectory": false, + "properties": { + "creationTime": "2014-09-19T21:56:17.5590855Z", + "lastModified": "2014-09-19T21:56:17.5590855Z", + "contentLength": "0", + "contentType": "application/octet-stream" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTasks.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTasks.json new file mode 100644 index 000000000000..4eac964e9582 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTasks.json @@ -0,0 +1,71 @@ +{ + "operationId": "Tasks_ListTasks", + "title": "Task list", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "task1", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/task1", + "eTag": "0x8D4125FD1A825A4", + "creationTime": "2016-11-21T22:43:31.4733476Z", + "lastModified": "2016-11-21T22:43:31.4733476Z", + "state": "active", + "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", + "commandLine": "cmd /c echo task1", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "retentionTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "requiredSlots": 2, + "executionInfo": { + "retryCount": 0, + "requeueCount": 0 + } + }, + { + "id": "task2", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/task2", + "eTag": "0x8D4125FD2153345", + "creationTime": "2016-11-21T22:43:31.6736345Z", + "lastModified": "2016-11-21T22:43:32.1880389Z", + "state": "active", + "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", + "commandLine": "cmd /c echo task2", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "retentionTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 3 + }, + "requiredSlots": 2, + "executionInfo": { + "retryCount": 0, + "requeueCount": 0 + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReactivateTask.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReactivateTask.json new file mode 100644 index 000000000000..e997458d2906 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReactivateTask.json @@ -0,0 +1,15 @@ +{ + "operationId": "Tasks_ReactivateTask", + "title": "Task reactivate", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReplaceTask.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReplaceTask.json new file mode 100644 index 000000000000..603f15d36c41 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReplaceTask.json @@ -0,0 +1,22 @@ +{ + "operationId": "Tasks_ReplaceTask", + "title": "Task update", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "task": { + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_TerminateTask.json b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_TerminateTask.json new file mode 100644 index 000000000000..dd199028aef5 --- /dev/null +++ b/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_TerminateTask.json @@ -0,0 +1,15 @@ +{ + "operationId": "Tasks_TerminateTask", + "title": "Task terminate", + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2024-07-01.20.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/readme.md b/specification/batch/data-plane/readme.md index 18197bf62a7f..b711d6b0a095 100644 --- a/specification/batch/data-plane/readme.md +++ b/specification/batch/data-plane/readme.md @@ -30,6 +30,15 @@ openapi-type: data-plane tag: package-2024-07 ``` +### Tag: package-2024-07.20.0 + +These settings apply only when `--tag=package-2024-07.20.0` is specified on the command line. + +```yaml $(tag) == 'package-2024-07.20.0-preview' +input-file: + - Azure.Batch/stable/2024-07-01.20.0/BatchService.json +``` + ### Tag: package-2024-07 These settings apply only when `--tag=package-2024-07` is specified on the command line. From ad314444e759c1f6aab50fe23dfcae03be0700ae Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Fri, 4 Oct 2024 22:57:36 -0700 Subject: [PATCH 2/5] update CSharp name overrides --- specification/batch/Azure.Batch/client.tsp | 12 ++++++++++++ specification/batch/Azure.Batch/routes.tsp | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/specification/batch/Azure.Batch/client.tsp b/specification/batch/Azure.Batch/client.tsp index dfaaf95a8a32..b61981ee4128 100644 --- a/specification/batch/Azure.Batch/client.tsp +++ b/specification/batch/Azure.Batch/client.tsp @@ -96,8 +96,20 @@ interface BatchClient { // Api overrides @@access(Azure.Batch.Pools.poolExists, Access.internal, "csharp"); @@access(Azure.Batch.JobSchedules.jobScheduleExists, Access.internal, "csharp"); +@@clientName(BatchClient.jobScheduleExists, + "jobScheduleExistsInternal", + "csharp" +); @@access(Azure.Batch.Tasks.getTaskFileProperties, Access.internal, "csharp"); +@@clientName(BatchClient.getTaskFileProperties, + "getTaskFilePropertiesInternal", + "csharp" +); @@access(Azure.Batch.Nodes.getNodeFileProperties, Access.internal, "csharp"); +@@clientName(BatchClient.getNodeFileProperties, + "getNodeFilePropertiesInternal", + "csharp" +); /* JAVA OVERRIDES */ // client name overrides diff --git a/specification/batch/Azure.Batch/routes.tsp b/specification/batch/Azure.Batch/routes.tsp index 2508b0f4fc50..6bb346a8bded 100644 --- a/specification/batch/Azure.Batch/routes.tsp +++ b/specification/batch/Azure.Batch/routes.tsp @@ -1178,7 +1178,6 @@ interface Tasks { @doc("Gets the properties of the specified Task file.") @route("/jobs/{jobId}/tasks/{taskId}/files/{filePath}") @clientName("getTaskFilePropertiesInternal", "java") - @clientName("getTaskFilePropertiesInternal", "csharp") getTaskFileProperties is HeadFileOperation< BatchTaskFileClientPathContent & BatchModifiedSinceHeaders, {} @@ -1633,7 +1632,6 @@ interface Nodes { @doc("Gets the properties of the specified Compute Node file.") @route("/pools/{poolId}/nodes/{nodeId}/files/{filePath}") @clientName("getNodeFilePropertiesInternal", "java") - @clientName("getNodeFilePropertiesInternal", "csharp") getNodeFileProperties is HeadFileOperation< BatchNodeFileClientPathContent & BatchModifiedSinceHeaders, {} From 2c6313bab74f42d2d130fb4b95191c946cac2635 Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Fri, 4 Oct 2024 23:19:52 -0700 Subject: [PATCH 3/5] update of csharp client names --- specification/batch/Azure.Batch/client.tsp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/batch/Azure.Batch/client.tsp b/specification/batch/Azure.Batch/client.tsp index b61981ee4128..7e45b39dc549 100644 --- a/specification/batch/Azure.Batch/client.tsp +++ b/specification/batch/Azure.Batch/client.tsp @@ -96,10 +96,6 @@ interface BatchClient { // Api overrides @@access(Azure.Batch.Pools.poolExists, Access.internal, "csharp"); @@access(Azure.Batch.JobSchedules.jobScheduleExists, Access.internal, "csharp"); -@@clientName(BatchClient.jobScheduleExists, - "jobScheduleExistsInternal", - "csharp" -); @@access(Azure.Batch.Tasks.getTaskFileProperties, Access.internal, "csharp"); @@clientName(BatchClient.getTaskFileProperties, "getTaskFilePropertiesInternal", From 66f189d37a3c37a878a3ce41ff372e9507fa4e30 Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Mon, 7 Oct 2024 12:19:44 -0700 Subject: [PATCH 4/5] update --- specification/batch/Azure.Batch/package.json | 30 +++++++++++++++++++ .../batch/Azure.Batch/tspconfig.yaml | 2 +- .../2024-07-01.20.0/BatchService.json | 0 .../examples/Applications_GetApplication.json | 0 .../Applications_ListApplications.json | 0 .../JobSchedules_CreateJobSchedule_Basic.json | 0 ...obSchedules_CreateJobSchedule_Complex.json | 0 .../JobSchedules_DeleteJobSchedule.json | 0 .../JobSchedules_DisableJobSchedule.json | 0 .../JobSchedules_EnableJobSchedule.json | 0 .../examples/JobSchedules_GetJobSchedule.json | 0 .../JobSchedules_JobScheduleExists.json | 0 .../JobSchedules_ListJobSchedules.json | 0 .../JobSchedules_ReplaceJobSchedule.json | 0 .../JobSchedules_TerminateJobSchedule.json | 0 .../JobSchedules_UpdateJobSchedule.json | 0 .../examples/Jobs_CreateJob_Basic.json | 0 .../examples/Jobs_CreateJob_Complex.json | 0 .../examples/Jobs_DeleteJob.json | 0 .../examples/Jobs_DisableJob.json | 0 .../examples/Jobs_EnableJob.json | 0 .../2024-07-01.20.0/examples/Jobs_GetJob.json | 0 .../examples/Jobs_GetJobTaskCounts.json | 0 ...istJobPreparationAndReleaseTaskStatus.json | 0 .../examples/Jobs_ListJobs.json | 0 .../examples/Jobs_ListJobsFromSchedule.json | 0 .../examples/Jobs_ReplaceJob.json | 0 .../examples/Jobs_TerminateJob.json | 0 .../examples/Jobs_UpdateJob.json | 0 .../examples/Node_DeallocateNode.json | 0 .../examples/Node_StartNode.json | 0 .../examples/Nodes_CreateNodeUser.json | 0 .../examples/Nodes_DeleteNodeFile.json | 0 .../examples/Nodes_DeleteNodeUser.json | 0 .../examples/Nodes_DisableNodeScheduling.json | 0 .../examples/Nodes_EnableNodeScheduling.json | 0 .../examples/Nodes_GetNode.json | 0 .../examples/Nodes_GetNodeExtension.json | 0 .../examples/Nodes_GetNodeFile.json | 0 .../examples/Nodes_GetNodeFileProperties.json | 0 .../Nodes_GetNodeRemoteLoginSettings.json | 0 .../examples/Nodes_ListNodeExtensions.json | 0 .../examples/Nodes_ListNodeFiles.json | 0 .../examples/Nodes_ListNodes.json | 0 .../examples/Nodes_NodeReimage.json | 0 .../examples/Nodes_RebootNode.json | 0 .../examples/Nodes_ReplaceNodeUser.json | 0 .../examples/Nodes_UploadNodeLogs.json | 0 ...ools_CreatePool_AcceleratedNetworking.json | 0 .../Pools_CreatePool_MountConfiguration.json | 0 .../examples/Pools_CreatePool_OSDisk.json | 0 .../Pools_CreatePool_ResourceTags.json | 0 .../Pools_CreatePool_SecurityProfile.json | 0 ...reatePool_VirtualMachineConfiguration.json | 0 ...ualMachineConfigurationWithContainers.json | 0 ...ualMachineConfigurationWithExtensions.json | 0 ...igurationWithServiceArtifactReference.json | 0 .../examples/Pools_DeletePool.json | 0 .../examples/Pools_DisablePoolAutoScale.json | 0 .../examples/Pools_EnablePoolAutoscale.json | 0 .../examples/Pools_EvaluatePoolAutoscale.json | 0 .../Pools_GetPool_AcceleratedNetworking.json | 0 .../examples/Pools_GetPool_Basic.json | 0 .../Pools_GetPool_SecurityProfile.json | 0 ...ualMachineConfigurationWithExtensions.json | 0 ...VirtualMachineConfigurationWithOSDisk.json | 0 ...igurationWithServiceArtifactReference.json | 0 .../examples/Pools_ListPoolNodeCounts.json | 0 .../examples/Pools_ListPoolUsageMetrics.json | 0 .../examples/Pools_ListPools_Basic.json | 0 .../examples/Pools_ListSupportedImages.json | 0 .../examples/Pools_PoolExists.json | 0 .../examples/Pools_RemoveNodes.json | 0 .../examples/Pools_ReplacePoolProperties.json | 0 .../examples/Pools_ResizePool.json | 0 .../examples/Pools_StopPoolResize.json | 0 .../examples/Pools_UpdatePool.json | 0 .../Tasks_CreateTaskCollection_Basic.json | 0 .../Tasks_CreateTaskCollection_Complex.json | 0 .../examples/Tasks_CreateTask_Basic.json | 0 .../Tasks_CreateTask_ContainerSettings.json | 0 ...sk_ContainerSettingsWithDataIsolation.json | 0 ...ngsWithDataIsolation_DuplicateSources.json | 0 .../Tasks_CreateTask_ExitConditions.json | 0 .../Tasks_CreateTask_RequiredSlots.json | 0 .../examples/Tasks_DeleteTask.json | 0 .../examples/Tasks_DeleteTaskFile.json | 0 .../examples/Tasks_GetTask.json | 0 .../examples/Tasks_GetTaskFile.json | 0 .../examples/Tasks_GetTaskFileProperties.json | 0 .../examples/Tasks_ListSubTasks.json | 0 .../examples/Tasks_ListTaskFiles.json | 0 .../examples/Tasks_ListTasks.json | 0 .../examples/Tasks_ReactivateTask.json | 0 .../examples/Tasks_ReplaceTask.json | 0 .../examples/Tasks_TerminateTask.json | 0 specification/batch/data-plane/readme.md | 2 +- 97 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 specification/batch/Azure.Batch/package.json rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/BatchService.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Applications_GetApplication.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Applications_ListApplications.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_DeleteJob.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_DisableJob.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_EnableJob.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_GetJob.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_ListJobs.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_ReplaceJob.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_TerminateJob.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Jobs_UpdateJob.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Node_DeallocateNode.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Node_StartNode.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_GetNode.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_GetNodeFile.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_ListNodes.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_NodeReimage.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_RebootNode.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_DeletePool.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_GetPool_Basic.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_ListPools_Basic.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_ListSupportedImages.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_PoolExists.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_RemoveNodes.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_ResizePool.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_StopPoolResize.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Pools_UpdatePool.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_DeleteTask.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_GetTask.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_GetTaskFile.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_ListSubTasks.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_ListTasks.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_ReactivateTask.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_ReplaceTask.json (100%) rename specification/batch/data-plane/Azure.Batch/{stable => preview}/2024-07-01.20.0/examples/Tasks_TerminateTask.json (100%) diff --git a/specification/batch/Azure.Batch/package.json b/specification/batch/Azure.Batch/package.json new file mode 100644 index 000000000000..2159e8f89683 --- /dev/null +++ b/specification/batch/Azure.Batch/package.json @@ -0,0 +1,30 @@ +{ + "name": "azure-rest-api-specs", + "devDependencies": { + "@azure-tools/typespec-apiview": "0.4.9", + "@azure-tools/typespec-autorest": "0.46.0", + "@azure-tools/typespec-azure-core": "0.46.0", + "@azure-tools/typespec-azure-portal-core": "0.46.0", + "@azure-tools/typespec-azure-resource-manager": "0.46.1", + "@azure-tools/typespec-azure-rulesets": "0.46.0", + "@azure-tools/typespec-client-generator-cli": "0.13.0", + "@azure-tools/typespec-client-generator-core": "0.46.0", + "@azure-tools/typespec-liftr-base": "0.4.0", + "@azure/avocado": "^0.8.4", + "@typespec/compiler": "0.60.0", + "@typespec/http": "0.60.0", + "@typespec/openapi": "0.60.0", + "@typespec/openapi3": "0.60.0", + "@typespec/rest": "0.60.0", + "@typespec/versioning": "0.60.1", + "azure-rest-api-specs-eng-tools": "file:eng/tools", + "oav": "^3.3.7", + "prettier": "~3.3.3", + "typescript": "~5.5.4" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=9.0.0" + }, + "private": true +} diff --git a/specification/batch/Azure.Batch/tspconfig.yaml b/specification/batch/Azure.Batch/tspconfig.yaml index 96f4695efad8..cd8eb212b04d 100644 --- a/specification/batch/Azure.Batch/tspconfig.yaml +++ b/specification/batch/Azure.Batch/tspconfig.yaml @@ -10,7 +10,7 @@ options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "./data-plane" emitter-output-dir: "{project-root}/.." - output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}//BatchService.json" + output-file: "{azure-resource-provider-folder}/Azure.Batch/preview/{version}/BatchService.json" "@azure-tools/typespec-csharp": package-dir: "Azure.Compute.Batch" clear-output-folder: true diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/BatchService.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/BatchService.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/BatchService.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_GetApplication.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Applications_GetApplication.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_GetApplication.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Applications_GetApplication.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_ListApplications.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Applications_ListApplications.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Applications_ListApplications.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Applications_ListApplications.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Basic.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_CreateJobSchedule_Complex.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_DeleteJobSchedule.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_DisableJobSchedule.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_EnableJobSchedule.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_GetJobSchedule.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_JobScheduleExists.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_ListJobSchedules.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_ReplaceJobSchedule.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_TerminateJobSchedule.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/JobSchedules_UpdateJobSchedule.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_CreateJob_Basic.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_CreateJob_Complex.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DeleteJob.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_DeleteJob.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DeleteJob.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_DeleteJob.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DisableJob.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_DisableJob.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_DisableJob.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_DisableJob.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_EnableJob.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_EnableJob.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_EnableJob.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_EnableJob.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJob.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_GetJob.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJob.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_GetJob.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_GetJobTaskCounts.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_ListJobPreparationAndReleaseTaskStatus.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobs.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_ListJobs.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobs.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_ListJobs.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_ListJobsFromSchedule.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ReplaceJob.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_ReplaceJob.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_ReplaceJob.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_ReplaceJob.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_TerminateJob.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_TerminateJob.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_TerminateJob.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_TerminateJob.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_UpdateJob.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_UpdateJob.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Jobs_UpdateJob.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Jobs_UpdateJob.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_DeallocateNode.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Node_DeallocateNode.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_DeallocateNode.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Node_DeallocateNode.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_StartNode.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Node_StartNode.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Node_StartNode.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Node_StartNode.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_CreateNodeUser.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_DeleteNodeFile.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_DeleteNodeUser.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_DisableNodeScheduling.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_EnableNodeScheduling.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNode.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNode.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNode.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNode.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNodeExtension.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFile.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNodeFile.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFile.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNodeFile.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNodeFileProperties.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_GetNodeRemoteLoginSettings.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_ListNodeExtensions.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_ListNodeFiles.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodes.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_ListNodes.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ListNodes.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_ListNodes.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_NodeReimage.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_NodeReimage.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_NodeReimage.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_NodeReimage.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_RebootNode.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_RebootNode.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_RebootNode.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_RebootNode.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_ReplaceNodeUser.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Nodes_UploadNodeLogs.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_AcceleratedNetworking.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_MountConfiguration.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_OSDisk.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_ResourceTags.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_SecurityProfile.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfiguration.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithContainers.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithExtensions.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_CreatePool_VirtualMachineConfigurationWithServiceArtifactReference.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DeletePool.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_DeletePool.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DeletePool.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_DeletePool.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_DisablePoolAutoScale.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_EnablePoolAutoscale.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_EvaluatePoolAutoscale.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_AcceleratedNetworking.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_Basic.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_Basic.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_Basic.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_Basic.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_SecurityProfile.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithExtensions.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithOSDisk.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_GetPool_VirtualMachineConfigurationWithServiceArtifactReference.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ListPoolNodeCounts.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ListPoolUsageMetrics.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPools_Basic.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ListPools_Basic.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListPools_Basic.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ListPools_Basic.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListSupportedImages.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ListSupportedImages.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ListSupportedImages.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ListSupportedImages.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_PoolExists.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_PoolExists.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_PoolExists.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_PoolExists.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_RemoveNodes.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_RemoveNodes.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_RemoveNodes.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_RemoveNodes.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ReplacePoolProperties.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ResizePool.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ResizePool.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_ResizePool.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_ResizePool.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_StopPoolResize.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_StopPoolResize.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_StopPoolResize.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_StopPoolResize.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_UpdatePool.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_UpdatePool.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Pools_UpdatePool.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Pools_UpdatePool.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Basic.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTaskCollection_Complex.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_Basic.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettings.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_ContainerSettingsWithDataIsolation_DuplicateSources.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_ExitConditions.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_CreateTask_RequiredSlots.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTask.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_DeleteTask.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTask.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_DeleteTask.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_DeleteTaskFile.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTask.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_GetTask.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTask.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_GetTask.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFile.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_GetTaskFile.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFile.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_GetTaskFile.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_GetTaskFileProperties.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListSubTasks.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ListSubTasks.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListSubTasks.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ListSubTasks.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ListTaskFiles.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTasks.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ListTasks.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ListTasks.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ListTasks.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReactivateTask.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ReactivateTask.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReactivateTask.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ReactivateTask.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReplaceTask.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ReplaceTask.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_ReplaceTask.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_ReplaceTask.json diff --git a/specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_TerminateTask.json b/specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_TerminateTask.json similarity index 100% rename from specification/batch/data-plane/Azure.Batch/stable/2024-07-01.20.0/examples/Tasks_TerminateTask.json rename to specification/batch/data-plane/Azure.Batch/preview/2024-07-01.20.0/examples/Tasks_TerminateTask.json diff --git a/specification/batch/data-plane/readme.md b/specification/batch/data-plane/readme.md index b711d6b0a095..9fc73c4fbb4d 100644 --- a/specification/batch/data-plane/readme.md +++ b/specification/batch/data-plane/readme.md @@ -36,7 +36,7 @@ These settings apply only when `--tag=package-2024-07.20.0` is specified on the ```yaml $(tag) == 'package-2024-07.20.0-preview' input-file: - - Azure.Batch/stable/2024-07-01.20.0/BatchService.json + - Azure.Batch/preview/2024-07-01.20.0/BatchService.json ``` ### Tag: package-2024-07 From c800eb2eeb97a929738a476f9e2eb83df10eccac Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Mon, 7 Oct 2024 13:33:01 -0700 Subject: [PATCH 5/5] remove file --- specification/batch/Azure.Batch/package.json | 30 -------------------- 1 file changed, 30 deletions(-) delete mode 100644 specification/batch/Azure.Batch/package.json diff --git a/specification/batch/Azure.Batch/package.json b/specification/batch/Azure.Batch/package.json deleted file mode 100644 index 2159e8f89683..000000000000 --- a/specification/batch/Azure.Batch/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "azure-rest-api-specs", - "devDependencies": { - "@azure-tools/typespec-apiview": "0.4.9", - "@azure-tools/typespec-autorest": "0.46.0", - "@azure-tools/typespec-azure-core": "0.46.0", - "@azure-tools/typespec-azure-portal-core": "0.46.0", - "@azure-tools/typespec-azure-resource-manager": "0.46.1", - "@azure-tools/typespec-azure-rulesets": "0.46.0", - "@azure-tools/typespec-client-generator-cli": "0.13.0", - "@azure-tools/typespec-client-generator-core": "0.46.0", - "@azure-tools/typespec-liftr-base": "0.4.0", - "@azure/avocado": "^0.8.4", - "@typespec/compiler": "0.60.0", - "@typespec/http": "0.60.0", - "@typespec/openapi": "0.60.0", - "@typespec/openapi3": "0.60.0", - "@typespec/rest": "0.60.0", - "@typespec/versioning": "0.60.1", - "azure-rest-api-specs-eng-tools": "file:eng/tools", - "oav": "^3.3.7", - "prettier": "~3.3.3", - "typescript": "~5.5.4" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=9.0.0" - }, - "private": true -}