diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/BatchAI.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/BatchAI.json deleted file mode 100644 index 05b6f9f5945e..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/BatchAI.json +++ /dev/null @@ -1,2991 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "BatchAI", - "description": "The Azure BatchAI Management API.", - "version": "2017-09-01-preview", - "x-ms-code-generation-settings": { - "name": "BatchAIManagementClient" - } - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.BatchAI/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists available operations for the Microsoft.BatchAI provider.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List of available operations for Batch AI Resource Provider": { - "$ref": "./examples/OperationList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/clusters/{clusterName}": { - "put": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Create", - "description": "Adds a cluster. A cluster is a collection of compute nodes. Multiple jobs can be run on the same cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterCreateParameters" - }, - "description": "The parameters to provide for cluster creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the cluster entity.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create or update cluster": { - "$ref": "./examples/PutCluster.json" - } - } - }, - "patch": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Update", - "description": "Update the properties of a given cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterUpdateParameters" - }, - "description": "Additional parameters for cluster update." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the Cluster entity.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Patch cluster": { - "$ref": "./examples/PatchCluster.json" - } - } - }, - "delete": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Delete", - "description": "Deletes a Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete cluster": { - "$ref": "./examples/DeleteCluster.json" - } - } - }, - "get": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Get", - "description": "Gets information about the specified Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains information about the cluster.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get cluster": { - "$ref": "./examples/GetCluster.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/clusters/{clusterName}/listRemoteLoginInformation": { - "post": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_ListRemoteLoginInformation", - "description": "Get the IP address, port of all the compute nodes in the cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the list of IP addresses.", - "schema": { - "$ref": "#/definitions/RemoteLoginInformationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Get a cluster's remote-login-information": { - "$ref": "./examples/ClusterListRemoteLoginInfo.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/clusters": { - "get": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_List", - "description": "Gets information about the Clusters associated with the subscription.", - "parameters": [ - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Cluster entities associated with the subscription.", - "schema": { - "$ref": "#/definitions/ClusterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List clusters": { - "$ref": "./examples/ListCluster.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/clusters": { - "get": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_ListByResourceGroup", - "description": "Gets information about the Clusters associated within the specified resource group.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Cluster entities associated with the resource group.", - "schema": { - "$ref": "#/definitions/ClusterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List clusters": { - "$ref": "./examples/ListClusterByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}": { - "put": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Create", - "description": "Adds a Job that gets executed on a cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/JobCreateParameters" - }, - "description": "The parameters to provide for job creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the job entity.", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create or update job": { - "$ref": "./examples/PutJob.json" - } - } - }, - "delete": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Delete", - "description": "Deletes the specified Batch AI job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete job": { - "$ref": "./examples/DeleteJob.json" - } - } - }, - "get": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Get", - "description": "Gets information about the specified Batch AI job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the Batch AI job entity.", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get job": { - "$ref": "./examples/GetJob.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/listRemoteLoginInformation": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListRemoteLoginInformation", - "description": "Gets the IP address and port information of all the compute nodes which are used for job execution.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains compute node remote login information.", - "schema": { - "$ref": "#/definitions/RemoteLoginInformationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Get a job's remote-login-information ": { - "$ref": "./examples/JobListRemoteLoginInfo.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/terminate": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Terminate", - "description": "Terminates a job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Terminate job": { - "$ref": "./examples/TerminateJob.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/jobs": { - "get": { - "tags": [ - "Job" - ], - "operationId": "Jobs_List", - "description": "Gets information about the jobs associated with the subscription.", - "parameters": [ - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Batch AI job entities associated with the subscription.", - "schema": { - "$ref": "#/definitions/JobListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List jobs": { - "$ref": "./examples/ListJob.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs": { - "get": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListByResourceGroup", - "description": "Gets information about the Batch AI jobs associated within the specified resource group.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Job entities associated with the resource group.", - "schema": { - "$ref": "#/definitions/JobListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List jobs": { - "$ref": "./examples/ListJobByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/listOutputFiles": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListOutputFiles", - "description": "List all files inside the given output directory (Only if the output directory is on Azure File Share or Azure Storage container).", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/OutputDirectoryIdParameter" - }, - { - "$ref": "#/parameters/DownloadLinkExpiryParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the list of job files.", - "schema": { - "$ref": "#/definitions/FileListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List a job's files": { - "$ref": "./examples/ListOutputFiles.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/fileServers/{fileServerName}": { - "put": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_Create", - "description": "Creates a file server.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FileServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/FileServerCreateParameters" - }, - "description": "The parameters to provide for file server creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the file server entity.", - "schema": { - "$ref": "#/definitions/FileServer" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create or update file server": { - "$ref": "./examples/PutFileServer.json" - } - } - }, - "delete": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_Delete", - "description": "Delete a file Server.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FileServerNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete file server": { - "$ref": "./examples/DeleteFileServer.json" - } - } - }, - "get": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_Get", - "description": "Gets information about the specified Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FileServerNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains information about the FileServer.", - "schema": { - "$ref": "#/definitions/FileServer" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get file server": { - "$ref": "./examples/GetFileServer.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/fileServers": { - "get": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_List", - "description": "To list all the file servers available under the given subscription (and across all resource groups within that subscription)", - "parameters": [ - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a formatted list of clusters and their properties.", - "schema": { - "$ref": "#/definitions/FileServerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List file servers": { - "$ref": "./examples/ListFileServer.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/fileServers": { - "get": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_ListByResourceGroup", - "description": "Gets a formatted list of file servers and their properties associated within the specified resource group.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of formatted file servers and their properties associated with the resource group.", - "schema": { - "$ref": "#/definitions/FileServerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List file servers": { - "$ref": "./examples/ListFileServerByResourceGroup.json" - } - } - } - } - }, - "definitions": { - "FileServerBaseProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "The size of the virtual machine of the file server.", - "description": "For information about available VM sizes for fileservers from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux)." - }, - "sshConfiguration": { - "title": "SSH settings for the file server.", - "$ref": "#/definitions/SshConfiguration" - }, - "dataDisks": { - "title": "Settings for the data disk which would be created for the file server.", - "$ref": "#/definitions/DataDisks" - }, - "subnet": { - "title": "Specifies the identifier of the subnet.", - "$ref": "#/definitions/ResourceId" - } - }, - "required": [ - "vmSize", - "sshConfiguration", - "dataDisks" - ], - "description": "The properties of a file server." - }, - "FileServerListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/FileServer" - }, - "description": "The collection of File Servers." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "DataDisks": { - "properties": { - "diskSizeInGB": { - "type": "integer", - "format": "int32", - "readOnly": false, - "title": "Initial disk size in GB for blank data disks, and the new desired size for resizing existing data disks." - }, - "cachingType": { - "type": "string", - "readOnly": true, - "title": "None, ReadOnly, ReadWrite. Default value is None. This property is not patchable.", - "default": "none", - "enum": [ - "none", - "readonly", - "readwrite" - ], - "x-ms-enum": { - "name": "CachingType", - "modelAsString": false - } - }, - "diskCount": { - "type": "integer", - "format": "int32", - "readOnly": false, - "title": "Number of data disks to be attached to the VM. RAID level 0 will be applied in the case of multiple disks." - }, - "storageAccountType": { - "type": "string", - "readOnly": false, - "title": "Specifies the type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS.", - "enum": [ - "Standard_LRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "modelAsString": true - } - } - }, - "required": [ - "diskSizeInGB", - "diskCount", - "storageAccountType" - ], - "description": "Settings for the data disk which would be created for the File Server." - }, - "KeyVaultSecretReference": { - "properties": { - "sourceVault": { - "title": "Fully qualified resource Id for the Key Vault.", - "$ref": "#/definitions/ResourceId" - }, - "secretUrl": { - "type": "string", - "title": "The URL referencing a secret in a Key Vault." - } - }, - "required": [ - "sourceVault", - "secretUrl" - ], - "description": "Describes a reference to Key Vault Secret." - }, - "KeyVaultKeyReference": { - "properties": { - "sourceVault": { - "title": "Fully qualified resource Id for the Key Vault.", - "$ref": "#/definitions/ResourceId" - }, - "keyUrl": { - "type": "string", - "title": "The URL referencing a key in a Key Vault." - } - }, - "required": [ - "sourceVault", - "keyUrl" - ], - "description": "Describes a reference to Key Vault Key." - }, - "MountSettings": { - "properties": { - "mountPoint": { - "type": "string", - "title": "Path where the NFS is mounted on the Server." - }, - "fileServerPublicIP": { - "type": "string", - "title": "Public IP of the File Server VM." - }, - "fileServerInternalIP": { - "type": "string", - "title": "Internal subnet IP which can be used to access the file Server from within the subnet." - }, - "fileServerType": { - "type": "string", - "title": "Type of the fileserver e.g. nfs, glusterfs etc.", - "enum": [ - "nfs", - "glusterfs" - ], - "x-ms-enum": { - "name": "FileServerType", - "modelAsString": true - } - } - }, - "description": "Details of the File Server." - }, - "SshConfiguration": { - "properties": { - "publicIPsToAllow": { - "type": "array", - "items": { - "type": "string" - }, - "title": "List of source IP ranges to allow SSH connection to VM.", - "description": "Default value is '*' can be used to match all source IPs. Maximum number of publicIPs that can be specified are 400." - }, - "userAccountSettings": { - "title": "Settings for user account of VMs.", - "$ref": "#/definitions/UserAccountSettings" - } - }, - "required": [ - "userAccountSettings" - ], - "description": "SSH configuration settings for the VM" - }, - "FileServerCreateParameters": { - "properties": { - "location": { - "type": "string", - "description": "The region in which to create the File Server." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The user specified tags associated with the File Server." - }, - "properties": { - "$ref": "#/definitions/FileServerBaseProperties", - "description": "The properties of the File Server.", - "x-ms-client-flatten": true - } - }, - "required": [ - "location" - ], - "description": "Parameters supplied to the Create operation." - }, - "FileServerProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "The size of the virtual machine of the File Server.", - "description": "For information about available VM sizes for File Server from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux)." - }, - "sshConfiguration": { - "title": "SSH settings for the File Server.", - "$ref": "#/definitions/SshConfiguration" - }, - "dataDisks": { - "title": "Settings for the data disk which would be created for the File Server.", - "$ref": "#/definitions/DataDisks" - }, - "subnet": { - "title": "Specifies the identifier of the subnet.", - "$ref": "#/definitions/ResourceId" - }, - "mountSettings": { - "title": "Details of the File Server.", - "readOnly": true, - "$ref": "#/definitions/MountSettings" - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Time when the status was changed." - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Time when the FileServer was created." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Specifies the provisioning state of the File Server.", - "description": "Possible values: creating - The File Server is getting created. updating - The File Server creation has been accepted and it is getting updated. deleting - The user has requested that the File Server be deleted, and it is in the process of being deleted. failed - The File Server creation has failed with the specified errorCode. Details about the error code are specified in the message field. succeeded - The File Server creation has succeeded.", - "enum": [ - "creating", - "updating", - "deleting", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "FileServerProvisioningState", - "modelAsString": false - } - } - }, - "description": "File server specific properties." - }, - "FileServer": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/FileServerProperties", - "description": "The properties associated with the File Server." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Contains information about the File Server." - }, - "ClusterBaseProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "The size of the virtual machines in the cluster.", - "description": "All virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)." - }, - "vmPriority": { - "type": "string", - "title": "dedicated or lowpriority.", - "description": "Default is dedicated.", - "default": "dedicated", - "enum": [ - "dedicated", - "lowpriority" - ], - "x-ms-enum": { - "name": "VmPriority", - "modelAsString": false - } - }, - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Desired scale for the cluster." - }, - "virtualMachineConfiguration": { - "title": "Settings for OS image and mounted data volumes.", - "$ref": "#/definitions/VirtualMachineConfiguration" - }, - "nodeSetup": { - "title": "Setup to be done on all compute nodes in the cluster.", - "$ref": "#/definitions/NodeSetup" - }, - "userAccountSettings": { - "title": "Settings for user account that will be created on all compute nodes of the cluster.", - "$ref": "#/definitions/UserAccountSettings" - }, - "subnet": { - "title": "Specifies the identifier of the subnet. ", - "$ref": "#/definitions/ResourceId" - } - }, - "required": [ - "vmSize", - "userAccountSettings" - ], - "description": "The properties of a Cluster." - }, - "ClusterUpdateProperties": { - "properties": { - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Desired scale for the cluster" - } - }, - "description": "The properties of a Cluster that need to be updated." - }, - "DeallocationOption": { - "type": "string", - "title": "Specifies when compute nodes may be removed from the cluster, if the cluster size is decreasing.", - "description": "Possible values are: requeue - Terminate running jobs and requeue them. The jobs will run again. Remove compute nodes as soon as jobs have been terminated. terminate - Terminate running jobs. The jobs will not run again. Remove compute nodes as soon as jobs have been terminated. jobcompletion - Allow currently running jobs to complete. Schedule no new jobs while waiting. Remove compute nodes when all jobs have completed. The default value is requeue.", - "default": "requeue", - "enum": [ - "requeue", - "terminate", - "waitforjobcompletion", - "unknown" - ], - "x-ms-enum": { - "name": "DeallocationOption", - "modelAsString": false - } - }, - "ScaleSettings": { - "properties": { - "manual": { - "$ref": "#/definitions/ManualScaleSettings", - "title": "The scale for the cluster by manual settings" - }, - "autoScale": { - "$ref": "#/definitions/AutoScaleSettings", - "title": "The scale for the cluster by autoscale settings" - } - }, - "description": "At least one of manual or autoScale settings must be specified. Only one of manual or autoScale settings can be specified. If autoScale settings are specified, the system automatically scales the cluster up and down (within the supplied limits) based on the pending jobs on the cluster." - }, - "AutoScaleSettings": { - "properties": { - "minimumNodeCount": { - "type": "integer", - "format": "int32", - "title": "Specifies the minimum number of compute nodes the cluster can have." - }, - "maximumNodeCount": { - "type": "integer", - "format": "int32", - "title": "Specifies the maximum number of compute nodes the cluster can have." - }, - "initialNodeCount": { - "type": "integer", - "format": "int32", - "title": "Specifies the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation.", - "default": 0 - } - }, - "required": [ - "minimumNodeCount", - "maximumNodeCount" - ], - "description": "The system automatically scales the cluster up and down (within minimumNodeCount and maximumNodeCount) based on the pending and running jobs on the cluster." - }, - "ManualScaleSettings": { - "properties": { - "targetNodeCount": { - "type": "integer", - "format": "int32", - "title": "The desired number of compute nodes in the Cluster.", - "default": 0, - "description": "Default is 0. If autoScaleSettings are not specified, then the Cluster starts with this target." - }, - "nodeDeallocationOption": { - "title": "Determines what to do with the job(s) running on compute node if the Cluster size is decreasing.", - "description": "The default value is requeue.", - "default": "requeue", - "$ref": "#/definitions/DeallocationOption" - } - }, - "required": [ - "targetNodeCount" - ], - "description": "Manual scale settings for the cluster." - }, - "VirtualMachineConfiguration": { - "properties": { - "imageReference": { - "title": "Reference to OS image.", - "$ref": "#/definitions/ImageReference" - } - }, - "description": "Settings for OS image." - }, - "ImageReference": { - "properties": { - "publisher": { - "type": "string", - "title": "Publisher of the image." - }, - "offer": { - "type": "string", - "title": "Offer of the image." - }, - "sku": { - "type": "string", - "title": "SKU of the image." - }, - "version": { - "type": "string", - "title": "Version of the image" - } - }, - "required": [ - "publisher", - "offer", - "sku" - ], - "description": "The image reference." - }, - "NodeStateCounts": { - "properties": { - "idleNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes in idle state." - }, - "runningNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes which are running jobs." - }, - "preparingNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes which are being prepared." - }, - "unusableNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes which are unusable." - }, - "leavingNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes which are leaving the cluster." - } - }, - "required": [ - "idleNodeCount", - "runningNodeCount", - "preparingNodeCount", - "unusableNodeCount", - "leavingNodeCount" - ], - "description": "Counts of various compute node states on the cluster." - }, - "UserAccountSettings": { - "properties": { - "adminUserName": { - "type": "string", - "title": "Specifies the name of the administrator account." - }, - "adminUserSshPublicKey": { - "type": "string", - "title": "SSH public keys used to authenticate with linux based VMs. This does not get returned in a GET response body." - }, - "adminUserPassword": { - "type": "string", - "title": "Admin user Password (linux only). This does not get returned in a GET response body." - } - }, - "required": [ - "adminUserName" - ], - "description": "Settings for user account that gets created on each on the nodes of a cluster." - }, - "NodeSetup": { - "properties": { - "setupTask": { - "title": "Specifies a setup task which can be used to customize the compute nodes of the cluster. The NodeSetup task runs every time a VM is rebooted. For that reason the task code needs to be idempotent. Generally it is used to either download static data that is required for all jobs that run on the cluster VMs or to download/install software.", - "$ref": "#/definitions/SetupTask" - }, - "mountVolumes": { - "title": "Information on shared volumes to be used by jobs.", - "$ref": "#/definitions/MountVolumes" - } - }, - "description": "Use this to prepare the VM. NOTE: The volumes specified in mountVolumes are mounted first and then the setupTask is run. Therefore the setup task can use local mountPaths in its execution." - }, - "SetupTask": { - "properties": { - "commandLine": { - "type": "string", - "title": "Command Line to start Setup process." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentSetting" - }, - "title": "Collection of environment settings." - }, - "runElevated": { - "type": "boolean", - "title": "Specifies whether to run the setup task in elevated mode. The default value is false.", - "default": false - }, - "stdOutErrPathPrefix": { - "type": "string", - "description": "The path where the Batch AI service will upload the stdout and stderror of setup task." - } - }, - "required": [ - "commandLine", - "stdOutErrPathPrefix" - ], - "description": "Specifies a setup task which can be used to customize the compute nodes of the cluster." - }, - "ClusterCreateParameters": { - "properties": { - "location": { - "type": "string", - "description": "The region in which to create the cluster." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The user specified tags associated with the Cluster." - }, - "properties": { - "$ref": "#/definitions/ClusterBaseProperties", - "description": "The properties of the Cluster.", - "x-ms-client-flatten": true - } - }, - "required": [ - "location" - ], - "description": "Parameters supplied to the Create operation." - }, - "ClusterUpdateParameters": { - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The user specified tags associated with the Cluster." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterUpdateProperties", - "description": "The properties of the Cluster." - } - }, - "description": "Parameters supplied to the Update operation." - }, - "ClusterProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "The size of the virtual machines in the cluster.", - "description": "All virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)." - }, - "vmPriority": { - "type": "string", - "title": "dedicated or lowpriority.", - "description": "The default value is dedicated. The node can get preempted while the task is running if lowpriority is chosen. This is best suited if the workload is checkpointing and can be restarted.", - "default": "dedicated", - "enum": [ - "dedicated", - "lowpriority" - ], - "x-ms-enum": { - "name": "VmPriority", - "modelAsString": false - } - }, - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Desired scale for the Cluster." - }, - "virtualMachineConfiguration": { - "title": "Settings for OS image and mounted data volumes.", - "$ref": "#/definitions/VirtualMachineConfiguration" - }, - "nodeSetup": { - "title": "Setup to be done on all compute nodes in the Cluster.", - "$ref": "#/definitions/NodeSetup" - }, - "userAccountSettings": { - "title": "Settings for user account of compute nodes.", - "$ref": "#/definitions/UserAccountSettings" - }, - "subnet": { - "title": "Specifies the identifier of the subnet.", - "$ref": "#/definitions/ResourceId" - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The creation time of the cluster." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Specifies the provisioning state of the cluster.", - "description": "Possible value are: creating - Specifies that the cluster is being created. succeeded - Specifies that the cluster has been created successfully. failed - Specifies that the cluster creation has failed. deleting - Specifies that the cluster is being deleted.", - "enum": [ - "creating", - "succeeded", - "failed", - "deleting" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": false - } - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The provisioning state transition time of the cluster." - }, - "allocationState": { - "type": "string", - "readOnly": true, - "title": "Indicates whether the cluster is resizing.", - "description": "Possible values are: steady and resizing. steady state indicates that the cluster is not resizing. There are no changes to the number of compute nodes in the cluster in progress. A cluster enters this state when it is created and when no operations are being performed on the cluster to change the number of compute nodes. resizing state indicates that the cluster is resizing; that is, compute nodes are being added to or removed from the cluster.", - "enum": [ - "steady", - "resizing" - ], - "x-ms-enum": { - "name": "AllocationState", - "modelAsString": false - } - }, - "allocationStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The time at which the cluster entered its current allocation state." - }, - "errors": { - "title": "Contains details of various errors on the cluster including resize and node setup task", - "description": "This element contains all the errors encountered by various compute nodes during node setup.", - "type": "array", - "items": { - "$ref": "#/definitions/BatchAIError" - } - }, - "currentNodeCount": { - "type": "integer", - "readOnly": true, - "format": "int32", - "title": "The number of compute nodes currently assigned to the cluster." - }, - "nodeStateCounts": { - "title": "Counts of various node states on the cluster.", - "readOnly": true, - "$ref": "#/definitions/NodeStateCounts" - } - }, - "description": "Job specific properties." - }, - "Cluster": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterProperties", - "description": "The properties associated with the Cluster." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Contains information about a Cluster." - }, - "ClusterListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Cluster" - }, - "description": "The collection of returned Clusters." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List Clusters operation." - }, - "JobBaseProperties": { - "properties": { - "experimentName": { - "type": "string", - "description": "Describe the experiment information of the job" - }, - "priority": { - "type": "integer", - "format": "int32", - "title": "Priority associated with the job.", - "description": "Priority associated with 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.", - "default": 0 - }, - "cluster": { - "title": "Specifies the Id of the cluster on which this job will run.", - "$ref": "#/definitions/ResourceId" - }, - "nodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes to run the job on.", - "description": "The job will be gang scheduled on that many compute nodes" - }, - "containerSettings": { - "title": "If provided the job will run in the specified container.", - "description": "If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM.", - "$ref": "#/definitions/ContainerSettings" - }, - "cntkSettings": { - "title": "Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job.", - "$ref": "#/definitions/CNTKsettings" - }, - "tensorFlowSettings": { - "title": "Specifies the settings for Tensor Flow job.", - "$ref": "#/definitions/TensorFlowSettings" - }, - "caffeSettings": { - "title": "Specifies the settings for Caffe job.", - "$ref": "#/definitions/CaffeSettings" - }, - "caffe2Settings": { - "title": "Specifies the settings for Caffe2 job.", - "$ref": "#/definitions/Caffe2Settings" - }, - "chainerSettings": { - "title": "Specifies the settings for Chainer job.", - "$ref": "#/definitions/ChainerSettings" - }, - "customToolkitSettings": { - "title": "Specifies the settings for custom tool kit job.", - "$ref": "#/definitions/CustomToolkitSettings" - }, - "jobPreparation": { - "title": "Specifies the command line to be executed before tool kit is launched.", - "description": "The specified actions will run on all the nodes that are part of the job", - "$ref": "#/definitions/JobPreparation" - }, - "stdOutErrPathPrefix": { - "type": "string", - "description": "The path where the Batch AI service will upload stdout and stderror of the job." - }, - "inputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDirectory" - }, - "title": "Specifies the list of input directories for the Job." - }, - "outputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputDirectory" - }, - "title": "Specifies the list of output directories where the models will be created. ." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentSetting" - }, - "title": "Additional environment variables to set on the job.", - "description": "Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS" - }, - "constraints": { - "properties": { - "maxWallClockTime": { - "type": "string", - "format": "duration", - "title": "Max time the job can run.", - "description": "Default Value = 1 week.", - "default": "7.00:00:00" - } - }, - "description": "Constraints associated with the Job." - } - }, - "required": [ - "cluster", - "nodeCount", - "stdOutErrPathPrefix" - ], - "description": "The properties of a Batch AI job." - }, - "JobCreateParameters": { - "properties": { - "location": { - "type": "string", - "description": "The region in which to create the job." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The user specified tags associated with the job." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/JobBaseProperties", - "description": "The properties of the Job." - } - }, - "required": [ - "location" - ], - "description": "Parameters supplied to the Create operation." - }, - "JobProperties": { - "properties": { - "experimentName": { - "type": "string", - "description": "Describe the experiment information of the job" - }, - "priority": { - "type": "integer", - "format": "int32", - "title": "Priority associated with the job.", - "description": "Priority associated with 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.", - "default": 0 - }, - "cluster": { - "title": "Specifies the Id of the cluster on which this job will run.", - "$ref": "#/definitions/ResourceId" - }, - "nodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes to run the job on.", - "description": "The job will be gang scheduled on that many compute nodes" - }, - "containerSettings": { - "title": "If provided the job will run in the specified container.", - "description": "If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM.", - "$ref": "#/definitions/ContainerSettings" - }, - "toolType": { - "title": "The toolkit type of this job.", - "description": "Possible values are: cntk, tensorflow, caffe, caffe2, chainer, custom.", - "$ref": "#/definitions/ToolType" - }, - "cntkSettings": { - "title": "Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job.", - "$ref": "#/definitions/CNTKsettings" - }, - "tensorFlowSettings": { - "title": "Specifies the settings for Tensor Flow job.", - "$ref": "#/definitions/TensorFlowSettings" - }, - "caffeSettings": { - "title": "Specifies the settings for Caffe job.", - "$ref": "#/definitions/CaffeSettings" - }, - "chainerSettings": { - "title": "Specifies the settings for Chainer job.", - "$ref": "#/definitions/ChainerSettings" - }, - "customToolkitSettings": { - "title": "Specifies the settings for custom tool kit job.", - "$ref": "#/definitions/CustomToolkitSettings" - }, - "jobPreparation": { - "title": "Specifies the actions to be performed before tool kit is launched.", - "description": "The specified actions will run on all the nodes that are part of the job", - "$ref": "#/definitions/JobPreparation" - }, - "stdOutErrPathPrefix": { - "type": "string", - "description": "The path where the Batch AI service will upload stdout and stderror of the job." - }, - "inputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDirectory" - }, - "title": "Specifies the list of input directories for the Job." - }, - "outputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputDirectory" - }, - "title": "Specifies the list of output directories where the models will be created. ." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentSetting" - }, - "title": "Additional environment variables to be passed to the job.", - "description": "Batch AI services sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE, For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS." - }, - "constraints": { - "properties": { - "maxWallClockTime": { - "type": "string", - "format": "duration", - "title": "Max time the job can run.", - "description": "Default Value = 1 week.", - "default": "7.00:00:00" - } - }, - "description": "Constraints associated with the Job." - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The job creation time.", - "description": "The creation time of the job." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "description": "The provisioned state of the Batch AI job", - "enum": [ - "creating", - "deleting", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": false - } - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The time at which the job entered its current provisioning state.", - "description": "The time at which the job entered its current provisioning state." - }, - "executionState": { - "type": "string", - "title": "The current state of the job.", - "description": "The current state of the job. Possible values are: queued - The job is queued and able to run. A job enters this state when it is created, or when it is awaiting a retry after a failed run. running - The job is running on a compute cluster. This includes job-level preparation such as downloading resource files or set up container specified on the job - it does not necessarily mean that the job command line has started executing. terminating - The job is terminated by the user, the terminate operation is in progress. succeeded - The job has completed running successfully and exited with exit code 0. failed - The job has finished unsuccessfully (failed with a non-zero exit code) and has exhausted its retry limit. A job is also marked as failed if an error occurred launching the job.", - "enum": [ - "queued", - "running", - "terminating", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "ExecutionState", - "modelAsString": false - } - }, - "executionStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The time at which the job entered its current execution state.", - "description": "The time at which the job entered its current execution state." - }, - "executionInfo": { - "properties": { - "startTime": { - "type": "string", - "format": "date-time", - "title": "The time at which the job started running.", - "description": "'Running' corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state." - }, - "endTime": { - "type": "string", - "format": "date-time", - "title": "The time at which the job completed.", - "description": "This property is only returned if the job is in completed state." - }, - "exitCode": { - "type": "integer", - "format": "int32", - "title": "The exit code of the job.", - "description": "This property is only returned if the job is in completed state." - }, - "errors": { - "title": "Contains details of various errors encountered by the service during job execution", - "type": "array", - "items": { - "$ref": "#/definitions/BatchAIError" - } - } - }, - "required": [ - "startTime" - ], - "description": "Contains information about the execution of a job in the Azure Batch service." - } - }, - "description": "Job specific properties." - }, - "Job": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/JobProperties", - "description": "The properties associated with the job." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Contains information about the job." - }, - "JobListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "The collection of jobs." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "RemoteLoginInformation": { - "properties": { - "nodeId": { - "type": "string", - "description": "Id of the compute node" - }, - "ipAddress": { - "type": "string", - "description": "ip address" - }, - "port": { - "type": "number", - "format": "int32", - "title": "port number" - } - }, - "description": "Contains remote login details to SSH/RDP to a compute node in cluster.", - "required": [ - "nodeId", - "ipAddress", - "port" - ] - }, - "RemoteLoginInformationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RemoteLoginInformation" - }, - "description": "The collection of returned remote login details." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "FileProperties": { - "properties": { - "lastModified": { - "type": "string", - "format": "date-time", - "title": "The time at which the file was last modified.", - "description": "The time at which the file was last modified." - }, - "contentLength": { - "type": "integer", - "format": "int64", - "title": "The file size.", - "description": "The file size." - } - }, - "description": "File specific properties." - }, - "File": { - "properties": { - "name": { - "type": "string", - "description": "file name" - }, - "downloadUrl": { - "type": "string", - "title": "file download url, example: https://mystg.blob.core.windows.net/mycontainer/myModel_1.dnn", - "description": "This will be returned only if the model has been archived. During job run, this won't be returned and customers can use SSH tunneling to download. Users can use Get Remote Login Information API to get the IP address and port information of all the compute nodes running the job." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/FileProperties", - "description": "The properties associated with the file." - } - }, - "description": "Properties of the file.", - "required": [ - "name", - "downloadUrl" - ] - }, - "FileListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/File" - }, - "description": "The collection of returned job files." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "ResourceId": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the resource" - } - }, - "required": [ - "id" - ], - "description": "Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.", - "x-ms-azure-resource": true - }, - "Resource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The ID of the resource" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the resource" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of the resource" - }, - "location": { - "readOnly": true, - "type": "string", - "description": "The location of the resource" - }, - "tags": { - "readOnly": true, - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The tags of the resource" - } - }, - "description": "A definition of an Azure resource.", - "x-ms-azure-resource": true - }, - "ToolType": { - "type": "string", - "description": "The toolkit type of this job.", - "enum": [ - "cntk", - "tensorflow", - "caffe", - "caffe2", - "chainer", - "custom" - ], - "x-ms-enum": { - "name": "ToolType", - "modelAsString": true - } - }, - "NameValuePair": { - "properties": { - "name": { - "type": "string", - "title": "The name in the name-value pair." - }, - "value": { - "type": "string", - "title": "The value in the name-value pair." - } - }, - "description": "Represents a name-value pair." - }, - "EnvironmentSetting": { - "properties": { - "name": { - "type": "string", - "title": "The name of the environment variable." - }, - "value": { - "type": "string", - "title": "The value of the environment variable." - } - }, - "required": [ - "name" - ], - "description": "A collection of environment variables to set." - }, - "LocalDataVolume": { - "properties": { - "hostPath": { - "type": "string", - "title": "The path on the host that is to be mounted as a directory in the container." - }, - "localPath": { - "type": "string", - "title": "The container local path where the host directory is mounted." - } - }, - "description": "Represents mapping of host directories to directories in the container.", - "required": [ - "hostPath", - "localPath" - ] - }, - "ImageSourceRegistry": { - "properties": { - "serverUrl": { - "type": "string", - "title": "URL for image repository." - }, - "image": { - "type": "string", - "title": "The name of the image in image repository." - }, - "credentials": { - "title": "Information to access the private Docker repository.", - "$ref": "#/definitions/PrivateRegistryCredentials" - } - }, - "description": "Details of the container image such as name, URL and credentials.", - "required": [ - "image" - ] - }, - "PrivateRegistryCredentials": { - "properties": { - "username": { - "type": "string", - "title": "User name to login." - }, - "password": { - "type": "string", - "title": "Password to login.", - "description": "One of password or passwordSecretReference must be specified." - }, - "passwordSecretReference": { - "title": "Specifies the location of the password, which is a Key Vault Secret.", - "description": "Users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of password or passwordSecretReference must be specified.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "description": "Credentials to access a container image in a private repository.", - "required": [ - "username" - ] - }, - "ContainerSettings": { - "properties": { - "imageSourceRegistry": { - "title": "Registry to download the container from.", - "$ref": "#/definitions/ImageSourceRegistry" - } - }, - "description": "Settings for the container to be downloaded.", - "required": [ - "imageSourceRegistry" - ] - }, - "InputDirectory": { - "properties": { - "id": { - "type": "string", - "title": "The id for the input directory.", - "description": "It will be available for the job as an environment variable under AZ_BATCHAI_INPUT_id. The service will also provide the following environment variable: AZ_BATCHAI_PREV_OUTPUT_Name. The value of the variable will be populated if the job is being retried after a previous failure, otherwise it will be set to nothing." - }, - "path": { - "type": "string", - "title": "The path to the input directory." - } - }, - "description": "Input directory for the job.", - "required": [ - "id", - "path" - ] - }, - "OutputDirectory": { - "properties": { - "id": { - "type": "string", - "title": "The name for the output directory.", - "description": "It will be available for the job as an environment variable under AZ_BATCHAI_OUTPUT_id." - }, - "pathPrefix": { - "type": "string", - "title": "The prefix path where the output directory will be created.", - "description": "NOTE: This is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs." - }, - "pathSuffix": { - "type": "string", - "title": "The suffix path where the output directory will be created.", - "description": "The suffix path where the output directory will be created." - }, - "type": { - "type": "string", - "title": "An enumeration, which specifies the type of job output directory.", - "description": "Default value is Custom. The possible values are Model, Logs, Summary, and Custom. Users can use multiple enums for a single directory. Eg. outPutType='Model,Logs, Summary'", - "default": "custom", - "enum": [ - "model", - "logs", - "summary", - "custom" - ], - "x-ms-enum": { - "name": "OutputType", - "modelAsString": true - } - }, - "createNew": { - "type": "boolean", - "title": "True to create new directory.", - "description": "Default is true. If false, then the directory is not created and can be any directory path that the user specifies.", - "default": true - } - }, - "description": "Output directory for the job.", - "required": [ - "id", - "pathPrefix" - ] - }, - "AzureStorageCredentialsInfo": { - "properties": { - "accountKey": { - "type": "string", - "title": "Storage account key.", - "description": "One of accountKey or accountKeySecretReference must be specified." - }, - "accountKeySecretReference": { - "title": "Specifies the location of the storage account key, which is a Key Vault Secret.", - "description": "Users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of accountKey or accountKeySecretReference must be specified.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "description": "Credentials to access Azure File Share." - }, - "AzureFileShareReference": { - "properties": { - "accountName": { - "type": "string", - "title": "Name of the storage account." - }, - "azureFileUrl": { - "type": "string", - "title": "URL to access the Azure File." - }, - "credentials": { - "title": "Information of the Azure File credentials.", - "$ref": "#/definitions/AzureStorageCredentialsInfo" - }, - "relativeMountPath": { - "type": "string", - "title": "Specifies the relative path on the compute node where the Azure file share will be mounted.", - "description": "Note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location." - }, - "fileMode": { - "type": "string", - "title": "Specifies the file mode.", - "description": "Default value is 0777. Valid only if OS is linux.", - "default": "0777" - }, - "directoryMode": { - "type": "string", - "title": "Specifies the directory Mode.", - "description": "Default value is 0777. Valid only if OS is linux.", - "default": "0777" - } - }, - "description": "Details of the Azure File Share to mount on the cluster.", - "required": [ - "accountName", - "azureFileUrl", - "credentials", - "relativeMountPath" - ] - }, - "AzureBlobFileSystemReference": { - "properties": { - "accountName": { - "type": "string", - "title": "Name of the Azure Blob Storage account." - }, - "containerName": { - "type": "string", - "title": "Name of the Azure Blob Storage container to mount on the cluster." - }, - "credentials": { - "title": "Information of the Azure Blob Storage account credentials.", - "$ref": "#/definitions/AzureStorageCredentialsInfo" - }, - "relativeMountPath": { - "type": "string", - "title": "Specifies the relative path on the compute node where the Azure Blob file system will be mounted.", - "description": "Note that all blob file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location." - }, - "mountOptions": { - "type": "string", - "title": "Specifies the various mount options that can be used to configure Blob file system." - } - }, - "description": "Provides required information, for the service to be able to mount Azure Blob Storage container on the cluster nodes.", - "required": [ - "accountName", - "containerName", - "credentials", - "relativeMountPath" - ] - }, - "FileServerReference": { - "properties": { - "fileServer": { - "title": "Reference to the file server resource.", - "$ref": "#/definitions/ResourceId" - }, - "sourceDirectory": { - "type": "string", - "title": "Specifies the source directory in File Server that needs to be mounted.", - "description": "If this property is not specified, the entire File Server will be mounted." - }, - "relativeMountPath": { - "type": "string", - "title": "Specifies the relative path on the compute node where the File Server will be mounted.", - "description": "Note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location." - }, - "mountOptions": { - "type": "string", - "title": "Specifies the mount options for File Server." - } - }, - "description": "Provides required information, for the service to be able to mount Azure FileShare on the cluster nodes.", - "required": [ - "fileServer", - "relativeMountPath" - ] - }, - "UnmanagedFileSystemReference": { - "properties": { - "mountCommand": { - "title": "Command used to mount the unmanaged file system.", - "type": "string" - }, - "relativeMountPath": { - "type": "string", - "title": "Specifies the relative path on the compute cluster node where the file system will be mounted.", - "description": "Note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location." - } - }, - "description": "Details of the file system to mount on the compute cluster nodes.", - "required": [ - "mountCommand", - "relativeMountPath" - ] - }, - "MountVolumes": { - "properties": { - "azureFileShares": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureFileShareReference" - }, - "title": "Azure File Share setup configuration.", - "description": "References to Azure File Shares that are to be mounted to the cluster nodes." - }, - "azureBlobFileSystems": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureBlobFileSystemReference" - }, - "title": "Azure Blob FileSystem setup configuration.", - "description": "References to Azure Blob FUSE that are to be mounted to the cluster nodes." - }, - "fileServers": { - "type": "array", - "items": { - "$ref": "#/definitions/FileServerReference" - }, - "title": "References to a list of file servers that are mounted to the cluster node." - }, - "unmanagedFileSystems": { - "type": "array", - "items": { - "$ref": "#/definitions/UnmanagedFileSystemReference" - }, - "title": "References to a list of file servers that are mounted to the cluster node." - } - }, - "description": "Details of volumes to mount on the cluster." - }, - "CNTKsettings": { - "properties": { - "languageType": { - "type": "string", - "title": "Specifies the language type to use for launching CNTK (aka Microsoft Cognitive Toolkit) job.", - "description": "Valid values are 'BrainScript' or 'Python'." - }, - "configFilePath": { - "type": "string", - "title": "Specifies the path of the config file.", - "description": "This property can be specified only if the languageType is 'BrainScript'." - }, - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job.", - "description": "This property can be specified only if the languageType is 'Python'." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter.", - "description": "This property can be specified only if the languageType is 'Python'." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments that needs to be passed to the python script or CNTK.exe." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Number of processes parameter that is passed to MPI runtime.", - "description": "The default value for this property is equal to nodeCount property" - } - }, - "description": "Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job." - }, - "CaffeSettings": { - "properties": { - "configFilePath": { - "type": "string", - "title": "Specifies the path of the config file.", - "description": "This property cannot be specified if pythonScriptFilePath is specified." - }, - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job.", - "description": "This property cannot be specified if configFilePath is specified." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter.", - "description": "This property can be specified only if the pythonScriptFilePath is specified." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments that needs to be passed to the Caffe job." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Number of processes parameter that is passed to MPI runtime.", - "description": "The default value for this property is equal to nodeCount property" - } - }, - "description": "Specifies the settings for Caffe job." - }, - "Caffe2Settings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments that needs to be passed to the python script" - } - }, - "description": "Specifies the settings for Caffe2 job.", - "required": [ - "pythonScriptFilePath" - ] - }, - "ChainerSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments that needs to be passed to the python script" - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Number of processes parameter that is passed to MPI runtime.", - "description": "The default value for this property is equal to nodeCount property" - } - }, - "description": "Specifies the settings for Chainer job.", - "required": [ - "pythonScriptFilePath" - ] - }, - "CustomToolkitSettings": { - "properties": { - "commandLine": { - "type": "string", - "title": "The command line to execute the custom toolkit Job." - } - }, - "description": "Specifies the settings for a custom tool kit job." - }, - "JobPreparation": { - "properties": { - "commandLine": { - "type": "string", - "title": "The command line to execute.", - "description": "If containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node." - } - }, - "description": "Specifies the settings for job preparation.", - "required": [ - "commandLine" - ] - }, - "TensorFlowSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter." - }, - "masterCommandLineArgs": { - "type": "string", - "title": "Specifies the command line arguments for the master task." - }, - "workerCommandLineArgs": { - "type": "string", - "title": "Specifies the command line arguments for the worker task.", - "description": "This property is optional for single machine training." - }, - "parameterServerCommandLineArgs": { - "type": "string", - "title": "Specifies the command line arguments for the parameter server task.", - "description": "This property is optional for single machine training." - }, - "workerCount": { - "type": "integer", - "format": "int32", - "title": "The number of worker tasks.", - "description": "If specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training" - }, - "parameterServerCount": { - "type": "integer", - "format": "int32", - "title": "The number of parameter server tasks.", - "description": "If specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training (This property is not applicable for single machine training). This property can be specified only for distributed TensorFlow training." - } - }, - "description": "Specifies the settings for TensorFlow job.", - "required": [ - "pythonScriptFilePath", - "masterCommandLineArgs" - ] - }, - "CloudError": { - "x-ms-external": true, - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "An error response from the Batch AI service." - } - }, - "description": "An error response from the Batch AI service." - }, - "CloudErrorBody": { - "x-ms-external": true, - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "description": "A list of additional details about the error." - } - }, - "description": "An error response from the Batch AI service." - }, - "BatchAIError": { - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/NameValuePair" - }, - "description": "A list of additional details about the error." - } - }, - "description": "An error response from the Batch AI service." - }, - "Operation": { - "title": "A REST API operation", - "description": "Details of a REST API operation", - "type": "object", - "properties": { - "name": { - "title": "The operation name.", - "description": "This is of the format {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "description": "The object that describes the operation.", - "properties": { - "provider": { - "title": "Friendly name of the resource provider.", - "type": "string" - }, - "operation": { - "title": "The operation type.", - "description": "For example: read, write, delete, or listKeys/action", - "type": "string" - }, - "resource": { - "title": "The resource type on which the operation is performed.", - "type": "string" - }, - "description": { - "title": "The friendly name of the operation", - "type": "string" - } - } - }, - "origin": { - "title": "The intended executor of the operation.", - "type": "string" - }, - "properties": { - "x-ms-client-flatten": true, - "title": "Properties of the operation.", - "type": "object" - } - } - }, - "OperationListResult": { - "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", - "description": "Contains the list of all operations supported by BatchAI resource provider", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "title": "The list of operations supported by the resource provider." - }, - "nextLink": { - "type": "string", - "title": "The URL to get the next set of operation list results if there are any." - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The subscriptionID for the Azure user." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "Name of the resource group to which the resource belongs.", - "required": true, - "x-ms-parameter-location": "method", - "type": "string", - "pattern": "^[-\\w\\._]+$" - }, - "ClusterNameParameter": { - "name": "clusterName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "JobNameParameter": { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the job within the specified resource group. Job names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "FileServerNameParameter": { - "name": "fileServerName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the file server within the specified resource group. File server names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Specifies the version of API used for this request." - }, - "SelectParameter": { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "An OData $select clause. Used to select the properties to be returned in the GET response.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "FilterParameter": { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "An OData $filter clause. Used to filter results that are returned in the GET response.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "MaxResultsParameter": { - "name": "maxresults", - "x-ms-client-name": "maxResults", - "default": 1000, - "minimum": 1, - "maximum": 1000, - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method", - "description": "The maximum number of items to return in the response. A maximum of 1000 files can be returned.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "OutputDirectoryIdParameter": { - "name": "outputdirectoryid", - "in": "query", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "DownloadLinkExpiryParameter": { - "name": "linkexpiryinminutes", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 5, - "maximum": 600, - "default": 60, - "x-ms-parameter-location": "method", - "description": "The number of minutes after which the download link will expire.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ClusterListRemoteLoginInfo.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ClusterListRemoteLoginInfo.json deleted file mode 100644 index 6dfbb83cd9d2..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ClusterListRemoteLoginInfo.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "nodeId": "tvm-3601533753_1-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50000 - }, - { - "nodeId": "tvm-3601533753_2-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50001 - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteCluster.json deleted file mode 100644 index 9c05055ded37..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteCluster.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2017-09-01-preview", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteFileServer.json deleted file mode 100644 index 99587060667d..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteFileServer.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "fileServerName": "demo_nfs", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2017-09-01-preview", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteJob.json deleted file mode 100644 index 36611d63d54f..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/DeleteJob.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2017-09-01-preview", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetCluster.json deleted file mode 100644 index b294ee0ca701..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetCluster.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T21:50:02.377Z", - "allocationStateTransitionTime": "2017-09-27T21:50:04.521Z", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ], - "fileServers": [ - { - "fileServer": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b" - }, - "relativeMountPath": "nfs", - "mountOptions": "rw" - } - ] - } - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetFileServer.json deleted file mode 100644 index 2eb829a0e3f0..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetFileServer.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "fileServerName": "demo_nfs", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", - "name": "fileservercedd134b", - "type": "Microsoft.BatchAI/FileServers", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4", - "fileServerType": "nfs" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetJob.json deleted file mode 100644 index e42f70e81680..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/GetJob.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/jobs/job", - "name": "job", - "type": "Microsoft.BatchAI/Jobs", - "properties": { - "priority": 0, - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files", - "type": "custom", - "createNew": true - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/JobListRemoteLoginInfo.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/JobListRemoteLoginInfo.json deleted file mode 100644 index acfea76aec83..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/JobListRemoteLoginInfo.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "nodeId": "tvm-3601533753_1-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50000 - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListCluster.json deleted file mode 100644 index 27b016ee6119..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListCluster.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T22:28:07.645Z", - "allocationStateTransitionTime": "2017-09-27T22:28:08.998Z", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListClusterByResourceGroup.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListClusterByResourceGroup.json deleted file mode 100644 index 0a3ace6f4b68..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListClusterByResourceGroup.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T22:28:07.645Z", - "allocationStateTransitionTime": "2017-09-27T22:28:08.998Z", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListFileServer.json deleted file mode 100644 index 9545568e238c..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListFileServer.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", - "name": "fileservercedd134b", - "type": "Microsoft.BatchAI/FileServers", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4", - "fileServerType": "nfs" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListFileServerByResourceGroup.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListFileServerByResourceGroup.json deleted file mode 100644 index 3bb1b0eeaacd..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListFileServerByResourceGroup.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", - "name": "fileservercedd134b", - "type": "Microsoft.BatchAI/FileServers", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4", - "fileServerType": "nfs" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListJob.json deleted file mode 100644 index 576cf681e890..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListJob.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/jobs/job", - "name": "job", - "type": "Microsoft.BatchAI/Jobs", - "properties": { - "priority": 0, - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files", - "type": "custom", - "createNew": true - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListJobByResourceGroup.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListJobByResourceGroup.json deleted file mode 100644 index 3d2512013ac2..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListJobByResourceGroup.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/jobs/job", - "name": "job", - "type": "Microsoft.BatchAI/Jobs", - "properties": { - "priority": 0, - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files", - "type": "custom", - "createNew": true - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListOutputFiles.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListOutputFiles.json deleted file mode 100644 index b148c06a9384..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/ListOutputFiles.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "outputdirectoryid": "stdouterr", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stderr-job_prep.txt", - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/host_prep_stderr.txt?sv=2016-05-31&sr=f&sig=CNPJmjDQT9Anld9%2FdnQ52ZBpfOff2el8r4el6J%2BnpJE%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 0 - } - }, - { - "name": "stdout-job_prep.txt", - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/host_prep_stdout.txt?sv=2016-05-31&sr=f&sig=yK%2F5acWSTdcmBZGGL9%2F3IqeZ7N%2B1sRXfwB%2FaCkoRS%2Bc%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 720 - } - }, - { - "name": "stderr.txt", - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/stderr.txt?sv=2016-05-31&sr=f&sig=TdvHhdQjvWWA0Z7aPb0oZpPgGbBPOyDarNXWHFnRS3c%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 0 - } - }, - { - "name": "stdout.txt", - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/stdout.txt?sv=2016-05-31&sr=f&sig=nyydEjNnYpQfovknJc%2B5G%2F05g0IV4acWKlfkM35lh00%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 32 - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/OperationList.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/OperationList.json deleted file mode 100644 index 1001d46cb40e..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/OperationList.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "parameters": { - "api-version": "2017-09-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.BatchAI/clusters/read", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters", - "operation": "List or get Batch AI clusters", - "description": "Lists Batch AI clusters or gets the properties of a Batch AI cluster" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/clusters/write", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters", - "operation": "Create or update Batch AI cluster", - "description": "Creates a new Batch AI cluster or updates an existing Batch AI cluster" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/clusters/delete", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters", - "operation": "Delete Batch AI cluster", - "description": "Deletes a Batch AI cluster" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/clusters/listRemoteLoginInformation", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters", - "operation": "List Batch AI cluster remote-login information", - "description": "Lists remote-login information for a Batch AI cluster" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/read", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "List or get Batch AI jobs", - "description": "Lists Batch AI jobs or gets the properties of a Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/write", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "Create or update Batch AI job", - "description": "Creates a new Batch AI job or updates an existing Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/delete", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "Delete Batch AI job", - "description": "Deletes a Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/terminate/action", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "Terminate Batch AI job", - "description": "Terminates a Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/listRemoteLoginInformation", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "List Batch AI job remote-login information", - "description": "Lists remote-login information for a Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/fileservers/read", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Fileservers", - "operation": "List or get Batch AI fileservers", - "description": "Lists Batch AI fileservers or gets the properties of a Batch AI fileserver" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/fileservers/write", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Fileservers", - "operation": "Create or update Batch AI fileserver", - "description": "Creates a new Batch AI fileserver or updates an existing Batch AI fileserver" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/fileservers/delete", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Fileservers", - "operation": "Delete Batch AI filserver", - "description": "Deletes a Batch AI fileserver" - }, - "origin": "user,system" - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PatchCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PatchCluster.json deleted file mode 100644 index acbc2cb36334..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PatchCluster.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview", - "parameters": { - "properties": { - "scaleSettings": { - "autoScale": { - "minimumNodeCount": 0, - "maximumNodeCount": 10 - } - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "steady", - "creationTime": "2017-09-27T21:43:55.215Z", - "allocationStateTransitionTime": "2017-09-27T21:43:57.664Z", - "provisioningStateTransitionTime": "2017-09-27T21:43:56.238Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "autoScale": { - "minimumNodeCount": 0, - "maximumNodeCount": 10, - "initialNodeCount": 0 - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutCluster.json deleted file mode 100644 index 6a4891c9c857..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutCluster.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview", - "parameters": { - "location": "eastus", - "properties": { - "scaleSettings": { - "manual": { - "nodeDeallocationOption": "requeue", - "targetNodeCount": 1 - } - }, - "userAccountSettings": { - "adminUserPassword": "admin_user_password", - "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1yc...", - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "fileServers": [ - { - "fileServer": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b" - }, - "mountOptions": "rw", - "relativeMountPath": "nfs" - } - ], - "azureFileShares": [ - { - "relativeMountPath": "azfiles", - "directoryMode": "0777", - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "fileMode": "0777", - "credentials": { - "accountKey": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==" - } - } - ] - } - }, - "vmPriority": "dedicated", - "vmSize": "STANDARD_NC6" - } - } - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2017-09-01-preview", - "Retry-After": 15 - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T21:50:02.377Z", - "allocationStateTransitionTime": "2017-09-27T21:50:04.521Z", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ], - "fileServers": [ - { - "fileServer": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b" - }, - "relativeMountPath": "nfs", - "mountOptions": "rw" - } - ] - } - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutFileServer.json deleted file mode 100644 index f511bcdaa541..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutFileServer.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "fileServerName": "demo_nfs", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview", - "parameters": { - "location": "eastus", - "properties": { - "sshConfiguration": { - "userAccountSettings": { - "adminUserPassword": "admin_user_password", - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "storageAccountType": "Standard_LRS", - "diskCount": 2 - }, - "vmSize": "STANDARD_NC6" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", - "name": "demo_nfs", - "type": "Microsoft.BatchAI/FileServers", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4", - "fileServerType": "nfs" - } - } - } - }, - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2017-09-01-preview", - "Retry-After": 15 - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutJob.json deleted file mode 100644 index a3f42a1bb8c0..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutJob.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview", - "parameters": { - "location": "eastus", - "properties": { - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "priority": 0, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "outputDirectories": [ - { - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "type": "custom", - "id": "OUTPUTS", - "pathSuffix": "files", - "createNew": true - } - ] - } - } - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2017-09-01-preview", - "Retry-After": 15 - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/jobs/demo_job", - "name": "demo_job", - "type": "Microsoft.BatchAI/Job", - "properties": { - "priority": 0, - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files", - "type": "custom", - "createNew": true - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/TerminateJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/TerminateJob.json deleted file mode 100644 index a68455be43a5..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/TerminateJob.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2017-09-01-preview" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2017-09-01-preview", - "Retry-After": 15 - } - }, - "200": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/BatchAI.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/BatchAI.json deleted file mode 100644 index 3d43131b4147..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/BatchAI.json +++ /dev/null @@ -1,3267 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "BatchAI", - "description": "The Azure BatchAI Management API.", - "version": "2018-03-01", - "x-ms-code-generation-settings": { - "name": "BatchAIManagementClient" - } - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.BatchAI/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists available operations for the Microsoft.BatchAI provider.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List of available operations for Batch AI Resource Provider": { - "$ref": "./examples/OperationList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/locations/{location}/usages": { - "get": { - "tags": [ - "Usage" - ], - "operationId": "Usage_List", - "description": "Gets the current usage information as well as limits for Batch AI resources for given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The location for which resource usage is queried.", - "pattern": "^[-\\w\\._]+$" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListUsagesResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Create or update cluster": { - "$ref": "./examples/ListUsages.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/clusters/{clusterName}": { - "put": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Create", - "description": "Adds a cluster. A cluster is a collection of compute nodes. Multiple jobs can be run on the same cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterCreateParameters" - }, - "description": "The parameters to provide for cluster creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the cluster entity.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create or update cluster": { - "$ref": "./examples/PutCluster.json" - } - } - }, - "patch": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Update", - "description": "Update the properties of a given cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterUpdateParameters" - }, - "description": "Additional parameters for cluster update." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the Cluster entity.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Patch cluster": { - "$ref": "./examples/PatchCluster.json" - } - } - }, - "delete": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Delete", - "description": "Deletes a Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete cluster": { - "$ref": "./examples/DeleteCluster.json" - } - } - }, - "get": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Get", - "description": "Gets information about the specified Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains information about the cluster.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get cluster": { - "$ref": "./examples/GetCluster.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/clusters/{clusterName}/listRemoteLoginInformation": { - "post": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_ListRemoteLoginInformation", - "description": "Get the IP address, port of all the compute nodes in the cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the list of IP addresses.", - "schema": { - "$ref": "#/definitions/RemoteLoginInformationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Get a cluster's remote-login-information": { - "$ref": "./examples/ClusterListRemoteLoginInfo.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/clusters": { - "get": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_List", - "description": "Gets information about the Clusters associated with the subscription.", - "parameters": [ - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Cluster entities associated with the subscription.", - "schema": { - "$ref": "#/definitions/ClusterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List clusters": { - "$ref": "./examples/ListCluster.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/clusters": { - "get": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_ListByResourceGroup", - "description": "Gets information about the Clusters associated within the specified resource group.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Cluster entities associated with the resource group.", - "schema": { - "$ref": "#/definitions/ClusterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List clusters": { - "$ref": "./examples/ListClusterByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}": { - "put": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Create", - "description": "Adds a Job that gets executed on a cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/JobCreateParameters" - }, - "description": "The parameters to provide for job creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the job entity.", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create or update job": { - "$ref": "./examples/PutJob.json" - } - } - }, - "delete": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Delete", - "description": "Deletes the specified Batch AI job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete job": { - "$ref": "./examples/DeleteJob.json" - } - } - }, - "get": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Get", - "description": "Gets information about the specified Batch AI job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the Batch AI job entity.", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get job": { - "$ref": "./examples/GetJob.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/listRemoteLoginInformation": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListRemoteLoginInformation", - "description": "Gets the IP address and port information of all the compute nodes which are used for job execution.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains compute node remote login information.", - "schema": { - "$ref": "#/definitions/RemoteLoginInformationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Get a job's remote-login-information ": { - "$ref": "./examples/JobListRemoteLoginInfo.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/terminate": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Terminate", - "description": "Terminates a job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Terminate job": { - "$ref": "./examples/TerminateJob.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/jobs": { - "get": { - "tags": [ - "Job" - ], - "operationId": "Jobs_List", - "description": "Gets information about the jobs associated with the subscription.", - "parameters": [ - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Batch AI job entities associated with the subscription.", - "schema": { - "$ref": "#/definitions/JobListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List jobs": { - "$ref": "./examples/ListJob.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs": { - "get": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListByResourceGroup", - "description": "Gets information about the Batch AI jobs associated within the specified resource group.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Job entities associated with the resource group.", - "schema": { - "$ref": "#/definitions/JobListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List jobs": { - "$ref": "./examples/ListJobByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/listOutputFiles": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListOutputFiles", - "description": "List all directories and files inside the given directory of the output directory (Only if the output directory is on Azure File Share or Azure Storage container).", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/OutputDirectoryIdParameter" - }, - { - "$ref": "#/parameters/Directory" - }, - { - "$ref": "#/parameters/DownloadLinkExpiryParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the list of job files.", - "schema": { - "$ref": "#/definitions/FileListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List a job's files": { - "$ref": "./examples/ListOutputFiles.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/fileServers/{fileServerName}": { - "put": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_Create", - "description": "Creates a file server.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FileServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/FileServerCreateParameters" - }, - "description": "The parameters to provide for file server creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the file server entity.", - "schema": { - "$ref": "#/definitions/FileServer" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create or update file server": { - "$ref": "./examples/PutFileServer.json" - } - } - }, - "delete": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_Delete", - "description": "Delete a file Server.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FileServerNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete file server": { - "$ref": "./examples/DeleteFileServer.json" - } - } - }, - "get": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_Get", - "description": "Gets information about the specified Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FileServerNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains information about the FileServer.", - "schema": { - "$ref": "#/definitions/FileServer" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get file server": { - "$ref": "./examples/GetFileServer.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/fileServers": { - "get": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_List", - "description": "To list all the file servers available under the given subscription (and across all resource groups within that subscription)", - "parameters": [ - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a formatted list of clusters and their properties.", - "schema": { - "$ref": "#/definitions/FileServerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List file servers": { - "$ref": "./examples/ListFileServer.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/fileServers": { - "get": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_ListByResourceGroup", - "description": "Gets a formatted list of file servers and their properties associated within the specified resource group.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/SelectParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of formatted file servers and their properties associated with the resource group.", - "schema": { - "$ref": "#/definitions/FileServerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List file servers": { - "$ref": "./examples/ListFileServerByResourceGroup.json" - } - } - } - } - }, - "definitions": { - "UsageName": { - "properties": { - "value": { - "type": "string", - "description": "The name of the resource." - }, - "localizedValue": { - "type": "string", - "description": "The localized name of the resource." - } - }, - "description": "The Usage Names." - }, - "Usage": { - "properties": { - "unit": { - "type": "string", - "description": "An enum describing the unit of usage measurement.", - "enum": [ - "Count" - ], - "x-ms-enum": { - "name": "UsageUnit", - "modelAsString": false - } - }, - "currentValue": { - "type": "integer", - "format": "int32", - "description": "The current usage of the resource." - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The maximum permitted usage of the resource." - }, - "name": { - "$ref": "#/definitions/UsageName", - "description": "The name of the type of usage." - } - }, - "required": [ - "unit", - "currentValue", - "limit", - "name" - ], - "description": "Describes Batch AI Resource Usage." - }, - "ListUsagesResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Usage" - }, - "description": "The list of compute resource usages." - }, - "nextLink": { - "type": "string", - "description": "The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information." - } - }, - "required": [ - "value" - ], - "description": "The List Usages operation response." - }, - "FileServerBaseProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "The size of the virtual machine of the file server.", - "description": "For information about available VM sizes for fileservers from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux)." - }, - "sshConfiguration": { - "title": "SSH configuration for the file server.", - "$ref": "#/definitions/SshConfiguration" - }, - "dataDisks": { - "title": "Settings for the data disk which would be created for the file server.", - "$ref": "#/definitions/DataDisks" - }, - "subnet": { - "title": "Specifies the identifier of the subnet.", - "$ref": "#/definitions/ResourceId" - } - }, - "required": [ - "vmSize", - "sshConfiguration", - "dataDisks" - ], - "description": "The properties of a file server." - }, - "FileServerListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/FileServer" - }, - "description": "The collection of File Servers." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "DataDisks": { - "properties": { - "diskSizeInGB": { - "type": "integer", - "format": "int32", - "readOnly": false, - "title": "Initial disk size in GB for blank data disks, and the new desired size for resizing existing data disks." - }, - "cachingType": { - "type": "string", - "title": "None, ReadOnly, ReadWrite. Default value is None. This property is not patchable.", - "default": "none", - "enum": [ - "none", - "readonly", - "readwrite" - ], - "x-ms-enum": { - "name": "CachingType", - "modelAsString": false - } - }, - "diskCount": { - "type": "integer", - "format": "int32", - "readOnly": false, - "title": "Number of data disks to be attached to the VM. RAID level 0 will be applied in the case of multiple disks." - }, - "storageAccountType": { - "type": "string", - "readOnly": false, - "title": "Specifies the type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS.", - "enum": [ - "Standard_LRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "modelAsString": true - } - } - }, - "required": [ - "diskSizeInGB", - "diskCount", - "storageAccountType" - ], - "description": "Settings for the data disk which would be created for the File Server." - }, - "KeyVaultSecretReference": { - "properties": { - "sourceVault": { - "title": "Fully qualified resource Id for the Key Vault.", - "$ref": "#/definitions/ResourceId" - }, - "secretUrl": { - "type": "string", - "title": "The URL referencing a secret in a Key Vault." - } - }, - "required": [ - "sourceVault", - "secretUrl" - ], - "description": "Describes a reference to Key Vault Secret." - }, - "KeyVaultKeyReference": { - "properties": { - "sourceVault": { - "title": "Fully qualified resource Id for the Key Vault.", - "$ref": "#/definitions/ResourceId" - }, - "keyUrl": { - "type": "string", - "title": "The URL referencing a key in a Key Vault." - } - }, - "required": [ - "sourceVault", - "keyUrl" - ], - "description": "Describes a reference to Key Vault Key." - }, - "MountSettings": { - "properties": { - "mountPoint": { - "type": "string", - "title": "Path where the NFS is mounted on the Server." - }, - "fileServerPublicIP": { - "type": "string", - "title": "Public IP of the File Server VM." - }, - "fileServerInternalIP": { - "type": "string", - "title": "Internal subnet IP which can be used to access the file Server from within the subnet." - }, - "fileServerType": { - "type": "string", - "title": "Type of the fileserver e.g. nfs, glusterfs etc.", - "enum": [ - "nfs", - "glusterfs" - ], - "x-ms-enum": { - "name": "FileServerType", - "modelAsString": true - } - } - }, - "description": "Details of the File Server." - }, - "SshConfiguration": { - "properties": { - "publicIPsToAllow": { - "type": "array", - "items": { - "type": "string" - }, - "title": "List of source IP ranges to allow SSH connection to a node.", - "description": "Default value is '*' can be used to match all source IPs. Maximum number of IP ranges that can be specified are 400." - }, - "userAccountSettings": { - "title": "Settings for user account to be created on a node.", - "$ref": "#/definitions/UserAccountSettings" - } - }, - "required": [ - "userAccountSettings" - ], - "description": "SSH configuration settings for the VM" - }, - "FileServerCreateParameters": { - "properties": { - "location": { - "type": "string", - "description": "The region in which to create the File Server." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The user specified tags associated with the File Server." - }, - "properties": { - "$ref": "#/definitions/FileServerBaseProperties", - "description": "The properties of the File Server.", - "x-ms-client-flatten": true - } - }, - "required": [ - "location" - ], - "description": "Parameters supplied to the Create operation." - }, - "FileServerProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "The size of the virtual machine of the File Server.", - "description": "For information about available VM sizes for File Server from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux)." - }, - "sshConfiguration": { - "title": "SSH settings for the File Server.", - "$ref": "#/definitions/SshConfiguration" - }, - "dataDisks": { - "title": "Settings for the data disk which would be created for the File Server.", - "$ref": "#/definitions/DataDisks" - }, - "subnet": { - "title": "Specifies the identifier of the subnet.", - "$ref": "#/definitions/ResourceId" - }, - "mountSettings": { - "title": "Details of the File Server.", - "readOnly": true, - "$ref": "#/definitions/MountSettings" - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Time when the status was changed." - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Time when the FileServer was created." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Specifies the provisioning state of the File Server.", - "description": "Possible values: creating - The File Server is getting created. updating - The File Server creation has been accepted and it is getting updated. deleting - The user has requested that the File Server be deleted, and it is in the process of being deleted. failed - The File Server creation has failed with the specified errorCode. Details about the error code are specified in the message field. succeeded - The File Server creation has succeeded.", - "enum": [ - "creating", - "updating", - "deleting", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "FileServerProvisioningState", - "modelAsString": false - } - } - }, - "description": "File server specific properties." - }, - "FileServer": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/FileServerProperties", - "description": "The properties associated with the File Server." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Contains information about the File Server." - }, - "ClusterBaseProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "The size of the virtual machines in the cluster.", - "description": "All virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)." - }, - "vmPriority": { - "type": "string", - "title": "dedicated or lowpriority.", - "description": "Default is dedicated.", - "default": "dedicated", - "enum": [ - "dedicated", - "lowpriority" - ], - "x-ms-enum": { - "name": "VmPriority", - "modelAsString": false - } - }, - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Desired scale for the cluster." - }, - "virtualMachineConfiguration": { - "title": "Settings for OS image and mounted data volumes.", - "$ref": "#/definitions/VirtualMachineConfiguration" - }, - "nodeSetup": { - "title": "Setup to be done on all compute nodes in the cluster.", - "$ref": "#/definitions/NodeSetup" - }, - "userAccountSettings": { - "title": "Settings for user account that will be created on all compute nodes of the cluster.", - "$ref": "#/definitions/UserAccountSettings" - }, - "subnet": { - "title": "Specifies the identifier of the subnet. ", - "$ref": "#/definitions/ResourceId" - } - }, - "required": [ - "vmSize", - "userAccountSettings" - ], - "description": "The properties of a Cluster." - }, - "ClusterUpdateProperties": { - "properties": { - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Desired scale for the cluster" - } - }, - "description": "The properties of a Cluster that need to be updated." - }, - "DeallocationOption": { - "type": "string", - "title": "Specifies when compute nodes may be removed from the cluster, if the cluster size is decreasing.", - "description": "Possible values are: requeue - Terminate running jobs and requeue them. The jobs will run again. Remove compute nodes as soon as jobs have been terminated. terminate - Terminate running jobs. The jobs will not run again. Remove compute nodes as soon as jobs have been terminated. jobcompletion - Allow currently running jobs to complete. Schedule no new jobs while waiting. Remove compute nodes when all jobs have completed. The default value is requeue.", - "default": "requeue", - "enum": [ - "requeue", - "terminate", - "waitforjobcompletion", - "unknown" - ], - "x-ms-enum": { - "name": "DeallocationOption", - "modelAsString": false - } - }, - "ScaleSettings": { - "properties": { - "manual": { - "$ref": "#/definitions/ManualScaleSettings", - "title": "The scale for the cluster by manual settings" - }, - "autoScale": { - "$ref": "#/definitions/AutoScaleSettings", - "title": "The scale for the cluster by autoscale settings" - } - }, - "description": "At least one of manual or autoScale settings must be specified. Only one of manual or autoScale settings can be specified. If autoScale settings are specified, the system automatically scales the cluster up and down (within the supplied limits) based on the pending jobs on the cluster." - }, - "AutoScaleSettings": { - "properties": { - "minimumNodeCount": { - "type": "integer", - "format": "int32", - "title": "Specifies the minimum number of compute nodes the cluster can have." - }, - "maximumNodeCount": { - "type": "integer", - "format": "int32", - "title": "Specifies the maximum number of compute nodes the cluster can have." - }, - "initialNodeCount": { - "type": "integer", - "format": "int32", - "title": "Specifies the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation.", - "default": 0 - } - }, - "required": [ - "minimumNodeCount", - "maximumNodeCount" - ], - "description": "The system automatically scales the cluster up and down (within minimumNodeCount and maximumNodeCount) based on the pending and running jobs on the cluster." - }, - "ManualScaleSettings": { - "properties": { - "targetNodeCount": { - "type": "integer", - "format": "int32", - "title": "The desired number of compute nodes in the Cluster.", - "default": 0, - "description": "Default is 0. If autoScaleSettings are not specified, then the Cluster starts with this target." - }, - "nodeDeallocationOption": { - "title": "Determines what to do with the job(s) running on compute node if the Cluster size is decreasing.", - "description": "The default value is requeue.", - "default": "requeue", - "$ref": "#/definitions/DeallocationOption" - } - }, - "required": [ - "targetNodeCount" - ], - "description": "Manual scale settings for the cluster." - }, - "VirtualMachineConfiguration": { - "properties": { - "imageReference": { - "title": "Reference to OS image.", - "$ref": "#/definitions/ImageReference" - } - }, - "description": "Settings for OS image." - }, - "ImageReference": { - "properties": { - "publisher": { - "type": "string", - "title": "Publisher of the image." - }, - "offer": { - "type": "string", - "title": "Offer of the image." - }, - "sku": { - "type": "string", - "title": "SKU of the image." - }, - "version": { - "type": "string", - "title": "Version of the image." - }, - "virtualMachineImageId": { - "type": "string", - "title": "The ARM resource identifier of the virtual machine image. Computes nodes of the cluster will be created using this custom image. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", - "description": "The virtual machine image must be in the same region and subscription as the cluster. For information about the firewall settings for the Batch 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. Note, you need to provide publisher, offer and sku of the base OS image of which the custom image has been derived from." - } - }, - "required": [ - "publisher", - "offer", - "sku" - ], - "description": "The image reference." - }, - "NodeStateCounts": { - "properties": { - "idleNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes in idle state." - }, - "runningNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes which are running jobs." - }, - "preparingNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes which are being prepared." - }, - "unusableNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes which are unusable." - }, - "leavingNodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes which are leaving the cluster." - } - }, - "required": [ - "idleNodeCount", - "runningNodeCount", - "preparingNodeCount", - "unusableNodeCount", - "leavingNodeCount" - ], - "description": "Counts of various compute node states on the cluster." - }, - "UserAccountSettings": { - "properties": { - "adminUserName": { - "type": "string", - "title": "Specifies the name of the administrator account." - }, - "adminUserSshPublicKey": { - "type": "string", - "title": "SSH public keys used to authenticate with linux based VMs. This does not get returned in a GET response body." - }, - "adminUserPassword": { - "type": "string", - "title": "Admin user Password (linux only). This does not get returned in a GET response body." - } - }, - "required": [ - "adminUserName" - ], - "description": "Settings for user account that gets created on each on the nodes of a cluster." - }, - "PerformanceCountersSettings": { - "properties": { - "appInsightsReference": { - "title": "Specifies Azure Application Insights information for performance counters reporting.", - "description": "If provided, Batch AI will upload node performance counters to the corresponding Azure Application Insights account.", - "$ref": "#/definitions/AppInsightsReference" - } - }, - "required": [ - "appInsightsReference" - ], - "description": "Performance counters reporting settings." - }, - "AppInsightsReference": { - "properties": { - "component": { - "title": "Specifies the Azure Application Insights component resource id.", - "$ref": "#/definitions/ResourceId" - }, - "instrumentationKey": { - "type": "string", - "title": "Value of the Azure Application Insights instrumentation key." - }, - "instrumentationKeySecretReference": { - "title": "Specifies a KeyVault Secret containing Azure Application Insights instrumentation key.", - "description": "Specifies KeyVault Store and Secret which contains Azure Application Insights instrumentation key. One of instrumentationKey or instrumentationKeySecretReference must be specified.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "required": [ - "component" - ], - "description": "Specifies Azure Application Insights information for performance counters reporting." - }, - "NodeSetup": { - "properties": { - "setupTask": { - "title": "Specifies a setup task which can be used to customize the compute nodes of the cluster. The NodeSetup task runs every time a VM is rebooted. For that reason the task code needs to be idempotent. Generally it is used to either download static data that is required for all jobs that run on the cluster VMs or to download/install software.", - "$ref": "#/definitions/SetupTask" - }, - "mountVolumes": { - "title": "Information on shared volumes to be used by jobs.", - "description": "Specified mount volumes will be available to all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable.", - "$ref": "#/definitions/MountVolumes" - }, - "performanceCountersSettings": { - "title": "Specifies settings for performance counters collecting and uploading.", - "$ref": "#/definitions/PerformanceCountersSettings" - } - }, - "description": "Use this to prepare the VM. NOTE: The volumes specified in mountVolumes are mounted first and then the setupTask is run. Therefore the setup task can use local mountPaths in its execution." - }, - "SetupTask": { - "properties": { - "commandLine": { - "type": "string", - "title": "Command Line to start Setup process." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariable" - }, - "title": "Collection of environment variables to be set for setup task." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariableWithSecretValue" - }, - "title": "Collection of environment variables with secret values to be set for setup task.", - "description": "Server will never report values of these variables back." - }, - "runElevated": { - "type": "boolean", - "title": "Specifies whether to run the setup task under root account. The default value is false.", - "description": "Note. Non-elevated tasks are run under an account added into sudoer list and can perform sudo when required.", - "default": false - }, - "stdOutErrPathPrefix": { - "type": "string", - "description": "The prefix of a path where the Batch AI service will upload the stdout and stderr of the setup task." - }, - "stdOutErrPathSuffix": { - "type": "string", - "title": "A path segment appended by Batch AI to stdOutErrPathPrefix to form a path where stdout and stderr of the setup task will be uploaded.", - "description": "Batch AI creates the setup task output directories under an unique path to avoid conflicts between different clusters. You can concatenate stdOutErrPathPrefix and stdOutErrPathSuffix to get the full path to the output directory.", - "readOnly": true - } - }, - "required": [ - "commandLine", - "stdOutErrPathPrefix" - ], - "description": "Specifies a setup task which can be used to customize the compute nodes of the cluster." - }, - "ClusterCreateParameters": { - "properties": { - "location": { - "type": "string", - "description": "The region in which to create the cluster." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The user specified tags associated with the Cluster." - }, - "properties": { - "$ref": "#/definitions/ClusterBaseProperties", - "description": "The properties of the Cluster.", - "x-ms-client-flatten": true - } - }, - "required": [ - "location" - ], - "description": "Parameters supplied to the Create operation." - }, - "ClusterUpdateParameters": { - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The user specified tags associated with the Cluster." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterUpdateProperties", - "description": "The properties of the Cluster." - } - }, - "description": "Parameters supplied to the Update operation." - }, - "ClusterProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "The size of the virtual machines in the cluster.", - "description": "All virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)." - }, - "vmPriority": { - "type": "string", - "title": "dedicated or lowpriority.", - "description": "The default value is dedicated. The node can get preempted while the task is running if lowpriority is chosen. This is best suited if the workload is checkpointing and can be restarted.", - "default": "dedicated", - "enum": [ - "dedicated", - "lowpriority" - ], - "x-ms-enum": { - "name": "VmPriority", - "modelAsString": false - } - }, - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Desired scale for the Cluster." - }, - "virtualMachineConfiguration": { - "title": "Settings for OS image and mounted data volumes.", - "$ref": "#/definitions/VirtualMachineConfiguration" - }, - "nodeSetup": { - "title": "Setup to be done on all compute nodes in the Cluster.", - "$ref": "#/definitions/NodeSetup" - }, - "userAccountSettings": { - "title": "Settings for user account of compute nodes.", - "$ref": "#/definitions/UserAccountSettings" - }, - "subnet": { - "title": "Specifies the identifier of the subnet.", - "$ref": "#/definitions/ResourceId" - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The creation time of the cluster." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Specifies the provisioning state of the cluster.", - "description": "Possible value are: creating - Specifies that the cluster is being created. succeeded - Specifies that the cluster has been created successfully. failed - Specifies that the cluster creation has failed. deleting - Specifies that the cluster is being deleted.", - "enum": [ - "creating", - "succeeded", - "failed", - "deleting" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": false - } - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The provisioning state transition time of the cluster." - }, - "allocationState": { - "type": "string", - "readOnly": true, - "title": "Indicates whether the cluster is resizing.", - "description": "Possible values are: steady and resizing. steady state indicates that the cluster is not resizing. There are no changes to the number of compute nodes in the cluster in progress. A cluster enters this state when it is created and when no operations are being performed on the cluster to change the number of compute nodes. resizing state indicates that the cluster is resizing; that is, compute nodes are being added to or removed from the cluster.", - "enum": [ - "steady", - "resizing" - ], - "x-ms-enum": { - "name": "AllocationState", - "modelAsString": false - } - }, - "allocationStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The time at which the cluster entered its current allocation state." - }, - "errors": { - "title": "Contains details of various errors on the cluster including resize and node setup task", - "description": "This element contains all the errors encountered by various compute nodes during node setup.", - "type": "array", - "items": { - "$ref": "#/definitions/BatchAIError" - } - }, - "currentNodeCount": { - "type": "integer", - "readOnly": true, - "format": "int32", - "title": "The number of compute nodes currently assigned to the cluster." - }, - "nodeStateCounts": { - "title": "Counts of various node states on the cluster.", - "readOnly": true, - "$ref": "#/definitions/NodeStateCounts" - } - }, - "description": "Job specific properties." - }, - "Cluster": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterProperties", - "description": "The properties associated with the Cluster." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Contains information about a Cluster." - }, - "ClusterListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Cluster" - }, - "description": "The collection of returned Clusters." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List Clusters operation." - }, - "JobBaseProperties": { - "properties": { - "experimentName": { - "type": "string", - "description": "Describe the experiment information of the job" - }, - "priority": { - "type": "integer", - "format": "int32", - "title": "Priority associated with the job.", - "description": "Priority associated with 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.", - "default": 0 - }, - "cluster": { - "title": "Specifies the Id of the cluster on which this job will run.", - "$ref": "#/definitions/ResourceId" - }, - "mountVolumes": { - "title": "Information on mount volumes to be used by the job.", - "description": "These volumes will be mounted before the job execution and will be unmounted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.", - "$ref": "#/definitions/MountVolumes" - }, - "nodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes to run the job on.", - "description": "The job will be gang scheduled on that many compute nodes" - }, - "containerSettings": { - "title": "If provided the job will run in the specified container.", - "description": "If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM.", - "$ref": "#/definitions/ContainerSettings" - }, - "cntkSettings": { - "title": "Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job.", - "$ref": "#/definitions/CNTKsettings" - }, - "pyTorchSettings": { - "title": "Specifies the settings for pyTorch job.", - "$ref": "#/definitions/PyTorchSettings" - }, - "tensorFlowSettings": { - "title": "Specifies the settings for Tensor Flow job.", - "$ref": "#/definitions/TensorFlowSettings" - }, - "caffeSettings": { - "title": "Specifies the settings for Caffe job.", - "$ref": "#/definitions/CaffeSettings" - }, - "caffe2Settings": { - "title": "Specifies the settings for Caffe2 job.", - "$ref": "#/definitions/Caffe2Settings" - }, - "chainerSettings": { - "title": "Specifies the settings for Chainer job.", - "$ref": "#/definitions/ChainerSettings" - }, - "customToolkitSettings": { - "title": "Specifies the settings for custom tool kit job.", - "$ref": "#/definitions/CustomToolkitSettings" - }, - "jobPreparation": { - "title": "Specifies the command line to be executed before tool kit is launched.", - "description": "The specified actions will run on all the nodes that are part of the job", - "$ref": "#/definitions/JobPreparation" - }, - "stdOutErrPathPrefix": { - "type": "string", - "description": "The path where the Batch AI service will upload stdout and stderror of the job." - }, - "inputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDirectory" - }, - "title": "Specifies the list of input directories for the Job." - }, - "outputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputDirectory" - }, - "title": "Specifies the list of output directories." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariable" - }, - "title": "Additional environment variables to set on the job.", - "description": "Batch AI will setup these additional environment variables for the job." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariableWithSecretValue" - }, - "title": "Additional environment variables with secret values to set on the job.", - "description": "Batch AI will setup these additional environment variables for the job. Server will never report values of these variables back." - }, - "constraints": { - "properties": { - "maxWallClockTime": { - "type": "string", - "format": "duration", - "title": "Max time the job can run.", - "description": "Default Value = 1 week.", - "default": "7.00:00:00" - } - }, - "description": "Constraints associated with the Job." - } - }, - "required": [ - "cluster", - "nodeCount", - "stdOutErrPathPrefix" - ], - "description": "The properties of a Batch AI job." - }, - "JobCreateParameters": { - "properties": { - "location": { - "type": "string", - "description": "The region in which to create the job." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The user specified tags associated with the job." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/JobBaseProperties", - "description": "The properties of the Job." - } - }, - "required": [ - "location" - ], - "description": "Parameters supplied to the Create operation." - }, - "JobProperties": { - "properties": { - "experimentName": { - "type": "string", - "description": "Describe the experiment information of the job" - }, - "priority": { - "type": "integer", - "format": "int32", - "title": "Priority associated with the job.", - "description": "Priority associated with 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.", - "default": 0 - }, - "cluster": { - "title": "Specifies the Id of the cluster on which this job will run.", - "$ref": "#/definitions/ResourceId" - }, - "mountVolumes": { - "title": "Information on mount volumes to be used by the job.", - "description": "These volumes will be mounted before the job execution and will be unmounted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.", - "$ref": "#/definitions/MountVolumes" - }, - "jobOutputDirectoryPathSegment": { - "type": "string", - "title": "A segment of job's output directories path created by BatchAI.", - "description": "Batch AI creates job's output directories under an unique path to avoid conflicts between jobs. This value contains a path segment generated by Batch AI to make the path unique and can be used to find the output directory on the node or mounted filesystem." - }, - "nodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes to run the job on.", - "description": "The job will be gang scheduled on that many compute nodes" - }, - "containerSettings": { - "title": "If provided the job will run in the specified container.", - "description": "If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM.", - "$ref": "#/definitions/ContainerSettings" - }, - "toolType": { - "title": "The toolkit type of this job.", - "description": "Possible values are: cntk, tensorflow, caffe, caffe2, chainer, pytorch, custom.", - "$ref": "#/definitions/ToolType" - }, - "cntkSettings": { - "title": "Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job.", - "$ref": "#/definitions/CNTKsettings" - }, - "pyTorchSettings": { - "title": "Specifies the settings for pyTorch job.", - "$ref": "#/definitions/PyTorchSettings" - }, - "tensorFlowSettings": { - "title": "Specifies the settings for Tensor Flow job.", - "$ref": "#/definitions/TensorFlowSettings" - }, - "caffeSettings": { - "title": "Specifies the settings for Caffe job.", - "$ref": "#/definitions/CaffeSettings" - }, - "chainerSettings": { - "title": "Specifies the settings for Chainer job.", - "$ref": "#/definitions/ChainerSettings" - }, - "customToolkitSettings": { - "title": "Specifies the settings for custom tool kit job.", - "$ref": "#/definitions/CustomToolkitSettings" - }, - "jobPreparation": { - "title": "Specifies the actions to be performed before tool kit is launched.", - "description": "The specified actions will run on all the nodes that are part of the job", - "$ref": "#/definitions/JobPreparation" - }, - "stdOutErrPathPrefix": { - "type": "string", - "description": "The path where the Batch AI service will upload stdout and stderror of the job." - }, - "inputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDirectory" - }, - "title": "Specifies the list of input directories for the Job." - }, - "outputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputDirectory" - }, - "title": "Specifies the list of output directories where the models will be created." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariable" - }, - "title": "Additional environment variables to set on the job.", - "description": "Batch AI will setup these additional environment variables for the job." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariableWithSecretValue" - }, - "title": "Additional environment variables with secret values to set on the job.", - "description": "Batch AI will setup these additional environment variables for the job. Server will never report values of these variables back." - }, - "constraints": { - "properties": { - "maxWallClockTime": { - "type": "string", - "format": "duration", - "title": "Max time the job can run.", - "description": "Default Value = 1 week.", - "default": "7.00:00:00" - } - }, - "description": "Constraints associated with the Job." - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The job creation time.", - "description": "The creation time of the job." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "description": "The provisioned state of the Batch AI job", - "enum": [ - "creating", - "deleting", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": false - } - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The time at which the job entered its current provisioning state.", - "description": "The time at which the job entered its current provisioning state." - }, - "executionState": { - "type": "string", - "title": "The current state of the job.", - "description": "The current state of the job. Possible values are: queued - The job is queued and able to run. A job enters this state when it is created, or when it is awaiting a retry after a failed run. running - The job is running on a compute cluster. This includes job-level preparation such as downloading resource files or set up container specified on the job - it does not necessarily mean that the job command line has started executing. terminating - The job is terminated by the user, the terminate operation is in progress. succeeded - The job has completed running successfully and exited with exit code 0. failed - The job has finished unsuccessfully (failed with a non-zero exit code) and has exhausted its retry limit. A job is also marked as failed if an error occurred launching the job.", - "enum": [ - "queued", - "running", - "terminating", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "ExecutionState", - "modelAsString": false - } - }, - "executionStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "The time at which the job entered its current execution state.", - "description": "The time at which the job entered its current execution state." - }, - "executionInfo": { - "properties": { - "startTime": { - "type": "string", - "format": "date-time", - "title": "The time at which the job started running.", - "description": "'Running' corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state." - }, - "endTime": { - "type": "string", - "format": "date-time", - "title": "The time at which the job completed.", - "description": "This property is only returned if the job is in completed state." - }, - "exitCode": { - "type": "integer", - "format": "int32", - "title": "The exit code of the job.", - "description": "This property is only returned if the job is in completed state." - }, - "errors": { - "title": "Contains details of various errors encountered by the service during job execution", - "type": "array", - "items": { - "$ref": "#/definitions/BatchAIError" - } - } - }, - "required": [ - "startTime" - ], - "description": "Contains information about the execution of a job in the Azure Batch service." - } - }, - "description": "Job specific properties." - }, - "Job": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/JobProperties", - "description": "The properties associated with the job." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Contains information about the job." - }, - "JobListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "The collection of jobs." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "RemoteLoginInformation": { - "properties": { - "nodeId": { - "type": "string", - "description": "Id of the compute node" - }, - "ipAddress": { - "type": "string", - "description": "ip address" - }, - "port": { - "type": "number", - "format": "int32", - "title": "port number" - } - }, - "description": "Contains remote login details to SSH/RDP to a compute node in cluster.", - "required": [ - "nodeId", - "ipAddress", - "port" - ] - }, - "RemoteLoginInformationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RemoteLoginInformation" - }, - "description": "The collection of returned remote login details." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "FileProperties": { - "properties": { - "lastModified": { - "type": "string", - "format": "date-time", - "title": "The time at which the file was last modified.", - "description": "The time at which the file was last modified." - }, - "contentLength": { - "type": "integer", - "format": "int64", - "title": "The file size.", - "description": "The file size." - } - }, - "description": "File specific properties." - }, - "File": { - "properties": { - "name": { - "type": "string", - "description": "Name of the file." - }, - "isDirectory": { - "type": "boolean", - "description": "Indicates if the file is a directory." - }, - "downloadUrl": { - "type": "string", - "title": "Will contain an URL to download the corresponding file. The downloadUrl is not returned for directories." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/FileProperties", - "description": "The properties associated with the file. The properties are not returned for directories." - } - }, - "description": "Properties of the file or directory.", - "required": [ - "name", - "isDirectory" - ] - }, - "FileListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/File" - }, - "description": "The collection of returned job directories and files." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "ResourceId": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the resource" - } - }, - "required": [ - "id" - ], - "description": "Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.", - "x-ms-azure-resource": true - }, - "Resource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The ID of the resource" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the resource" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of the resource" - }, - "location": { - "readOnly": true, - "type": "string", - "description": "The location of the resource" - }, - "tags": { - "readOnly": true, - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The tags of the resource" - } - }, - "description": "A definition of an Azure resource.", - "x-ms-azure-resource": true - }, - "ToolType": { - "type": "string", - "description": "The toolkit type of this job.", - "enum": [ - "cntk", - "tensorflow", - "caffe", - "caffe2", - "chainer", - "custom" - ], - "x-ms-enum": { - "name": "ToolType", - "modelAsString": true - } - }, - "NameValuePair": { - "properties": { - "name": { - "type": "string", - "title": "The name in the name-value pair." - }, - "value": { - "type": "string", - "title": "The value in the name-value pair." - } - }, - "description": "Represents a name-value pair." - }, - "EnvironmentVariable": { - "properties": { - "name": { - "type": "string", - "title": "The name of the environment variable." - }, - "value": { - "type": "string", - "title": "The value of the environment variable." - } - }, - "required": [ - "name", - "value" - ], - "description": "A collection of environment variables to set." - }, - "EnvironmentVariableWithSecretValue": { - "properties": { - "name": { - "type": "string", - "title": "The name of the environment variable to store the secret value." - }, - "value": { - "type": "string", - "title": "The value of the environment variable. This value will never be reported back by Batch AI." - }, - "valueSecretReference": { - "title": "Specifies the location of the Azure KeyVault secret which will be used as the environment variable value.", - "description": "Specifies KeyVault Store and Secret which contains the value for the environment variable. One of value or valueSecretReference must be provided.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "required": [ - "name" - ], - "description": "A collection of environment variables with secret values to set." - }, - "LocalDataVolume": { - "properties": { - "hostPath": { - "type": "string", - "title": "The path on the host that is to be mounted as a directory in the container." - }, - "localPath": { - "type": "string", - "title": "The container local path where the host directory is mounted." - } - }, - "description": "Represents mapping of host directories to directories in the container.", - "required": [ - "hostPath", - "localPath" - ] - }, - "ImageSourceRegistry": { - "properties": { - "serverUrl": { - "type": "string", - "title": "URL for image repository." - }, - "image": { - "type": "string", - "title": "The name of the image in image repository." - }, - "credentials": { - "title": "Information to access the private Docker repository.", - "$ref": "#/definitions/PrivateRegistryCredentials" - } - }, - "description": "Details of the container image such as name, URL and credentials.", - "required": [ - "image" - ] - }, - "PrivateRegistryCredentials": { - "properties": { - "username": { - "type": "string", - "title": "User name to login." - }, - "password": { - "type": "string", - "title": "Password to login.", - "description": "One of password or passwordSecretReference must be specified." - }, - "passwordSecretReference": { - "title": "Specifies the location of the password, which is a Key Vault Secret.", - "description": "Users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of password or passwordSecretReference must be specified.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "description": "Credentials to access a container image in a private repository.", - "required": [ - "username" - ] - }, - "ContainerSettings": { - "properties": { - "imageSourceRegistry": { - "title": "Registry to download the container from.", - "$ref": "#/definitions/ImageSourceRegistry" - } - }, - "description": "Settings for the container to be downloaded.", - "required": [ - "imageSourceRegistry" - ] - }, - "InputDirectory": { - "properties": { - "id": { - "type": "string", - "title": "The id for the input directory.", - "description": "The path of the input directory will be available as a value of an environment variable with AZ_BATCHAI_INPUT_ name, where is the value of id attribute." - }, - "path": { - "type": "string", - "title": "The path to the input directory." - } - }, - "description": "Input directory for the job.", - "required": [ - "id", - "path" - ] - }, - "OutputDirectory": { - "properties": { - "id": { - "type": "string", - "title": "The name for the output directory.", - "description": "The path of the output directory will be available as a value of an environment variable with AZ_BATCHAI_OUTPUT_ name, where is the value of id attribute." - }, - "pathPrefix": { - "type": "string", - "title": "The prefix path where the output directory will be created.", - "description": "NOTE: This is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix." - }, - "pathSuffix": { - "type": "string", - "title": "The suffix path where the output directory will be created.", - "description": "The suffix path where the output directory will be created. E.g. models. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix." - }, - "type": { - "type": "string", - "title": "An enumeration, which specifies the type of job output directory.", - "description": "Default value is Custom. The possible values are Model, Logs, Summary, and Custom. Users can use multiple enums for a single directory. Eg. outPutType='Model,Logs, Summary'", - "default": "custom", - "enum": [ - "model", - "logs", - "summary", - "custom" - ], - "x-ms-enum": { - "name": "OutputType", - "modelAsString": true - } - }, - "createNew": { - "type": "boolean", - "title": "True to create new directory.", - "description": "Default is true. If false, then the directory is not created and can be any directory path that the user specifies.", - "default": true - } - }, - "description": "Output directory for the job.", - "required": [ - "id", - "pathPrefix" - ] - }, - "AzureStorageCredentialsInfo": { - "properties": { - "accountKey": { - "type": "string", - "title": "Storage account key.", - "description": "One of accountKey or accountKeySecretReference must be specified." - }, - "accountKeySecretReference": { - "title": "Specifies the location of the storage account key, which is a Key Vault Secret.", - "description": "Users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of accountKey or accountKeySecretReference must be specified.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "description": "Credentials to access Azure File Share." - }, - "AzureFileShareReference": { - "properties": { - "accountName": { - "type": "string", - "title": "Name of the storage account." - }, - "azureFileUrl": { - "type": "string", - "title": "URL to access the Azure File." - }, - "credentials": { - "title": "Information of the Azure File credentials.", - "$ref": "#/definitions/AzureStorageCredentialsInfo" - }, - "relativeMountPath": { - "type": "string", - "title": "Specifies the relative path on the compute node where the Azure file share will be mounted.", - "description": "Note that all cluster level file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file shares will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT." - }, - "fileMode": { - "type": "string", - "title": "Specifies the file mode.", - "description": "Default value is 0777. Valid only if OS is linux.", - "default": "0777" - }, - "directoryMode": { - "type": "string", - "title": "Specifies the directory Mode.", - "description": "Default value is 0777. Valid only if OS is linux.", - "default": "0777" - } - }, - "description": "Details of the Azure File Share to mount on the cluster.", - "required": [ - "accountName", - "azureFileUrl", - "credentials", - "relativeMountPath" - ] - }, - "AzureBlobFileSystemReference": { - "properties": { - "accountName": { - "type": "string", - "title": "Name of the Azure Blob Storage account." - }, - "containerName": { - "type": "string", - "title": "Name of the Azure Blob Storage container to mount on the cluster." - }, - "credentials": { - "title": "Information of the Azure Blob Storage account credentials.", - "$ref": "#/definitions/AzureStorageCredentialsInfo" - }, - "relativeMountPath": { - "type": "string", - "title": "Specifies the relative path on the compute node where the Azure Blob file system will be mounted.", - "description": "Note that all cluster level blob file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level blob file systems will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT." - }, - "mountOptions": { - "type": "string", - "title": "Specifies the various mount options that can be used to configure Blob file system." - } - }, - "description": "Provides required information, for the service to be able to mount Azure Blob Storage container on the cluster nodes.", - "required": [ - "accountName", - "containerName", - "credentials", - "relativeMountPath" - ] - }, - "FileServerReference": { - "properties": { - "fileServer": { - "title": "Reference to the file server resource.", - "$ref": "#/definitions/ResourceId" - }, - "sourceDirectory": { - "type": "string", - "title": "Specifies the source directory in File Server that needs to be mounted.", - "description": "If this property is not specified, the entire File Server will be mounted." - }, - "relativeMountPath": { - "type": "string", - "title": "Specifies the relative path on the compute node where the File Server will be mounted.", - "description": "Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT." - }, - "mountOptions": { - "type": "string", - "title": "Specifies the mount options for File Server." - } - }, - "description": "Provides required information, for the service to be able to mount Azure FileShare on the cluster nodes.", - "required": [ - "fileServer", - "relativeMountPath" - ] - }, - "UnmanagedFileSystemReference": { - "properties": { - "mountCommand": { - "title": "Command used to mount the unmanaged file system.", - "type": "string" - }, - "relativeMountPath": { - "type": "string", - "title": "Specifies the relative path on the compute cluster node where the file system will be mounted.", - "description": "Note that all cluster level unmanaged file system will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and job level unmanaged file system will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT." - } - }, - "description": "Details of the file system to mount on the compute cluster nodes.", - "required": [ - "mountCommand", - "relativeMountPath" - ] - }, - "MountVolumes": { - "properties": { - "azureFileShares": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureFileShareReference" - }, - "title": "Azure File Share setup configuration.", - "description": "References to Azure File Shares that are to be mounted to the cluster nodes." - }, - "azureBlobFileSystems": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureBlobFileSystemReference" - }, - "title": "Azure Blob FileSystem setup configuration.", - "description": "References to Azure Blob FUSE that are to be mounted to the cluster nodes." - }, - "fileServers": { - "type": "array", - "items": { - "$ref": "#/definitions/FileServerReference" - }, - "title": "References to a list of file servers that are mounted to the cluster node." - }, - "unmanagedFileSystems": { - "type": "array", - "items": { - "$ref": "#/definitions/UnmanagedFileSystemReference" - }, - "title": "References to a list of file servers that are mounted to the cluster node." - } - }, - "description": "Details of volumes to mount on the cluster." - }, - "CNTKsettings": { - "properties": { - "languageType": { - "type": "string", - "title": "Specifies the language type to use for launching CNTK (aka Microsoft Cognitive Toolkit) job.", - "description": "Valid values are 'BrainScript' or 'Python'." - }, - "configFilePath": { - "type": "string", - "title": "Specifies the path of the config file.", - "description": "This property can be specified only if the languageType is 'BrainScript'." - }, - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job.", - "description": "This property can be specified only if the languageType is 'Python'." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter.", - "description": "This property can be specified only if the languageType is 'Python'." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments that needs to be passed to the python script or CNTK.exe." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Number of processes parameter that is passed to MPI runtime.", - "description": "The default value for this property is equal to nodeCount property" - } - }, - "description": "Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job." - }, - "CaffeSettings": { - "properties": { - "configFilePath": { - "type": "string", - "title": "Specifies the path of the config file.", - "description": "This property cannot be specified if pythonScriptFilePath is specified." - }, - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job.", - "description": "This property cannot be specified if configFilePath is specified." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter.", - "description": "This property can be specified only if the pythonScriptFilePath is specified." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments that needs to be passed to the Caffe job." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Number of processes parameter that is passed to MPI runtime.", - "description": "The default value for this property is equal to nodeCount property" - } - }, - "description": "Specifies the settings for Caffe job." - }, - "Caffe2Settings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments that needs to be passed to the python script" - } - }, - "description": "Specifies the settings for Caffe2 job.", - "required": [ - "pythonScriptFilePath" - ] - }, - "ChainerSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments that needs to be passed to the python script" - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Number of processes parameter that is passed to MPI runtime.", - "description": "The default value for this property is equal to nodeCount property" - } - }, - "description": "Specifies the settings for Chainer job.", - "required": [ - "pythonScriptFilePath" - ] - }, - "CustomToolkitSettings": { - "properties": { - "commandLine": { - "type": "string", - "title": "The command line to execute the custom toolkit Job." - } - }, - "description": "Specifies the settings for a custom tool kit job." - }, - "JobPreparation": { - "properties": { - "commandLine": { - "type": "string", - "title": "The command line to execute.", - "description": "If containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node." - } - }, - "description": "Specifies the settings for job preparation.", - "required": [ - "commandLine" - ] - }, - "PyTorchSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Specifies the command line arguments for the master task." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Number of processes to launch for the job execution.", - "description": "The default value for this property is equal to nodeCount property." - }, - "communicationBackend": { - "type": "string", - "title": "Type of the communication backend for distributed jobs.", - "description": "Valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs." - } - }, - "description": "Specifies the settings for pyTorch job.", - "required": [ - "pythonScriptFilePath" - ] - }, - "TensorFlowSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "The path and file name of the python script to execute the job." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "The path to python interpreter." - }, - "masterCommandLineArgs": { - "type": "string", - "title": "Specifies the command line arguments for the master task." - }, - "workerCommandLineArgs": { - "type": "string", - "title": "Specifies the command line arguments for the worker task.", - "description": "This property is optional for single machine training." - }, - "parameterServerCommandLineArgs": { - "type": "string", - "title": "Specifies the command line arguments for the parameter server task.", - "description": "This property is optional for single machine training." - }, - "workerCount": { - "type": "integer", - "format": "int32", - "title": "The number of worker tasks.", - "description": "If specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training" - }, - "parameterServerCount": { - "type": "integer", - "format": "int32", - "title": "The number of parameter server tasks.", - "description": "If specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training (This property is not applicable for single machine training). This property can be specified only for distributed TensorFlow training." - } - }, - "description": "Specifies the settings for TensorFlow job.", - "required": [ - "pythonScriptFilePath" - ] - }, - "CloudError": { - "x-ms-external": true, - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "An error response from the Batch AI service." - } - }, - "description": "An error response from the Batch AI service." - }, - "CloudErrorBody": { - "x-ms-external": true, - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "description": "A list of additional details about the error." - } - }, - "description": "An error response from the Batch AI service." - }, - "BatchAIError": { - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/NameValuePair" - }, - "description": "A list of additional details about the error." - } - }, - "description": "An error response from the Batch AI service." - }, - "Operation": { - "title": "A REST API operation", - "description": "Details of a REST API operation", - "type": "object", - "properties": { - "name": { - "title": "The operation name.", - "description": "This is of the format {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "description": "The object that describes the operation.", - "properties": { - "provider": { - "title": "Friendly name of the resource provider.", - "type": "string" - }, - "operation": { - "title": "The operation type.", - "description": "For example: read, write, delete, or listKeys/action", - "type": "string" - }, - "resource": { - "title": "The resource type on which the operation is performed.", - "type": "string" - }, - "description": { - "title": "The friendly name of the operation", - "type": "string" - } - } - }, - "origin": { - "title": "The intended executor of the operation.", - "type": "string" - }, - "properties": { - "x-ms-client-flatten": true, - "title": "Properties of the operation.", - "type": "object" - } - } - }, - "OperationListResult": { - "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", - "description": "Contains the list of all operations supported by BatchAI resource provider", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "title": "The list of operations supported by the resource provider." - }, - "nextLink": { - "type": "string", - "title": "The URL to get the next set of operation list results if there are any." - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The subscriptionID for the Azure user." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "Name of the resource group to which the resource belongs.", - "required": true, - "x-ms-parameter-location": "method", - "type": "string", - "pattern": "^[-\\w\\._]+$" - }, - "ClusterNameParameter": { - "name": "clusterName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "JobNameParameter": { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the job within the specified resource group. Job names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "FileServerNameParameter": { - "name": "fileServerName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the file server within the specified resource group. File server names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Specifies the version of API used for this request." - }, - "SelectParameter": { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "An OData $select clause. Used to select the properties to be returned in the GET response.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "FilterParameter": { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "An OData $filter clause. Used to filter results that are returned in the GET response.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "MaxResultsParameter": { - "name": "maxresults", - "x-ms-client-name": "maxResults", - "default": 1000, - "minimum": 1, - "maximum": 1000, - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method", - "description": "The maximum number of items to return in the response. A maximum of 1000 files can be returned.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "OutputDirectoryIdParameter": { - "name": "outputdirectoryid", - "in": "query", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "DownloadLinkExpiryParameter": { - "name": "linkexpiryinminutes", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 5, - "maximum": 600, - "default": 60, - "x-ms-parameter-location": "method", - "description": "The number of minutes after which the download link will expire.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "Directory": { - "name": "directory", - "in": "query", - "default": ".", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The path to the directory.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ClusterListRemoteLoginInfo.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ClusterListRemoteLoginInfo.json deleted file mode 100644 index 82af47f24759..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ClusterListRemoteLoginInfo.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "nodeId": "tvm-3601533753_1-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50000 - }, - { - "nodeId": "tvm-3601533753_2-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50001 - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteCluster.json deleted file mode 100644 index abeac1c492b5..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteCluster.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-03-01", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteFileServer.json deleted file mode 100644 index 1ac3d44eebb7..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteFileServer.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "fileServerName": "demo_nfs", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-03-01", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteJob.json deleted file mode 100644 index d7e75b4c5b80..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/DeleteJob.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-03-01", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetCluster.json deleted file mode 100644 index b8f834cbdf8c..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetCluster.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T21:50:02.377Z", - "allocationStateTransitionTime": "2017-09-27T21:50:04.521Z", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ], - "fileServers": [ - { - "fileServer": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b" - }, - "relativeMountPath": "nfs", - "mountOptions": "rw" - } - ] - } - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetFileServer.json deleted file mode 100644 index ffc3ca9e94c5..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetFileServer.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "fileServerName": "demo_nfs", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", - "name": "fileservercedd134b", - "type": "Microsoft.BatchAI/FileServers", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4", - "fileServerType": "nfs" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetJob.json deleted file mode 100644 index 6281e1649656..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/GetJob.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/jobs/demo_job", - "name": "job", - "type": "Microsoft.BatchAI/Jobs", - "properties": { - "priority": 0, - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "jobOutputDirectoryPathSegment": "00000000-0000-0000-0000-000000000000/demo_resource_group/jobs/demo_job/00000000-0000-0000-0000-000000000000", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files", - "type": "custom", - "createNew": true - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/JobListRemoteLoginInfo.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/JobListRemoteLoginInfo.json deleted file mode 100644 index 67825475ed81..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/JobListRemoteLoginInfo.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "nodeId": "tvm-3601533753_1-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50000 - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListCluster.json deleted file mode 100644 index 67401ac4bcf3..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListCluster.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T22:28:07.645Z", - "allocationStateTransitionTime": "2017-09-27T22:28:08.998Z", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListClusterByResourceGroup.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListClusterByResourceGroup.json deleted file mode 100644 index acded1f180c8..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListClusterByResourceGroup.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T22:28:07.645Z", - "allocationStateTransitionTime": "2017-09-27T22:28:08.998Z", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListFileServer.json deleted file mode 100644 index 6f30672681f6..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListFileServer.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", - "name": "fileservercedd134b", - "type": "Microsoft.BatchAI/FileServers", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4", - "fileServerType": "nfs" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListFileServerByResourceGroup.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListFileServerByResourceGroup.json deleted file mode 100644 index f55e77a9ba96..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListFileServerByResourceGroup.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", - "name": "fileservercedd134b", - "type": "Microsoft.BatchAI/FileServers", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4", - "fileServerType": "nfs" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListJob.json deleted file mode 100644 index aabab623bf5b..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListJob.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/jobs/job", - "name": "job", - "type": "Microsoft.BatchAI/Jobs", - "properties": { - "priority": 0, - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files", - "type": "custom", - "createNew": true - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListJobByResourceGroup.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListJobByResourceGroup.json deleted file mode 100644 index f6af04715932..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListJobByResourceGroup.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/jobs/job", - "name": "job", - "type": "Microsoft.BatchAI/Jobs", - "properties": { - "priority": 0, - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files", - "type": "custom", - "createNew": true - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListOutputFiles.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListOutputFiles.json deleted file mode 100644 index 1ca937d3da47..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListOutputFiles.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "outputdirectoryid": "stdouterr", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stderr-job_prep.txt", - "isDirectory": false, - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/host_prep_stderr.txt?sv=2016-05-31&sr=f&sig=CNPJmjDQT9Anld9%2FdnQ52ZBpfOff2el8r4el6J%2BnpJE%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 0 - } - }, - { - "name": "stdout-job_prep.txt", - "isDirectory": false, - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/host_prep_stdout.txt?sv=2016-05-31&sr=f&sig=yK%2F5acWSTdcmBZGGL9%2F3IqeZ7N%2B1sRXfwB%2FaCkoRS%2Bc%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 720 - } - }, - { - "name": "stderr.txt", - "isDirectory": false, - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/stderr.txt?sv=2016-05-31&sr=f&sig=TdvHhdQjvWWA0Z7aPb0oZpPgGbBPOyDarNXWHFnRS3c%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 0 - } - }, - { - "name": "stdout.txt", - "isDirectory": false, - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/stdout.txt?sv=2016-05-31&sr=f&sig=nyydEjNnYpQfovknJc%2B5G%2F05g0IV4acWKlfkM35lh00%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 32 - } - }, - { - "name": "counters", - "isDirectory": true - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListUsages.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListUsages.json deleted file mode 100644 index 9de24fc8f343..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/ListUsages.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "location": "eastus", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "unit": "Count", - "currentValue": 51, - "limit": 250, - "name": { - "value": "Number of Active Jobs", - "localizedValue": "Number of Active Jobs" - } - }, - { - "unit": "Count", - "currentValue": 0, - "limit": 250, - "name": { - "value": "Number of Clusters", - "localizedValue": "Number of Clusters" - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/OperationList.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/OperationList.json deleted file mode 100644 index 6c3b8dbf3dc0..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/OperationList.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.BatchAI/clusters/read", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters", - "operation": "List or get Batch AI clusters", - "description": "Lists Batch AI clusters or gets the properties of a Batch AI cluster" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/clusters/write", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters", - "operation": "Create or update Batch AI cluster", - "description": "Creates a new Batch AI cluster or updates an existing Batch AI cluster" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/clusters/delete", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters", - "operation": "Delete Batch AI cluster", - "description": "Deletes a Batch AI cluster" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/clusters/listRemoteLoginInformation", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters", - "operation": "List Batch AI cluster remote-login information", - "description": "Lists remote-login information for a Batch AI cluster" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/read", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "List or get Batch AI jobs", - "description": "Lists Batch AI jobs or gets the properties of a Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/write", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "Create or update Batch AI job", - "description": "Creates a new Batch AI job or updates an existing Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/delete", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "Delete Batch AI job", - "description": "Deletes a Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/terminate/action", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "Terminate Batch AI job", - "description": "Terminates a Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/jobs/listRemoteLoginInformation", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs", - "operation": "List Batch AI job remote-login information", - "description": "Lists remote-login information for a Batch AI job" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/fileservers/read", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Fileservers", - "operation": "List or get Batch AI fileservers", - "description": "Lists Batch AI fileservers or gets the properties of a Batch AI fileserver" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/fileservers/write", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Fileservers", - "operation": "Create or update Batch AI fileserver", - "description": "Creates a new Batch AI fileserver or updates an existing Batch AI fileserver" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.BatchAI/fileservers/delete", - "display": { - "provider": "Microsoft Batch AI", - "resource": "Batch AI Fileservers", - "operation": "Delete Batch AI filserver", - "description": "Deletes a Batch AI fileserver" - }, - "origin": "user,system" - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PatchCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PatchCluster.json deleted file mode 100644 index 10671d95be32..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PatchCluster.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01", - "parameters": { - "properties": { - "scaleSettings": { - "autoScale": { - "minimumNodeCount": 0, - "maximumNodeCount": 10 - } - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "steady", - "creationTime": "2017-09-27T21:43:55.215Z", - "allocationStateTransitionTime": "2017-09-27T21:43:57.664Z", - "provisioningStateTransitionTime": "2017-09-27T21:43:56.238Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "autoScale": { - "minimumNodeCount": 0, - "maximumNodeCount": 10, - "initialNodeCount": 0 - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutCluster.json deleted file mode 100644 index 8f4bbfcb6778..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutCluster.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01", - "parameters": { - "location": "eastus", - "properties": { - "scaleSettings": { - "manual": { - "nodeDeallocationOption": "requeue", - "targetNodeCount": 1 - } - }, - "userAccountSettings": { - "adminUserPassword": "admin_user_password", - "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1yc...", - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "fileServers": [ - { - "fileServer": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b" - }, - "mountOptions": "rw", - "relativeMountPath": "nfs" - } - ], - "azureFileShares": [ - { - "relativeMountPath": "azfiles", - "directoryMode": "0777", - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "fileMode": "0777", - "credentials": { - "accountKey": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==" - } - } - ] - } - }, - "vmPriority": "dedicated", - "vmSize": "STANDARD_NC6" - } - } - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-03-01", - "Retry-After": 15 - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T21:50:02.377Z", - "allocationStateTransitionTime": "2017-09-27T21:50:04.521Z", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ], - "fileServers": [ - { - "fileServer": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b" - }, - "relativeMountPath": "nfs", - "mountOptions": "rw" - } - ] - } - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutFileServer.json deleted file mode 100644 index f319ee74030f..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutFileServer.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "fileServerName": "demo_nfs", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01", - "parameters": { - "location": "eastus", - "properties": { - "sshConfiguration": { - "userAccountSettings": { - "adminUserPassword": "admin_user_password", - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "storageAccountType": "Standard_LRS", - "diskCount": 2 - }, - "vmSize": "STANDARD_NC6" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", - "name": "demo_nfs", - "type": "Microsoft.BatchAI/FileServers", - "location": "eastus", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4", - "fileServerType": "nfs" - } - } - } - }, - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-03-01", - "Retry-After": 15 - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutJob.json deleted file mode 100644 index ac859e204b25..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutJob.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01", - "parameters": { - "location": "eastus", - "properties": { - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "priority": 0, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "outputDirectories": [ - { - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "type": "custom", - "id": "OUTPUTS", - "pathSuffix": "files", - "createNew": true - } - ] - } - } - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-03-01", - "Retry-After": 15 - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/jobs/demo_job", - "name": "demo_job", - "type": "Microsoft.BatchAI/Job", - "properties": { - "priority": 0, - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files", - "type": "custom", - "createNew": true - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/TerminateJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/TerminateJob.json deleted file mode 100644 index 7413be5ca3af..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/TerminateJob.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-03-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-03-01", - "Retry-After": 15 - } - }, - "200": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/BatchAI.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/BatchAI.json deleted file mode 100644 index 2d368c2751f1..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/BatchAI.json +++ /dev/null @@ -1,3859 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "BatchAI", - "description": "The Azure BatchAI Management API.", - "version": "2018-05-01", - "x-ms-code-generation-settings": { - "name": "BatchAIManagementClient" - } - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.BatchAI/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists available operations for the Microsoft.BatchAI provider.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Create or update cluster": { - "$ref": "./examples/ListOperation.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/locations/{location}/usages": { - "get": { - "tags": [ - "Usage" - ], - "operationId": "Usages_List", - "description": "Gets the current usage information as well as limits for Batch AI resources for given subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The location for which resource usage is queried.", - "pattern": "^[-\\w\\._]+$" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListUsagesResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Create or update cluster": { - "$ref": "./examples/ListUsages.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/workspaces": { - "get": { - "tags": [ - "Workspace" - ], - "operationId": "Workspaces_List", - "description": "Gets a list of Workspaces associated with the given subscription.", - "parameters": [ - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a formatted list of workspaces and their properties.", - "schema": { - "$ref": "#/definitions/WorkspaceListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List file servers": { - "$ref": "./examples/ListWorkspace.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces": { - "get": { - "tags": [ - "Workspace" - ], - "operationId": "Workspaces_ListByResourceGroup", - "description": "Gets a list of Workspaces within the specified resource group.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of workspaces within the resource group.", - "schema": { - "$ref": "#/definitions/WorkspaceListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List workspaces": { - "$ref": "./examples/ListWorkspaceByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}": { - "put": { - "tags": [ - "Workspace" - ], - "operationId": "Workspaces_Create", - "description": "Creates a Workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WorkspaceCreateParameters" - }, - "description": "Workspace creation parameters." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the workspace entity.", - "schema": { - "$ref": "#/definitions/Workspace" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a workspace": { - "$ref": "./examples/PutWorkspace.json" - } - } - }, - "patch": { - "tags": [ - "Workspace" - ], - "operationId": "Workspaces_Update", - "description": "Updates properties of a Workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WorkspaceUpdateParameters" - }, - "description": "Additional parameters for workspace update." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the Workspace entity.", - "schema": { - "$ref": "#/definitions/Workspace" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Update workspace tags": { - "$ref": "./examples/PatchWorkspace.json" - } - } - }, - "delete": { - "tags": [ - "Workspace" - ], - "operationId": "Workspaces_Delete", - "description": "Deletes a Workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a workspace": { - "$ref": "./examples/DeleteWorkspace.json" - } - } - }, - "get": { - "tags": [ - "Workspace" - ], - "operationId": "Workspaces_Get", - "description": "Gets information about a Workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains information about the Workspace.", - "schema": { - "$ref": "#/definitions/Workspace" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get a workspace information": { - "$ref": "./examples/GetWorkspace.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments": { - "get": { - "tags": [ - "Experiment" - ], - "operationId": "Experiments_ListByWorkspace", - "description": "Gets a list of Experiments within the specified Workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of experiments within the workspace.", - "schema": { - "$ref": "#/definitions/ExperimentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List experiments": { - "$ref": "./examples/ListExperimentByWorkspace.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}": { - "put": { - "tags": [ - "Experiment" - ], - "operationId": "Experiments_Create", - "description": "Creates an Experiment.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the experiment entity.", - "schema": { - "$ref": "#/definitions/Experiment" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create an experiment": { - "$ref": "./examples/PutExperiment.json" - } - } - }, - "delete": { - "tags": [ - "Experiment" - ], - "operationId": "Experiments_Delete", - "description": "Deletes an Experiment.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete an experiment": { - "$ref": "./examples/DeleteExperiment.json" - } - } - }, - "get": { - "tags": [ - "Experiment" - ], - "operationId": "Experiments_Get", - "description": "Gets information about an Experiment.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains information about the experiment.", - "schema": { - "$ref": "#/definitions/Experiment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get an experiment information": { - "$ref": "./examples/GetExperiment.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}/jobs": { - "get": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListByExperiment", - "description": "Gets a list of Jobs within the specified Experiment.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of ExperimentJob entities associated with the experiment.", - "schema": { - "$ref": "#/definitions/JobListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List jobs in an experiment": { - "$ref": "./examples/ListJobByExperiment.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}/jobs/{jobName}": { - "put": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Create", - "description": "Creates a Job in the given Experiment.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/JobCreateParameters" - }, - "description": "The parameters to provide for job creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the job entity.", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a job": { - "$ref": "./examples/PutJob.json" - } - } - }, - "delete": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Delete", - "description": "Deletes a Job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a job": { - "$ref": "./examples/DeleteJob.json" - } - } - }, - "get": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Get", - "description": "Gets information about a Job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the Job entity.", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get job's information": { - "$ref": "./examples/GetJob.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}/jobs/{jobName}/listOutputFiles": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListOutputFiles", - "description": "List all directories and files inside the given directory of the Job's output directory (if the output directory is on Azure File Share or Azure Storage Container).", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/OutputDirectoryIdParameter" - }, - { - "$ref": "#/parameters/Directory" - }, - { - "$ref": "#/parameters/DownloadLinkExpiryParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the list of files.", - "schema": { - "$ref": "#/definitions/FileListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List a job's files": { - "$ref": "./examples/ListOutputFiles.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}/jobs/{jobName}/listRemoteLoginInformation": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_ListRemoteLoginInformation", - "description": "Gets a list of currently existing nodes which were used for the Job execution. The returned information contains the node ID, its public IP and SSH port.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains compute node remote login information.", - "schema": { - "$ref": "#/definitions/RemoteLoginInformationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Get information about nodes which ran a job": { - "$ref": "./examples/JobListRemoteLoginInfo.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}/jobs/{jobName}/terminate": { - "post": { - "tags": [ - "Job" - ], - "operationId": "Jobs_Terminate", - "description": "Terminates a job.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ExperimentNameParameter" - }, - { - "$ref": "#/parameters/JobNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Terminate a job": { - "$ref": "./examples/TerminateJob.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}": { - "put": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_Create", - "description": "Creates a File Server in the given workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/FileServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/FileServerCreateParameters" - }, - "description": "The parameters to provide for File Server creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the file server entity.", - "schema": { - "$ref": "#/definitions/FileServer" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a file server": { - "$ref": "./examples/PutFileServer.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers": { - "get": { - "tags": [ - "FileServer" - ], - "operationId": "FileServers_ListByWorkspace", - "description": "Gets a list of File Servers associated with the specified workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of File Servers and their properties.", - "schema": { - "$ref": "#/definitions/FileServerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Get a list of file servers": { - "$ref": "./examples/ListFileServerByWorkspace.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}": { - "put": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Create", - "description": "Creates a Cluster in the given Workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterCreateParameters" - }, - "description": "The parameters to provide for the Cluster creation." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the Cluster entity.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a cluster": { - "$ref": "./examples/PutCluster.json" - } - } - }, - "patch": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Update", - "description": "Updates properties of a Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterUpdateParameters" - }, - "description": "Additional parameters for cluster update." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the Cluster entity.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Resize a cluster": { - "$ref": "./examples/PatchCluster.json" - } - } - }, - "delete": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Delete", - "description": "Deletes a Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful." - }, - "202": { - "description": "The operation will be completed asynchronously." - }, - "204": { - "description": "No content." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a cluster": { - "$ref": "./examples/DeleteCluster.json" - } - } - }, - "get": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_Get", - "description": "Gets information about a Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains information about the Cluster.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get a cluster's information": { - "$ref": "./examples/GetCluster.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}/listRemoteLoginInformation": { - "post": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_ListRemoteLoginInformation", - "description": "Get the IP address, port of all the compute nodes in the Cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the list of IP addresses.", - "schema": { - "$ref": "#/definitions/RemoteLoginInformationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Get remote login information for a cluster's nodes ": { - "$ref": "./examples/ClusterListRemoteLoginInfo.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters": { - "get": { - "tags": [ - "Cluster" - ], - "operationId": "Clusters_ListByWorkspace", - "description": "Gets information about Clusters associated with the given Workspace.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "#/parameters/MaxResultsParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of Clusters and their properties.", - "schema": { - "$ref": "#/definitions/ClusterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Get a list of cluster in a workspace": { - "$ref": "./examples/ListClusterByWorkspace.json" - } - } - } - } - }, - "definitions": { - "UsageName": { - "properties": { - "value": { - "readOnly": true, - "type": "string", - "description": "The name of the resource." - }, - "localizedValue": { - "readOnly": true, - "type": "string", - "description": "The localized name of the resource." - } - }, - "description": "The Usage Names." - }, - "Usage": { - "properties": { - "unit": { - "readOnly": true, - "type": "string", - "description": "An enum describing the unit of usage measurement.", - "enum": [ - "Count" - ], - "x-ms-enum": { - "name": "UsageUnit", - "modelAsString": true - } - }, - "currentValue": { - "readOnly": true, - "type": "integer", - "format": "int32", - "description": "The current usage of the resource." - }, - "limit": { - "readOnly": true, - "type": "integer", - "format": "int64", - "description": "The maximum permitted usage of the resource." - }, - "name": { - "readOnly": true, - "$ref": "#/definitions/UsageName", - "description": "The name of the type of usage." - } - }, - "description": "Describes Batch AI Resource Usage." - }, - "ListUsagesResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Usage" - }, - "description": "The list of compute resource usages." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information." - } - }, - "description": "The List Usages operation response." - }, - "FileServerBaseProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "VM size.", - "description": "The size of the virtual machine for the File Server. For information about available VM sizes from the Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux)." - }, - "sshConfiguration": { - "title": "SSH configuration.", - "description": "SSH configuration for the File Server node.", - "$ref": "#/definitions/SshConfiguration" - }, - "dataDisks": { - "title": "Data disks.", - "description": "Settings for the data disks which will be created for the File Server.", - "$ref": "#/definitions/DataDisks" - }, - "subnet": { - "title": "Subnet identifier.", - "description": "Identifier of an existing virtual network subnet to put the File Server in. If not provided, a new virtual network and subnet will be created.", - "$ref": "#/definitions/ResourceId" - } - }, - "required": [ - "vmSize", - "sshConfiguration", - "dataDisks" - ], - "description": "The properties of a file server." - }, - "FileServerListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/FileServer" - }, - "description": "The collection of File Servers." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the File Server List operation." - }, - "DataDisks": { - "properties": { - "diskSizeInGB": { - "type": "integer", - "format": "int32", - "readOnly": false, - "title": "Disk size in GB.", - "description": "Disk size in GB for the blank data disks." - }, - "cachingType": { - "type": "string", - "title": "Caching type.", - "description": "Caching type for the disks. Available values are none (default), readonly, readwrite. Caching type can be set only for VM sizes supporting premium storage.", - "default": "none", - "enum": [ - "none", - "readonly", - "readwrite" - ], - "x-ms-enum": { - "name": "CachingType", - "modelAsString": false - } - }, - "diskCount": { - "type": "integer", - "format": "int32", - "readOnly": false, - "title": "Number of data disks.", - "description": "Number of data disks attached to the File Server. If multiple disks attached, they will be configured in RAID level 0." - }, - "storageAccountType": { - "type": "string", - "readOnly": false, - "title": "Storage account type.", - "description": "Type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS. Premium storage account type can only be used with VM sizes supporting premium storage.", - "enum": [ - "Standard_LRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "modelAsString": true - } - } - }, - "required": [ - "diskSizeInGB", - "diskCount", - "storageAccountType" - ], - "description": "Data disks settings." - }, - "KeyVaultSecretReference": { - "properties": { - "sourceVault": { - "title": "Key Vault resource identifier.", - "description": "Fully qualified resource identifier of the Key Vault.", - "$ref": "#/definitions/ResourceId" - }, - "secretUrl": { - "type": "string", - "title": "Secret URL.", - "description": "The URL referencing a secret in the Key Vault." - } - }, - "required": [ - "sourceVault", - "secretUrl" - ], - "description": "Key Vault Secret reference." - }, - "MountSettings": { - "properties": { - "mountPoint": { - "type": "string", - "title": "Mount Point.", - "description": "Path where the data disks are mounted on the File Server." - }, - "fileServerPublicIP": { - "type": "string", - "title": "Public IP.", - "description": "Public IP address of the File Server which can be used to SSH to the node from outside of the subnet." - }, - "fileServerInternalIP": { - "type": "string", - "title": "Internal IP.", - "description": "Internal IP address of the File Server which can be used to access the File Server from within the subnet." - } - }, - "description": "File Server mount Information." - }, - "SshConfiguration": { - "properties": { - "publicIPsToAllow": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Allowed public IPs.", - "description": "List of source IP ranges to allow SSH connection from. The default value is '*' (all source IPs are allowed). Maximum number of IP ranges that can be specified is 400." - }, - "userAccountSettings": { - "title": "User account settings.", - "description": "Settings for administrator user account to be created on a node. The account can be used to establish SSH connection to the node.", - "$ref": "#/definitions/UserAccountSettings" - } - }, - "required": [ - "userAccountSettings" - ], - "description": "SSH configuration." - }, - "FileServerCreateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/FileServerBaseProperties", - "description": "The properties of the File Server.", - "x-ms-client-flatten": true - } - }, - "description": "File Server creation parameters." - }, - "FileServerProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "VM size.", - "description": "VM size of the File Server." - }, - "sshConfiguration": { - "title": "SSH configuration.", - "description": "SSH configuration for accessing the File Server node.", - "$ref": "#/definitions/SshConfiguration" - }, - "dataDisks": { - "title": "Data disks configuration.", - "description": "Information about disks attached to File Server VM.", - "$ref": "#/definitions/DataDisks" - }, - "subnet": { - "title": "Subnet.", - "description": "File Server virtual network subnet resource ID.", - "$ref": "#/definitions/ResourceId" - }, - "mountSettings": { - "title": "Mount settings.", - "description": "File Server mount settings.", - "readOnly": true, - "$ref": "#/definitions/MountSettings" - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Provisioning State Transition time.", - "description": "Time when the provisioning state was changed." - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Creation time.", - "description": "Time when the FileServer was created." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Provisioning state.", - "description": "Provisioning state of the File Server. Possible values: creating - The File Server is getting created; updating - The File Server creation has been accepted and it is getting updated; deleting - The user has requested that the File Server be deleted, and it is in the process of being deleted; failed - The File Server creation has failed with the specified error code. Details about the error code are specified in the message field; succeeded - The File Server creation has succeeded.", - "enum": [ - "creating", - "updating", - "deleting", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "FileServerProvisioningState", - "modelAsString": true - } - } - }, - "description": "File Server properties." - }, - "FileServer": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/FileServerProperties", - "description": "File Server properties." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "File Server information." - }, - "ClusterBaseProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "VM size.", - "description": "The size of the virtual machines in the cluster. All nodes in a cluster have the same VM size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace see Sizes for Virtual Machines (Linux). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)." - }, - "vmPriority": { - "type": "string", - "title": "VM priority.", - "description": "VM priority. Allowed values are: dedicated (default) and lowpriority.", - "default": "dedicated", - "enum": [ - "dedicated", - "lowpriority" - ], - "x-ms-enum": { - "name": "VmPriority", - "modelAsString": false - } - }, - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Scale settings.", - "description": "Scale settings for the cluster. Batch AI service supports manual and auto scale clusters." - }, - "virtualMachineConfiguration": { - "title": "VM configuration.", - "description": "OS image configuration for cluster nodes. All nodes in a cluster have the same OS image.", - "$ref": "#/definitions/VirtualMachineConfiguration" - }, - "nodeSetup": { - "title": "Node setup.", - "description": "Setup to be performed on each compute node in the cluster.", - "$ref": "#/definitions/NodeSetup" - }, - "userAccountSettings": { - "title": "User account settings.", - "description": "Settings for an administrator user account that will be created on each compute node in the cluster.", - "$ref": "#/definitions/UserAccountSettings" - }, - "subnet": { - "title": "Subnet.", - "description": "Existing virtual network subnet to put the cluster nodes in. Note, if a File Server mount configured in node setup, the File Server's subnet will be used automatically.", - "$ref": "#/definitions/ResourceId" - } - }, - "required": [ - "vmSize", - "userAccountSettings" - ], - "description": "The properties of a Cluster." - }, - "ClusterUpdateProperties": { - "properties": { - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Scale settings.", - "description": "Desired scale settings for the cluster. Batch AI service supports manual and auto scale clusters." - } - }, - "description": "The properties of a Cluster that need to be updated." - }, - "DeallocationOption": { - "type": "string", - "title": "Deallocation options.", - "description": "Actions which should be performed when compute nodes are removed from the cluster. Possible values are: requeue (default) - Terminate running jobs and requeue them so the jobs will run again. Remove compute nodes as soon as jobs have been terminated; terminate - Terminate running jobs. The jobs will not run again. Remove compute nodes as soon as jobs have been terminated. waitforjobcompletion - Allow currently running jobs to complete. Schedule no new jobs while waiting. Remove compute nodes when all jobs have completed.", - "default": "requeue", - "enum": [ - "requeue", - "terminate", - "waitforjobcompletion" - ], - "x-ms-enum": { - "name": "DeallocationOption", - "modelAsString": true - } - }, - "ScaleSettings": { - "properties": { - "manual": { - "$ref": "#/definitions/ManualScaleSettings", - "title": "Manual scale settings.", - "description": "Manual scale settings for the cluster." - }, - "autoScale": { - "$ref": "#/definitions/AutoScaleSettings", - "title": "Auto-scale settings.", - "description": "Auto-scale settings for the cluster." - } - }, - "description": "At least one of manual or autoScale settings must be specified. Only one of manual or autoScale settings can be specified. If autoScale settings are specified, the system automatically scales the cluster up and down (within the supplied limits) based on the pending jobs on the cluster." - }, - "AutoScaleSettings": { - "properties": { - "minimumNodeCount": { - "type": "integer", - "format": "int32", - "title": "Minimum node count.", - "description": "The minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request." - }, - "maximumNodeCount": { - "type": "integer", - "format": "int32", - "title": "Maximum node count.", - "description": "The maximum number of compute nodes the cluster can have." - }, - "initialNodeCount": { - "type": "integer", - "format": "int32", - "title": "Initial node count.", - "description": "The number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0.", - "default": 0 - } - }, - "required": [ - "minimumNodeCount", - "maximumNodeCount" - ], - "description": "Auto-scale settings for the cluster. The system automatically scales the cluster up and down (within minimumNodeCount and maximumNodeCount) based on the number of queued and running jobs assigned to the cluster." - }, - "ManualScaleSettings": { - "properties": { - "targetNodeCount": { - "type": "integer", - "format": "int32", - "title": "Target node count.", - "description": "The desired number of compute nodes in the Cluster. Default is 0.", - "default": 0 - }, - "nodeDeallocationOption": { - "title": "Node deallocation options.", - "description": "An action to be performed when the cluster size is decreasing. The default value is requeue.", - "default": "requeue", - "$ref": "#/definitions/DeallocationOption" - } - }, - "required": [ - "targetNodeCount" - ], - "description": "Manual scale settings for the cluster." - }, - "VirtualMachineConfiguration": { - "properties": { - "imageReference": { - "title": "Image reference.", - "description": "OS image reference for cluster nodes.", - "$ref": "#/definitions/ImageReference" - } - }, - "description": "VM configuration." - }, - "ImageReference": { - "properties": { - "publisher": { - "type": "string", - "title": "Publisher.", - "description": "Publisher of the image." - }, - "offer": { - "type": "string", - "title": "Offer.", - "description": "Offer of the image." - }, - "sku": { - "type": "string", - "title": "SKU.", - "description": "SKU of the image." - }, - "version": { - "type": "string", - "title": "Version.", - "description": "Version of the image." - }, - "virtualMachineImageId": { - "type": "string", - "title": "Custom VM image resource ID.", - "description": "The ARM resource identifier of the virtual machine image for the compute nodes. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}. The virtual machine image must be in the same region and subscription as the cluster. For information about the firewall settings for the Batch 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. Note, you need to provide publisher, offer and sku of the base OS image of which the custom image has been derived from." - } - }, - "required": [ - "publisher", - "offer", - "sku" - ], - "description": "The OS image reference." - }, - "NodeStateCounts": { - "properties": { - "idleNodeCount": { - "readOnly": true, - "type": "integer", - "format": "int32", - "title": "Idle node count.", - "description": "Number of compute nodes in idle state." - }, - "runningNodeCount": { - "readOnly": true, - "type": "integer", - "format": "int32", - "title": "Running node count.", - "description": "Number of compute nodes which are running jobs." - }, - "preparingNodeCount": { - "readOnly": true, - "type": "integer", - "format": "int32", - "title": "Preparing node count.", - "description": "Number of compute nodes which are being prepared." - }, - "unusableNodeCount": { - "readOnly": true, - "type": "integer", - "format": "int32", - "title": "Unusable node count.", - "description": "Number of compute nodes which are in unusable state." - }, - "leavingNodeCount": { - "readOnly": true, - "type": "integer", - "format": "int32", - "title": "Leaving node count.", - "description": "Number of compute nodes which are leaving the cluster." - } - }, - "description": "Counts of various compute node states on the cluster." - }, - "UserAccountSettings": { - "properties": { - "adminUserName": { - "type": "string", - "title": "User name.", - "description": "Name of the administrator user account which can be used to SSH to nodes." - }, - "adminUserSshPublicKey": { - "type": "string", - "title": "SSH public key.", - "description": "SSH public key of the administrator user account." - }, - "adminUserPassword": { - "type": "string", - "title": "Password.", - "description": "Password of the administrator user account." - } - }, - "required": [ - "adminUserName" - ], - "description": "Settings for user account that gets created on each on the nodes of a cluster." - }, - "PerformanceCountersSettings": { - "properties": { - "appInsightsReference": { - "title": "Azure Application Insights reference.", - "description": "Azure Application Insights information for performance counters reporting. If provided, Batch AI will upload node performance counters to the corresponding Azure Application Insights account.", - "$ref": "#/definitions/AppInsightsReference" - } - }, - "required": [ - "appInsightsReference" - ], - "description": "Performance counters reporting settings." - }, - "AppInsightsReference": { - "properties": { - "component": { - "title": "Component ID.", - "description": "Azure Application Insights component resource ID.", - "$ref": "#/definitions/ResourceId" - }, - "instrumentationKey": { - "type": "string", - "title": "Instrumentation Key.", - "description": "Value of the Azure Application Insights instrumentation key." - }, - "instrumentationKeySecretReference": { - "title": "Instrumentation key KeyVault Secret reference.", - "description": "KeyVault Store and Secret which contains Azure Application Insights instrumentation key. One of instrumentationKey or instrumentationKeySecretReference must be specified.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "required": [ - "component" - ], - "description": "Azure Application Insights information for performance counters reporting." - }, - "NodeSetup": { - "properties": { - "setupTask": { - "title": "Setup task.", - "description": "Setup task to run on cluster nodes when nodes got created or rebooted. The setup task code needs to be idempotent. Generally the setup task is used to download static data that is required for all jobs that run on the cluster VMs and/or to download/install software.", - "$ref": "#/definitions/SetupTask" - }, - "mountVolumes": { - "title": "Mount volumes.", - "description": "Mount volumes to be available to setup task and all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable.", - "$ref": "#/definitions/MountVolumes" - }, - "performanceCountersSettings": { - "title": "Performance counters settings.", - "description": "Settings for performance counters collecting and uploading.", - "$ref": "#/definitions/PerformanceCountersSettings" - } - }, - "description": "Node setup settings." - }, - "SetupTask": { - "properties": { - "commandLine": { - "type": "string", - "title": "Command line.", - "description": "The command line to be executed on each cluster's node after it being allocated or rebooted. The command is executed in a bash subshell as a root." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariable" - }, - "title": "Environment variables.", - "description": "A collection of user defined environment variables to be set for setup task." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariableWithSecretValue" - }, - "title": "Secrets.", - "description": "A collection of user defined environment variables with secret values to be set for the setup task. Server will never report values of these variables back." - }, - "stdOutErrPathPrefix": { - "type": "string", - "title": "Output path prefix.", - "description": "The prefix of a path where the Batch AI service will upload the stdout, stderr and execution log of the setup task." - }, - "stdOutErrPathSuffix": { - "type": "string", - "title": "Output path suffix.", - "description": "A path segment appended by Batch AI to stdOutErrPathPrefix to form a path where stdout, stderr and execution log of the setup task will be uploaded. Batch AI creates the setup task output directories under an unique path to avoid conflicts between different clusters. The full path can be obtained by concatenation of stdOutErrPathPrefix and stdOutErrPathSuffix.", - "readOnly": true - } - }, - "required": [ - "commandLine", - "stdOutErrPathPrefix" - ], - "description": "Specifies a setup task which can be used to customize the compute nodes of the cluster." - }, - "ClusterCreateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/ClusterBaseProperties", - "description": "The properties of the Cluster.", - "x-ms-client-flatten": true - } - }, - "description": "Cluster creation operation." - }, - "ClusterUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterUpdateProperties", - "description": "The properties of the Cluster." - } - }, - "description": "Cluster update parameters." - }, - "ClusterProperties": { - "properties": { - "vmSize": { - "type": "string", - "title": "VM size.", - "description": "The size of the virtual machines in the cluster. All nodes in a cluster have the same VM size." - }, - "vmPriority": { - "type": "string", - "title": "VM priority.", - "description": "VM priority of cluster nodes.", - "default": "dedicated", - "enum": [ - "dedicated", - "lowpriority" - ], - "x-ms-enum": { - "name": "VmPriority", - "modelAsString": false - } - }, - "scaleSettings": { - "$ref": "#/definitions/ScaleSettings", - "title": "Scale settings.", - "description": "Scale settings of the cluster." - }, - "virtualMachineConfiguration": { - "title": "VM configuration.", - "description": "Virtual machine configuration (OS image) of the compute nodes. All nodes in a cluster have the same OS image configuration.", - "$ref": "#/definitions/VirtualMachineConfiguration" - }, - "nodeSetup": { - "title": "Node setup.", - "description": "Setup (mount file systems, performance counters settings and custom setup task) to be performed on each compute node in the cluster.", - "$ref": "#/definitions/NodeSetup" - }, - "userAccountSettings": { - "title": "User account settings.", - "description": "Administrator user account settings which can be used to SSH to compute nodes.", - "$ref": "#/definitions/UserAccountSettings" - }, - "subnet": { - "title": "Subnet.", - "description": "Virtual network subnet resource ID the cluster nodes belong to.", - "$ref": "#/definitions/ResourceId" - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Creation time.", - "description": "The time when the cluster was created." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Provisioning state.", - "description": "Provisioning state of the cluster. Possible value are: creating - Specifies that the cluster is being created. succeeded - Specifies that the cluster has been created successfully. failed - Specifies that the cluster creation has failed. deleting - Specifies that the cluster is being deleted.", - "enum": [ - "creating", - "succeeded", - "failed", - "deleting" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Provisioning State Transition time.", - "description": "Time when the provisioning state was changed." - }, - "allocationState": { - "type": "string", - "readOnly": true, - "title": "Allocation state.", - "description": "Allocation state of the cluster. Possible values are: steady - Indicates that the cluster is not resizing. There are no changes to the number of compute nodes in the cluster in progress. A cluster enters this state when it is created and when no operations are being performed on the cluster to change the number of compute nodes. resizing - Indicates that the cluster is resizing; that is, compute nodes are being added to or removed from the cluster.", - "enum": [ - "steady", - "resizing" - ], - "x-ms-enum": { - "name": "AllocationState", - "modelAsString": true - } - }, - "allocationStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Allocation state transition time.", - "description": "The time at which the cluster entered its current allocation state." - }, - "errors": { - "readOnly": true, - "title": "Errors.", - "description": "Collection of errors encountered by various compute nodes during node setup.", - "type": "array", - "items": { - "$ref": "#/definitions/BatchAIError" - } - }, - "currentNodeCount": { - "type": "integer", - "readOnly": true, - "format": "int32", - "title": "Current node count.", - "description": "The number of compute nodes currently assigned to the cluster." - }, - "nodeStateCounts": { - "title": "Node state counts.", - "description": "Counts of various node states on the cluster.", - "readOnly": true, - "$ref": "#/definitions/NodeStateCounts" - } - }, - "description": "Cluster properties." - }, - "Cluster": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterProperties", - "description": "The properties associated with the Cluster." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Information about a Cluster." - }, - "ClusterListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Cluster" - }, - "description": "The collection of returned Clusters." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List Clusters operation." - }, - "JobBaseProperties": { - "properties": { - "schedulingPriority": { - "type": "string", - "default": "normal", - "enum": [ - "low", - "normal", - "high" - ], - "x-ms-enum": { - "name": "JobPriority", - "modelAsString": true - }, - "title": "Scheduling priority.", - "description": "Scheduling priority associated with the job. Possible values: low, normal, high." - }, - "cluster": { - "title": "Cluster.", - "description": "Resource ID of the cluster on which this job will run.", - "$ref": "#/definitions/ResourceId" - }, - "mountVolumes": { - "title": "Mount volumes.", - "description": "Information on mount volumes to be used by the job. These volumes will be mounted before the job execution and will be unmounted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.", - "$ref": "#/definitions/MountVolumes" - }, - "nodeCount": { - "type": "integer", - "format": "int32", - "title": "Node count.", - "description": "Number of compute nodes to run the job on. The job will be gang scheduled on that many compute nodes." - }, - "containerSettings": { - "title": "Container settings.", - "description": "Docker container settings for the job. If not provided, the job will run directly on the node.", - "$ref": "#/definitions/ContainerSettings" - }, - "cntkSettings": { - "title": "CNTK settings.", - "description": "Settings for CNTK (aka Microsoft Cognitive Toolkit) job.", - "$ref": "#/definitions/CNTKsettings" - }, - "pyTorchSettings": { - "title": "pyTorch settings.", - "description": "Settings for pyTorch job.", - "$ref": "#/definitions/PyTorchSettings" - }, - "tensorFlowSettings": { - "title": "TensorFlow settings.", - "description": "Settings for Tensor Flow job.", - "$ref": "#/definitions/TensorFlowSettings" - }, - "caffeSettings": { - "title": "Caffe settings.", - "description": "Settings for Caffe job.", - "$ref": "#/definitions/CaffeSettings" - }, - "caffe2Settings": { - "title": "Caffe2 settings.", - "description": "Settings for Caffe2 job.", - "$ref": "#/definitions/Caffe2Settings" - }, - "chainerSettings": { - "title": "Chainer settings.", - "description": "Settings for Chainer job.", - "$ref": "#/definitions/ChainerSettings" - }, - "customToolkitSettings": { - "title": "Custom tool kit job.", - "description": "Settings for custom tool kit job.", - "$ref": "#/definitions/CustomToolkitSettings" - }, - "customMpiSettings": { - "title": "Custom MPI settings.", - "description": "Settings for custom MPI job.", - "$ref": "#/definitions/CustomMpiSettings" - }, - "horovodSettings": { - "title": "Horovod settings.", - "description": "Settings for Horovod job.", - "$ref": "#/definitions/HorovodSettings" - }, - "jobPreparation": { - "title": "Job preparation.", - "description": "A command line to be executed on each node allocated for the job before tool kit is launched.", - "$ref": "#/definitions/JobPreparation" - }, - "stdOutErrPathPrefix": { - "type": "string", - "title": "Standard output path prefix.", - "description": "The path where the Batch AI service will store stdout, stderror and execution log of the job." - }, - "inputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDirectory" - }, - "title": "Input directories.", - "description": "A list of input directories for the job." - }, - "outputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputDirectory" - }, - "title": "Output directories.", - "description": "A list of output directories for the job." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariable" - }, - "title": "Environment variables.", - "description": "A list of user defined environment variables which will be setup for the job." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariableWithSecretValue" - }, - "title": "Secrets.", - "description": "A list of user defined environment variables with secret values which will be setup for the job. Server will never report values of these variables back." - }, - "constraints": { - "properties": { - "maxWallClockTime": { - "type": "string", - "format": "duration", - "title": "Max wall clock time.", - "description": "Max time the job can run. Default value: 1 week.", - "default": "7.00:00:00" - } - }, - "description": "Constraints associated with the Job." - } - }, - "required": [ - "cluster", - "nodeCount", - "stdOutErrPathPrefix" - ], - "description": "The properties of a Batch AI Job." - }, - "JobCreateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/JobBaseProperties", - "description": "The properties of the Job." - } - }, - "description": "Job creation parameters." - }, - "JobProperties": { - "properties": { - "schedulingPriority": { - "type": "string", - "default": "normal", - "enum": [ - "low", - "normal", - "high" - ], - "x-ms-enum": { - "name": "JobPriority", - "modelAsString": true - }, - "title": "Scheduling priority.", - "description": "Scheduling priority associated with the job." - }, - "cluster": { - "title": "Cluster.", - "description": "Resource ID of the cluster associated with the job.", - "$ref": "#/definitions/ResourceId" - }, - "mountVolumes": { - "title": "Mount volumes.", - "description": "Collection of mount volumes available to the job during execution. These volumes are mounted before the job execution and unmounted after the job completion. The volumes are mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.", - "$ref": "#/definitions/MountVolumes" - }, - "nodeCount": { - "type": "integer", - "format": "int32", - "title": "Number of compute nodes to run the job on.", - "description": "The job will be gang scheduled on that many compute nodes" - }, - "containerSettings": { - "title": "If provided the job will run in the specified container.", - "description": "If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM.", - "$ref": "#/definitions/ContainerSettings" - }, - "toolType": { - "title": "The toolkit type of this job.", - "description": "Possible values are: cntk, tensorflow, caffe, caffe2, chainer, pytorch, custom, custommpi, horovod.", - "$ref": "#/definitions/ToolType" - }, - "cntkSettings": { - "title": "Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job.", - "$ref": "#/definitions/CNTKsettings" - }, - "pyTorchSettings": { - "title": "Specifies the settings for pyTorch job.", - "$ref": "#/definitions/PyTorchSettings" - }, - "tensorFlowSettings": { - "title": "Specifies the settings for Tensor Flow job.", - "$ref": "#/definitions/TensorFlowSettings" - }, - "caffeSettings": { - "title": "Specifies the settings for Caffe job.", - "$ref": "#/definitions/CaffeSettings" - }, - "caffe2Settings": { - "title": "Specifies the settings for Caffe2 job.", - "$ref": "#/definitions/Caffe2Settings" - }, - "chainerSettings": { - "title": "Specifies the settings for Chainer job.", - "$ref": "#/definitions/ChainerSettings" - }, - "customToolkitSettings": { - "title": "Specifies the settings for custom tool kit job.", - "$ref": "#/definitions/CustomToolkitSettings" - }, - "customMpiSettings": { - "title": "Specifies the settings for custom MPI job.", - "$ref": "#/definitions/CustomMpiSettings" - }, - "horovodSettings": { - "title": "Specifies the settings for Horovod job.", - "$ref": "#/definitions/HorovodSettings" - }, - "jobPreparation": { - "title": "Specifies the actions to be performed before tool kit is launched.", - "description": "The specified actions will run on all the nodes that are part of the job", - "$ref": "#/definitions/JobPreparation" - }, - "jobOutputDirectoryPathSegment": { - "readOnly": true, - "type": "string", - "title": "Output directory path segment.", - "description": "A segment of job's output directories path created by Batch AI. Batch AI creates job's output directories under an unique path to avoid conflicts between jobs. This value contains a path segment generated by Batch AI to make the path unique and can be used to find the output directory on the node or mounted filesystem." - }, - "stdOutErrPathPrefix": { - "type": "string", - "title": "Standard output directory path prefix.", - "description": "The path where the Batch AI service stores stdout, stderror and execution log of the job." - }, - "inputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDirectory" - }, - "title": "Input directories.", - "description": "A list of input directories for the job." - }, - "outputDirectories": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputDirectory" - }, - "title": "Output directories.", - "description": "A list of output directories for the job." - }, - "environmentVariables": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariable" - }, - "title": "Environment variables.", - "description": "A collection of user defined environment variables to be setup for the job." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVariableWithSecretValue" - }, - "title": "Secrets.", - "description": "A collection of user defined environment variables with secret values to be setup for the job. Server will never report values of these variables back." - }, - "constraints": { - "properties": { - "maxWallClockTime": { - "type": "string", - "format": "duration", - "title": "Max wall clock time.", - "description": "Max time the job can run. Default value: 1 week.", - "default": "7.00:00:00" - } - }, - "description": "Constraints associated with the Job." - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Creation time.", - "description": "The creation time of the job." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Provisioning state.", - "description": "The provisioned state of the Batch AI job", - "enum": [ - "creating", - "deleting", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Provisioning state transition time.", - "description": "The time at which the job entered its current provisioning state." - }, - "executionState": { - "readOnly": true, - "type": "string", - "title": "Execution state.", - "description": "The current state of the job. Possible values are: queued - The job is queued and able to run. A job enters this state when it is created, or when it is awaiting a retry after a failed run. running - The job is running on a compute cluster. This includes job-level preparation such as downloading resource files or set up container specified on the job - it does not necessarily mean that the job command line has started executing. terminating - The job is terminated by the user, the terminate operation is in progress. succeeded - The job has completed running successfully and exited with exit code 0. failed - The job has finished unsuccessfully (failed with a non-zero exit code) and has exhausted its retry limit. A job is also marked as failed if an error occurred launching the job.", - "enum": [ - "queued", - "running", - "terminating", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "ExecutionState", - "modelAsString": true - } - }, - "executionStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Execution state transition time.", - "description": "The time at which the job entered its current execution state." - }, - "executionInfo": { - "properties": { - "startTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "title": "Start time.", - "description": "The time at which the job started running. 'Running' corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state." - }, - "endTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "title": "End time.", - "description": "The time at which the job completed. This property is only returned if the job is in completed state." - }, - "exitCode": { - "readOnly": true, - "type": "integer", - "format": "int32", - "title": "Exit code.", - "description": "The exit code of the job. This property is only returned if the job is in completed state." - }, - "errors": { - "readOnly": true, - "title": "Errors.", - "description": "A collection of errors encountered by the service during job execution.", - "type": "array", - "items": { - "$ref": "#/definitions/BatchAIError" - } - } - }, - "description": "Information about the execution of a job." - } - }, - "description": "Job properties." - }, - "Job": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/JobProperties", - "description": "The properties associated with the Job." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Information about a Job." - }, - "JobListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "The collection of jobs." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "RemoteLoginInformation": { - "properties": { - "nodeId": { - "readOnly": true, - "type": "string", - "title": "Node ID.", - "description": "ID of the compute node." - }, - "ipAddress": { - "readOnly": true, - "type": "string", - "title": "IP address.", - "description": "Public IP address of the compute node." - }, - "port": { - "readOnly": true, - "type": "number", - "format": "int32", - "title": "Port.", - "description": "SSH port number of the node." - } - }, - "description": "Login details to SSH to a compute node in cluster." - }, - "RemoteLoginInformationListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RemoteLoginInformation" - }, - "description": "The collection of returned remote login details." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "FileProperties": { - "properties": { - "lastModified": { - "readOnly": true, - "type": "string", - "format": "date-time", - "title": "Last modified time.", - "description": "The time at which the file was last modified." - }, - "contentLength": { - "readOnly": true, - "type": "integer", - "format": "int64", - "title": "Content length.", - "description": "The file of the size." - } - }, - "description": "File properties." - }, - "File": { - "properties": { - "name": { - "readOnly": true, - "type": "string", - "title": "Name.", - "description": "Name of the file." - }, - "fileType": { - "readOnly": true, - "type": "string", - "enum": [ - "file", - "directory" - ], - "x-ms-enum": { - "name": "FileType", - "modelAsString": true - }, - "title": "File type.", - "description": "Type of the file. Possible values are file and directory." - }, - "downloadUrl": { - "readOnly": true, - "type": "string", - "title": "Download URL.", - "description": "URL to download the corresponding file. The downloadUrl is not returned for directories." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/FileProperties", - "title": "Properties.", - "description": "The properties associated with the file. The properties are not returned for directories." - } - }, - "description": "Properties of the file or directory." - }, - "FileListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/File" - }, - "description": "The collection of returned job directories and files." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "ResourceId": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the resource" - } - }, - "required": [ - "id" - ], - "description": "Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.", - "x-ms-azure-resource": true - }, - "Resource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The ID of the resource" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the resource" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of the resource" - }, - "location": { - "readOnly": true, - "type": "string", - "description": "The location of the resource" - }, - "tags": { - "readOnly": true, - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The tags of the resource" - } - }, - "description": "A definition of an Azure resource.", - "x-ms-azure-resource": true - }, - "ProxyResource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The ID of the resource." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the resource." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of the resource." - } - }, - "description": "A definition of an Azure proxy resource.", - "x-ms-azure-resource": true - }, - "ToolType": { - "type": "string", - "title": "Toolkit type.", - "description": "The toolkit type of the job.", - "enum": [ - "cntk", - "tensorflow", - "caffe", - "caffe2", - "chainer", - "horovod", - "custommpi", - "custom" - ], - "x-ms-enum": { - "name": "ToolType", - "modelAsString": true - } - }, - "NameValuePair": { - "properties": { - "name": { - "type": "string", - "title": "Name.", - "description": "The name in the name-value pair." - }, - "value": { - "type": "string", - "title": "Value.", - "description": "The value in the name-value pair." - } - }, - "description": "Name-value pair." - }, - "EnvironmentVariable": { - "properties": { - "name": { - "type": "string", - "title": "Name.", - "description": "The name of the environment variable." - }, - "value": { - "type": "string", - "title": "Value.", - "description": "The value of the environment variable." - } - }, - "required": [ - "name", - "value" - ], - "description": "An environment variable definition." - }, - "EnvironmentVariableWithSecretValue": { - "properties": { - "name": { - "type": "string", - "title": "Name.", - "description": "The name of the environment variable to store the secret value." - }, - "value": { - "type": "string", - "title": "Value.", - "description": "The value of the environment variable. This value will never be reported back by Batch AI." - }, - "valueSecretReference": { - "title": "KeyVault secret reference.", - "description": "KeyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "required": [ - "name" - ], - "description": "An environment variable with secret value definition." - }, - "ImageSourceRegistry": { - "properties": { - "serverUrl": { - "type": "string", - "title": "Server URL.", - "description": "URL for image repository." - }, - "image": { - "type": "string", - "title": "Image.", - "description": "The name of the image in the image repository." - }, - "credentials": { - "title": "Credentials.", - "description": "Credentials to access the private docker repository.", - "$ref": "#/definitions/PrivateRegistryCredentials" - } - }, - "description": "Information about docker image for the job.", - "required": [ - "image" - ] - }, - "PrivateRegistryCredentials": { - "properties": { - "username": { - "type": "string", - "title": "User name.", - "description": "User name to login to the repository." - }, - "password": { - "type": "string", - "title": "Password.", - "description": "User password to login to the docker repository. One of password or passwordSecretReference must be specified." - }, - "passwordSecretReference": { - "title": "Password secret reference.", - "description": "KeyVault Secret storing the password. Users can store their secrets in Azure KeyVault and pass it to the Batch AI service to integrate with KeyVault. One of password or passwordSecretReference must be specified.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "description": "Credentials to access a container image in a private repository.", - "required": [ - "username" - ] - }, - "ContainerSettings": { - "properties": { - "imageSourceRegistry": { - "title": "Image source registry.", - "description": "Information about docker image and docker registry to download the container from.", - "$ref": "#/definitions/ImageSourceRegistry" - }, - "shmSize": { - "type": "string", - "title": "/dev/shm size.", - "description": "Size of /dev/shm. Please refer to docker documentation for supported argument formats." - } - }, - "description": "Docker container settings.", - "required": [ - "imageSourceRegistry" - ] - }, - "InputDirectory": { - "properties": { - "id": { - "type": "string", - "title": "ID.", - "description": "The ID for the input directory. The job can use AZ_BATCHAI_INPUT_ environment variable to find the directory path, where is the value of id attribute." - }, - "path": { - "type": "string", - "title": "Path.", - "description": "The path to the input directory." - } - }, - "description": "Input directory for the job.", - "required": [ - "id", - "path" - ] - }, - "OutputDirectory": { - "properties": { - "id": { - "type": "string", - "title": "ID.", - "description": "The ID of the output directory. The job can use AZ_BATCHAI_OUTPUT_ environment variable to find the directory path, where is the value of id attribute." - }, - "pathPrefix": { - "type": "string", - "title": "Path prefix.", - "description": "The prefix path where the output directory will be created. Note, this is an absolute path to prefix. E.g. $AZ_BATCHAI_MOUNT_ROOT/MyNFS/MyLogs. The full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix." - }, - "pathSuffix": { - "type": "string", - "title": "Path suffix.", - "description": "The suffix path where the output directory will be created. E.g. models. You can find the full path to the output directory by combining pathPrefix, jobOutputDirectoryPathSegment (reported by get job) and pathSuffix." - } - }, - "description": "Output directory for the job.", - "required": [ - "id", - "pathPrefix" - ] - }, - "AzureStorageCredentialsInfo": { - "properties": { - "accountKey": { - "type": "string", - "title": "Account key.", - "description": "Storage account key. One of accountKey or accountKeySecretReference must be specified." - }, - "accountKeySecretReference": { - "title": "Account key secret reference.", - "description": "Information about KeyVault secret storing the storage account key. One of accountKey or accountKeySecretReference must be specified.", - "$ref": "#/definitions/KeyVaultSecretReference" - } - }, - "description": "Azure storage account credentials." - }, - "AzureFileShareReference": { - "properties": { - "accountName": { - "type": "string", - "title": "Account name.", - "description": "Name of the Azure storage account." - }, - "azureFileUrl": { - "type": "string", - "title": "Azure File URL.", - "description": "URL to access the Azure File." - }, - "credentials": { - "title": "Credentials.", - "description": "Information about the Azure storage credentials.", - "$ref": "#/definitions/AzureStorageCredentialsInfo" - }, - "relativeMountPath": { - "type": "string", - "title": "Relative mount path.", - "description": "The relative path on the compute node where the Azure File share will be mounted. Note that all cluster level file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file shares will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT." - }, - "fileMode": { - "type": "string", - "title": "File mode.", - "description": "File mode for files on the mounted file share. Default value: 0777.", - "default": "0777" - }, - "directoryMode": { - "type": "string", - "title": "Directory mode.", - "description": "File mode for directories on the mounted file share. Default value: 0777.", - "default": "0777" - } - }, - "description": "Azure File Share mounting configuration.", - "required": [ - "accountName", - "azureFileUrl", - "credentials", - "relativeMountPath" - ] - }, - "AzureBlobFileSystemReference": { - "properties": { - "accountName": { - "type": "string", - "title": "Account name.", - "description": "Name of the Azure storage account." - }, - "containerName": { - "type": "string", - "title": "Container name.", - "description": "Name of the Azure Blob Storage container to mount on the cluster." - }, - "credentials": { - "title": "Credentials.", - "description": "Information about the Azure storage credentials.", - "$ref": "#/definitions/AzureStorageCredentialsInfo" - }, - "relativeMountPath": { - "type": "string", - "title": "Relative mount path.", - "description": "The relative path on the compute node where the Azure File container will be mounted. Note that all cluster level containers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level containers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT." - }, - "mountOptions": { - "type": "string", - "title": "Mount options.", - "description": "Mount options for mounting blobfuse file system." - } - }, - "description": "Azure Blob Storage Container mounting configuration.", - "required": [ - "accountName", - "containerName", - "credentials", - "relativeMountPath" - ] - }, - "FileServerReference": { - "properties": { - "fileServer": { - "title": "File server.", - "description": "Resource ID of the existing File Server to be mounted.", - "$ref": "#/definitions/ResourceId" - }, - "sourceDirectory": { - "type": "string", - "title": "Source directory.", - "description": "File Server directory that needs to be mounted. If this property is not specified, the entire File Server will be mounted." - }, - "relativeMountPath": { - "type": "string", - "title": "Relative mount path.", - "description": "The relative path on the compute node where the File Server will be mounted. Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT." - }, - "mountOptions": { - "type": "string", - "title": "Mount options.", - "description": "Mount options to be passed to mount command." - } - }, - "description": "File Server mounting configuration.", - "required": [ - "fileServer", - "relativeMountPath" - ] - }, - "UnmanagedFileSystemReference": { - "properties": { - "mountCommand": { - "title": "Mount command.", - "description": "Mount command line. Note, Batch AI will append mount path to the command on its own.", - "type": "string" - }, - "relativeMountPath": { - "type": "string", - "title": "Relative mount path.", - "description": "The relative path on the compute node where the unmanaged file system will be mounted. Note that all cluster level unmanaged file systems will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level unmanaged file systems will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT." - } - }, - "description": "Unmanaged file system mounting configuration.", - "required": [ - "mountCommand", - "relativeMountPath" - ] - }, - "MountVolumes": { - "properties": { - "azureFileShares": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureFileShareReference" - }, - "title": "Azure File Shares.", - "description": "A collection of Azure File Shares that are to be mounted to the cluster nodes." - }, - "azureBlobFileSystems": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureBlobFileSystemReference" - }, - "title": "Azure Blob file systems.", - "description": "A collection of Azure Blob Containers that are to be mounted to the cluster nodes." - }, - "fileServers": { - "type": "array", - "items": { - "$ref": "#/definitions/FileServerReference" - }, - "title": "File Servers.", - "description": "A collection of Batch AI File Servers that are to be mounted to the cluster nodes." - }, - "unmanagedFileSystems": { - "type": "array", - "items": { - "$ref": "#/definitions/UnmanagedFileSystemReference" - }, - "title": "Unmanaged file systems.", - "description": "A collection of unmanaged file systems that are to be mounted to the cluster nodes." - } - }, - "description": "Details of volumes to mount on the cluster." - }, - "CNTKsettings": { - "properties": { - "languageType": { - "type": "string", - "title": "Language type.", - "description": "The language to use for launching CNTK (aka Microsoft Cognitive Toolkit) job. Valid values are 'BrainScript' or 'Python'." - }, - "configFilePath": { - "type": "string", - "title": "Config file path.", - "description": "Specifies the path of the BrainScript config file. This property can be specified only if the languageType is 'BrainScript'." - }, - "pythonScriptFilePath": { - "type": "string", - "title": "Python script file path.", - "description": "Python script to execute. This property can be specified only if the languageType is 'Python'." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "Python interpreter path.", - "description": "The path to the Python interpreter. This property can be specified only if the languageType is 'Python'." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments.", - "description": "Command line arguments that need to be passed to the python script or cntk executable." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Process count.", - "description": "Number of processes to launch for the job execution. The default value for this property is equal to nodeCount property" - } - }, - "description": "CNTK (aka Microsoft Cognitive Toolkit) job settings." - }, - "CaffeSettings": { - "properties": { - "configFilePath": { - "type": "string", - "title": "Config file path.", - "description": "Path of the config file for the job. This property cannot be specified if pythonScriptFilePath is specified." - }, - "pythonScriptFilePath": { - "type": "string", - "title": "Python script file path.", - "description": "Python script to execute. This property cannot be specified if configFilePath is specified." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "Python interpreter path.", - "description": "The path to the Python interpreter. The property can be specified only if the pythonScriptFilePath is specified." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments.", - "description": "Command line arguments that need to be passed to the Caffe job." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Process count.", - "description": "Number of processes to launch for the job execution. The default value for this property is equal to nodeCount property" - } - }, - "description": "Caffe job settings." - }, - "Caffe2Settings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "Python script file path.", - "description": "The python script to execute." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "Python interpreter path.", - "description": "The path to the Python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments.", - "description": "Command line arguments that need to be passed to the python script." - } - }, - "description": "Caffe2 job settings.", - "required": [ - "pythonScriptFilePath" - ] - }, - "ChainerSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "Python script file path.", - "description": "The python script to execute." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "Python interpreter path.", - "description": "The path to the Python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments.", - "description": "Command line arguments that need to be passed to the python script." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Process count.", - "description": "Number of processes to launch for the job execution. The default value for this property is equal to nodeCount property" - } - }, - "description": "Chainer job settings.", - "required": [ - "pythonScriptFilePath" - ] - }, - "CustomToolkitSettings": { - "properties": { - "commandLine": { - "type": "string", - "title": "Command line.", - "description": "The command line to execute on the master node." - } - }, - "description": "Custom tool kit job settings." - }, - "CustomMpiSettings": { - "properties": { - "commandLine": { - "type": "string", - "title": "Command line.", - "description": "The command line to be executed by mpi runtime on each compute node." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Process count.", - "description": "Number of processes to launch for the job execution. The default value for this property is equal to nodeCount property" - } - }, - "description": "Custom MPI job settings.", - "required": [ - "commandLine" - ] - }, - "JobPreparation": { - "properties": { - "commandLine": { - "type": "string", - "title": "Command line.", - "description": "The command line to execute. If containerSettings is specified on the job, this commandLine will be executed in the same container as job. Otherwise it will be executed on the node." - } - }, - "description": "Job preparation settings.", - "required": [ - "commandLine" - ] - }, - "PyTorchSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "Python script file path.", - "description": "The python script to execute." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "Python interpreter path.", - "description": "The path to the Python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments.", - "description": "Command line arguments that need to be passed to the python script." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Process count.", - "description": "Number of processes to launch for the job execution. The default value for this property is equal to nodeCount property" - }, - "communicationBackend": { - "type": "string", - "title": "Communication backend.", - "description": "Type of the communication backend for distributed jobs. Valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs." - } - }, - "description": "pyTorch job settings.", - "required": [ - "pythonScriptFilePath" - ] - }, - "HorovodSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "Python script file path.", - "description": "The python script to execute." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "Python interpreter path.", - "description": "The path to the Python interpreter." - }, - "commandLineArgs": { - "type": "string", - "title": "Command line arguments.", - "description": "Command line arguments that need to be passed to the python script." - }, - "processCount": { - "type": "integer", - "format": "int32", - "title": "Process count.", - "description": "Number of processes to launch for the job execution. The default value for this property is equal to nodeCount property" - } - }, - "description": "Specifies the settings for Horovod job.", - "required": [ - "pythonScriptFilePath" - ] - }, - "TensorFlowSettings": { - "properties": { - "pythonScriptFilePath": { - "type": "string", - "title": "Python script file path.", - "description": "The python script to execute." - }, - "pythonInterpreterPath": { - "type": "string", - "title": "Python interpreter path.", - "description": "The path to the Python interpreter." - }, - "masterCommandLineArgs": { - "type": "string", - "title": "Master command line arguments.", - "description": "Command line arguments that need to be passed to the python script for the master task." - }, - "workerCommandLineArgs": { - "type": "string", - "title": "Worker command line arguments.", - "description": "Command line arguments that need to be passed to the python script for the worker task. Optional for single process jobs." - }, - "parameterServerCommandLineArgs": { - "type": "string", - "title": "Parameter server command line arguments.", - "description": "Command line arguments that need to be passed to the python script for the parameter server. Optional for single process jobs." - }, - "workerCount": { - "type": "integer", - "format": "int32", - "title": "Worker count.", - "description": "The number of worker tasks. If specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training." - }, - "parameterServerCount": { - "type": "integer", - "format": "int32", - "title": "Parameter server count.", - "description": "The number of parameter server tasks. If specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training. This property can be specified only for distributed TensorFlow training." - } - }, - "description": "TensorFlow job settings.", - "required": [ - "pythonScriptFilePath" - ] - }, - "CloudError": { - "x-ms-external": true, - "properties": { - "error": { - "readOnly": true, - "$ref": "#/definitions/CloudErrorBody", - "description": "An error response from the Batch AI service." - } - }, - "description": "An error response from the Batch AI service." - }, - "CloudErrorBody": { - "x-ms-external": true, - "properties": { - "code": { - "readOnly": true, - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "readOnly": true, - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "target": { - "readOnly": true, - "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." - }, - "details": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "description": "A list of additional details about the error." - } - }, - "description": "An error response from the Batch AI service." - }, - "BatchAIError": { - "properties": { - "code": { - "readOnly": true, - "type": "string", - "description": "An identifier of the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "readOnly": true, - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "details": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/NameValuePair" - }, - "description": "A list of additional details about the error." - } - }, - "description": "An error response from the Batch AI service." - }, - "Operation": { - "title": "A REST API operation.", - "description": "Details of a REST API operation", - "type": "object", - "properties": { - "name": { - "readOnly": true, - "title": "The operation name.", - "description": "This is of the format {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "description": "The object that describes the operation.", - "properties": { - "provider": { - "readOnly": true, - "title": "Friendly name of the resource provider.", - "type": "string" - }, - "operation": { - "readOnly": true, - "title": "The operation type.", - "description": "For example: read, write, delete, or listKeys/action", - "type": "string" - }, - "resource": { - "readOnly": true, - "title": "The resource type on which the operation is performed.", - "type": "string" - }, - "description": { - "readOnly": true, - "title": "The friendly name of the operation.", - "type": "string" - } - } - }, - "origin": { - "readOnly": true, - "title": "The intended executor of the operation.", - "type": "string" - }, - "properties": { - "x-ms-client-flatten": true, - "title": "Properties of the operation.", - "type": "object" - } - } - }, - "OperationListResult": { - "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", - "description": "Contains the list of all operations supported by BatchAI resource provider", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "title": "The list of operations supported by the resource provider." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "title": "The URL to get the next set of operation list results if there are any." - } - } - }, - "WorkspaceListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Workspace" - }, - "description": "The collection of workspaces." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "WorkspaceCreateParameters": { - "properties": { - "location": { - "type": "string", - "title": "Location.", - "description": "The region in which to create the Workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Tags.", - "description": "The user specified tags associated with the Workspace." - } - }, - "required": [ - "location" - ], - "description": "Workspace creation parameters." - }, - "WorkspaceUpdateParameters": { - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Tags.", - "description": "The user specified tags associated with the Workspace." - } - }, - "description": "Workspace update parameters." - }, - "WorkspaceProperties": { - "properties": { - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Creation time.", - "description": "Time when the Workspace was created." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Provisioning state.", - "description": "The provisioned state of the Workspace", - "enum": [ - "creating", - "deleting", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Provisioning state transition time.", - "description": "The time at which the workspace entered its current provisioning state." - } - }, - "description": "Workspace specific properties." - }, - "Workspace": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/WorkspaceProperties", - "description": "The properties associated with the workspace." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Batch AI Workspace information." - }, - "ExperimentListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Experiment" - }, - "description": "The collection of experiments." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "ExperimentProperties": { - "properties": { - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Creation time.", - "description": "Time when the Experiment was created." - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "x-nullable": false, - "title": "Provisioning state.", - "description": "The provisioned state of the experiment", - "enum": [ - "creating", - "deleting", - "succeeded", - "failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "provisioningStateTransitionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "title": "Provisioning state transition time.", - "description": "The time at which the experiment entered its current provisioning state." - } - }, - "description": "Experiment properties." - }, - "Experiment": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ExperimentProperties", - "description": "The properties associated with the experiment." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Experiment information." - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The subscriptionID for the Azure user." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "Name of the resource group to which the resource belongs.", - "required": true, - "x-ms-parameter-location": "method", - "type": "string", - "pattern": "^[-\\w\\._]+$" - }, - "ClusterNameParameter": { - "name": "clusterName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w_]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "JobNameParameter": { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w_]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the job within the specified resource group. Job names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "FileServerNameParameter": { - "name": "fileServerName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w_]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the file server within the specified resource group. File server names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Specifies the version of API used for this request." - }, - "MaxResultsParameter": { - "name": "maxresults", - "x-ms-client-name": "maxResults", - "default": 1000, - "minimum": 1, - "maximum": 1000, - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method", - "description": "The maximum number of items to return in the response. A maximum of 1000 files can be returned.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "OutputDirectoryIdParameter": { - "name": "outputdirectoryid", - "in": "query", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Id of the job output directory. This is the OutputDirectory-->id parameter that is given by the user during Create Job.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "DownloadLinkExpiryParameter": { - "name": "linkexpiryinminutes", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "minimum": 5, - "maximum": 600, - "default": 60, - "x-ms-parameter-location": "method", - "description": "The number of minutes after which the download link will expire.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "Directory": { - "name": "directory", - "in": "query", - "default": ".", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The path to the directory.", - "x-ms-parameter-grouping": { - "postfix": "Options" - } - }, - "WorkspaceNameParameter": { - "name": "workspaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w_]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - }, - "ExperimentNameParameter": { - "name": "experimentName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w_]+$", - "minLength": 1, - "maxLength": 64, - "x-ms-parameter-location": "method", - "description": "The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long." - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ClusterListRemoteLoginInfo.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ClusterListRemoteLoginInfo.json deleted file mode 100644 index 49bad0763fc4..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ClusterListRemoteLoginInfo.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "nodeId": "tvm-3601533753_1-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50000 - }, - { - "nodeId": "tvm-3601533753_2-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50001 - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteCluster.json deleted file mode 100644 index c69f44a389ec..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteCluster.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteExperiment.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteExperiment.json deleted file mode 100644 index 75532f285149..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteExperiment.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteJob.json deleted file mode 100644 index 1ecc8f2e6c98..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteJob.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteWorkspace.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteWorkspace.json deleted file mode 100644 index e10e644a8974..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/DeleteWorkspace.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetCluster.json deleted file mode 100644 index 2f6ebeb7d966..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetCluster.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T21:50:02.377Z", - "allocationStateTransitionTime": "2017-09-27T21:50:04.521Z", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetExperiment.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetExperiment.json deleted file mode 100644 index e7e3195ec79d..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetExperiment.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspace/demo_workspace/experiments/demo_experiment", - "name": "demo_experiment", - "type": "Microsoft.BatchAI/Experiments", - "properties": { - "creationTime": "2017-09-27T22:27:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z" - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetJob.json deleted file mode 100644 index 9cddc22e76d6..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetJob.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/experiments/demo_experiment/jobs/demo_job", - "name": "demo_job", - "type": "Microsoft.BatchAI/Jobs", - "properties": { - "schedulingPriority": "normal", - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "jobOutputDirectoryPathSegment": "00000000-0000-0000-0000-000000000000/demo_resource_group/workspaces/demo_workspace/experiments/demo_experiment/jobs/demo_job/00000000-0000-0000-0000-000000000000", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files" - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetWorkspace.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetWorkspace.json deleted file mode 100644 index 86c67ea2fdd9..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/GetWorkspace.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace", - "name": "demo_workspace", - "type": "Microsoft.BatchAI/Workspace", - "location": "eastus", - "properties": { - "creationTime": "2017-09-27T21:50:03.828Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z" - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/JobListRemoteLoginInfo.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/JobListRemoteLoginInfo.json deleted file mode 100644 index 13b7d5aafe00..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/JobListRemoteLoginInfo.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "nodeId": "tvm-3601533753_1-20170719t162906z", - "ipAddress": "13.84.190.124", - "port": 50000 - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListClusterByWorkspace.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListClusterByWorkspace.json deleted file mode 100644 index 86e7bef7611e..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListClusterByWorkspace.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspace/demo_workspace/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T22:28:07.645Z", - "allocationStateTransitionTime": "2017-09-27T22:28:08.998Z", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListExperimentByWorkspace.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListExperimentByWorkspace.json deleted file mode 100644 index d3e6990dc623..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListExperimentByWorkspace.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspace/demo_workspace/experiments/demo_experiment", - "name": "demo_experiment", - "type": "Microsoft.BatchAI/Experiments", - "properties": { - "creationTime": "2017-09-27T22:27:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z" - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListFileServerByWorkspace.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListFileServerByWorkspace.json deleted file mode 100644 index 7eb6060f6fbe..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListFileServerByWorkspace.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/fileservers/fileservercedd134b", - "name": "fileservercedd134b", - "type": "Microsoft.BatchAI/FileServers", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListJobByExperiment.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListJobByExperiment.json deleted file mode 100644 index bac6e5cda218..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListJobByExperiment.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experimnet", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/jobs/demo_job", - "name": "demo_job", - "type": "Microsoft.BatchAI/Jobs", - "properties": { - "schedulingPriority": "normal", - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "jobOutputDirectoryPathSegment": "00000000-0000-0000-0000-000000000000/demo_resource_group/workspaces/demo_workspace/experiments/demo_experiment/jobs/demo_job/00000000-0000-0000-0000-000000000000", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files" - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListOperation.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListOperation.json deleted file mode 100644 index 39c6ee54cbed..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListOperation.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "parameters": { - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "display": { - "description": "Lists Batch AI workspaces or gets the properties of a Batch AI workspace", - "operation": "List or get Batch AI workspaces", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Workspaces" - }, - "name": "Microsoft.BatchAI/workspaces/read", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Creates a new Batch AI workspace or updates an existing Batch AI workspace", - "operation": "Create or update Batch AI workspace", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Workspaces" - }, - "name": "Microsoft.BatchAI/workspaces/write", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Deletes a Batch AI workspace", - "operation": "Delete Batch AI workspace", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters" - }, - "name": "Microsoft.BatchAI/workspaces/delete", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Lists Batch AI experiments or gets the properties of a Batch AI experiment", - "operation": "List or get Batch AI experiements", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Experiments" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/read", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Creates a new Batch AI experiment or updates an existing Batch AI experiment", - "operation": "Create or update Batch AI experiement", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Experiments" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/write", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Deletes a Batch AI experiment", - "operation": "Delete Batch AI experiment", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Experiments" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/delete", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Lists Batch AI clusters or gets the properties of a Batch AI cluster", - "operation": "List or get Batch AI clusters", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters" - }, - "name": "Microsoft.BatchAI/clusters/read", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Lists Batch AI clusters or gets the properties of a Batch AI cluster", - "operation": "List or get Batch AI clusters", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters" - }, - "name": "Microsoft.BatchAI/workspaces/clusters/read", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Creates a new Batch AI cluster or updates an existing Batch AI cluster", - "operation": "Create or update Batch AI cluster", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters" - }, - "name": "Microsoft.BatchAI/workspaces/clusters/write", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Deletes a Batch AI cluster", - "operation": "Delete Batch AI cluster", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters" - }, - "name": "Microsoft.BatchAI/workspaces/clusters/delete", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Lists remote-login information for a Batch AI cluster", - "operation": "List Batch AI cluster remote-login information", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Clusters" - }, - "name": "Microsoft.BatchAI/workspaces/clusters/remoteLoginInformation/action", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Lists Batch AI jobs or gets the properties of a Batch AI job", - "operation": "List or get Batch AI jobs", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/jobs/read", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Creates a new Batch AI job or updates an existing Batch AI job", - "operation": "Create or update Batch AI job", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/jobs/write", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Deletes a Batch AI job", - "operation": "Delete Batch AI job", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/jobs/delete", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Terminates a Batch AI job", - "operation": "Terminate Batch AI job", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/jobs/terminate/action", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Lists remote-login information for a Batch AI job", - "operation": "List Batch AI job remote-login information", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/jobs/remoteLoginInformation/action", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Lists output files for a Batch AI job", - "operation": "List Batch AI job output files", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Jobs" - }, - "name": "Microsoft.BatchAI/workspaces/experiments/jobs/listoutputfiles/action", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Gets Batch AI usages of the specified subscription at the specified Azure region", - "operation": "Get Batch AI Usages", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Usages" - }, - "name": "Microsoft.BatchAI/locations/usages/read", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Registers the subscription for the Batch AI Resource Provider and enables the creation of Batch AI resources", - "operation": "Register the Batch AI Resource Provider", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Resource Provider" - }, - "name": "Microsoft.BatchAI/register/action", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Unregisters the subscription for the Batch AI Resource Provider preventing the creation of Batch AI resources", - "operation": "Unregister the Batch AI Resource Provider", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Resource Provider" - }, - "name": "Microsoft.BatchAI/unregister/action", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Gets Batch AI async operation result at the specified Azure region", - "operation": "Get Batch AI Opreation Result", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Operation Results" - }, - "name": "Microsoft.BatchAI/locations/operationresults/read", - "origin": "user,system", - "properties": null - }, - { - "display": { - "description": "Gets Batch AI async operation status at the specified Azure region", - "operation": "Get Batch AI Opreation Status", - "provider": "Microsoft Batch AI", - "resource": "Batch AI Operation Statuses" - }, - "name": "Microsoft.BatchAI/locations/operationstatuses/read", - "origin": "user,system", - "properties": null - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListOutputFiles.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListOutputFiles.json deleted file mode 100644 index 1a9676422d27..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListOutputFiles.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "jobName": "demo_job", - "outputdirectoryid": "stdouterr", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stderr-job_prep.txt", - "fileType": "file", - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/host_prep_stderr.txt?sv=2016-05-31&sr=f&sig=CNPJmjDQT9Anld9%2FdnQ52ZBpfOff2el8r4el6J%2BnpJE%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 0 - } - }, - { - "name": "stdout-job_prep.txt", - "fileType": "file", - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/host_prep_stdout.txt?sv=2016-05-31&sr=f&sig=yK%2F5acWSTdcmBZGGL9%2F3IqeZ7N%2B1sRXfwB%2FaCkoRS%2Bc%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 720 - } - }, - { - "name": "stderr.txt", - "fileType": "file", - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/stderr.txt?sv=2016-05-31&sr=f&sig=TdvHhdQjvWWA0Z7aPb0oZpPgGbBPOyDarNXWHFnRS3c%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 0 - } - }, - { - "name": "stdout.txt", - "fileType": "file", - "downloadUrl": "https://storage_account_name.file.core.windows.net/share/00000000-0000-0000-0000-000000000000/test_mgmt_batchai_jobs_test_job_preparation_hoste0e613b6/jobs/job/stdout.txt?sv=2016-05-31&sr=f&sig=nyydEjNnYpQfovknJc%2B5G%2F05g0IV4acWKlfkM35lh00%3D&se=2017-09-28T01%3A22%3A35Z&sp=rl", - "properties": { - "lastModified": "2017-09-28T00:22:19Z", - "contentLength": 32 - } - }, - { - "name": "counters", - "fileType": "directory" - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListUsages.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListUsages.json deleted file mode 100644 index 4852be27aa0a..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListUsages.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "location": "eastus", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "currentValue": 5, - "limit": 20, - "name": { - "localizedValue": "Clusters", - "value": "Clusters" - }, - "unit": "Count" - }, - { - "currentValue": 49, - "limit": 600, - "name": { - "localizedValue": "Total Cluster Dedicated Regional vCPUs", - "value": "Total Cluster Dedicated Regional vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 1, - "limit": 600, - "name": { - "localizedValue": "Standard D Family Cluster Dedicated vCPUs", - "value": "Standard D Family Cluster Dedicated vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 600, - "name": { - "localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs", - "value": "Standard Dv2 Family Cluster Dedicated vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 48, - "limit": 600, - "name": { - "localizedValue": "Standard NC Family Cluster Dedicated vCPUs", - "value": "Standard NC Family Cluster Dedicated vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "Standard NCv2 Family Cluster Dedicated vCPUs", - "value": "Standard NCv2 Family Cluster Dedicated vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "Standard NCv3 Family Cluster Dedicated vCPUs", - "value": "Standard NCv3 Family Cluster Dedicated vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "Standard ND Family Cluster Dedicated vCPUs", - "value": "Standard ND Family Cluster Dedicated vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 600, - "name": { - "localizedValue": "Standard NV Family Cluster Dedicated vCPUs", - "value": "Standard NV Family Cluster Dedicated vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 150, - "name": { - "localizedValue": "Total Cluster Low Priority Regional vCPUs", - "value": "Total Cluster LowPriority Regional vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 150, - "name": { - "localizedValue": "Standard D Family Cluster Low Priority vCPUs", - "value": "Standard D Family Cluster LowPriority vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 150, - "name": { - "localizedValue": "Standard Dv2 Family Cluster Low Priority vCPUs", - "value": "Standard Dv2 Family Cluster LowPriority vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 150, - "name": { - "localizedValue": "Standard NC Family Cluster Low Priority vCPUs", - "value": "Standard NC Family Cluster LowPriority vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "Standard NCv2 Family Cluster Low Priority vCPUs", - "value": "Standard NCv2 Family Cluster LowPriority vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "Standard NCv3 Family Cluster Low Priority vCPUs", - "value": "Standard NCv3 Family Cluster LowPriority vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "Standard ND Family Cluster Low Priority vCPUs", - "value": "Standard ND Family Cluster LowPriority vCPUs" - }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 150, - "name": { - "localizedValue": "Standard NV Family Cluster Low Priority vCPUs", - "value": "Standard NV Family Cluster LowPriority vCPUs" - }, - "unit": "Count" - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListWorkspace.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListWorkspace.json deleted file mode 100644 index 4c9d5ace6f2e..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListWorkspace.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspace/demo_workspace", - "name": "demo_workspace", - "type": "Microsoft.BatchAI/Workspaces", - "location": "eastus", - "properties": { - "creationTime": "2017-09-27T22:28:08.325Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z" - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListWorkspaceByResourceGroup.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListWorkspaceByResourceGroup.json deleted file mode 100644 index a2684681d8be..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/ListWorkspaceByResourceGroup.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "demo_resource_group", - "api-version": "2018-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspace/demo_workspace", - "name": "demo_workspace", - "type": "Microsoft.BatchAI/Workspaces", - "location": "eastus", - "properties": { - "creationTime": "2017-09-27T22:28:08.325Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T22:28:08.327Z" - } - } - ] - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PatchCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PatchCluster.json deleted file mode 100644 index 5d6802d5aabb..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PatchCluster.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01", - "parameters": { - "properties": { - "scaleSettings": { - "autoScale": { - "minimumNodeCount": 0, - "maximumNodeCount": 10 - } - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "properties": { - "provisioningState": "succeeded", - "allocationState": "steady", - "creationTime": "2017-09-27T21:43:55.215Z", - "allocationStateTransitionTime": "2017-09-27T21:43:57.664Z", - "provisioningStateTransitionTime": "2017-09-27T21:43:56.238Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "autoScale": { - "minimumNodeCount": 0, - "maximumNodeCount": 10, - "initialNodeCount": 0 - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PatchWorkspace.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PatchWorkspace.json deleted file mode 100644 index 7e5160fcf08f..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PatchWorkspace.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01", - "parameters": { - "tags": { - "key1": "value1" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace", - "name": "demo_worksapce", - "type": "Microsoft.BatchAI/Workspaces", - "location": "eastus", - "tags": { - "key1": "value1" - }, - "properties": { - "creationTime": "2017-09-27T21:50:03.828Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z" - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutCluster.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutCluster.json deleted file mode 100644 index 5bd81f4ee174..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutCluster.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "clusterName": "demo_cluster", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01", - "parameters": { - "properties": { - "scaleSettings": { - "manual": { - "nodeDeallocationOption": "requeue", - "targetNodeCount": 1 - } - }, - "userAccountSettings": { - "adminUserPassword": "admin_user_password", - "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1yc...", - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "relativeMountPath": "azfiles", - "directoryMode": "0777", - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "fileMode": "0777", - "credentials": { - "accountKey": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==" - } - } - ] - } - }, - "vmPriority": "dedicated", - "vmSize": "STANDARD_NC6" - } - } - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/clusters/demo_cluster", - "name": "demo_cluster", - "type": "Microsoft.BatchAI/Clusters", - "properties": { - "provisioningState": "succeeded", - "allocationState": "resizing", - "creationTime": "2017-09-27T21:50:02.377Z", - "allocationStateTransitionTime": "2017-09-27T21:50:04.521Z", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z", - "vmSize": "STANDARD_NC6", - "currentNodeCount": 0, - "nodeStateCounts": { - "runningNodeCount": 0, - "idleNodeCount": 0, - "unusableNodeCount": 0, - "preparingNodeCount": 0, - "leavingNodeCount": 0 - }, - "vmPriority": "dedicated", - "scaleSettings": { - "manual": { - "targetNodeCount": 1, - "nodeDeallocationOption": "requeue" - } - }, - "virtualMachineConfiguration": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "16.04-LTS", - "version": "latest" - } - }, - "userAccountSettings": { - "adminUserName": "admin_user_name" - }, - "nodeSetup": { - "mountVolumes": { - "azureFileShares": [ - { - "accountName": "storage_account_name", - "azureFileUrl": "https://storage_account_name.file.core.windows.net/azure_file_share_name", - "credentials": {}, - "relativeMountPath": "azfiles", - "fileMode": "0777", - "directoryMode": "0777" - } - ] - } - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutExperiment.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutExperiment.json deleted file mode 100644 index 3b4b6f8bfd59..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutExperiment.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01", - "parameters": { - "properties": {} - } - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/experiments/demo_experiment", - "name": "demo_experiment", - "type": "Microsoft.BatchAI/Experiments", - "properties": { - "creationTime": "2017-09-27T21:49:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z" - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutFileServer.json deleted file mode 100644 index e11fd4ec53b0..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutFileServer.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "fileServerName": "demo_nfs", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01", - "parameters": { - "properties": { - "sshConfiguration": { - "userAccountSettings": { - "adminUserPassword": "admin_user_password", - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "storageAccountType": "Standard_LRS", - "diskCount": 2 - }, - "vmSize": "STANDARD_NC6" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/fileservers/fileservercedd134b", - "name": "demo_nfs", - "type": "Microsoft.BatchAI/FileServers", - "properties": { - "provisioningState": "succeeded", - "creationTime": "2017-09-27T21:45:28.159Z", - "provisioningStateTransitionTime": "2017-09-27T21:49:25.416Z", - "vmSize": "STANDARD_NC6", - "sshConfiguration": { - "userAccountSettings": { - "adminUserName": "admin_user_name" - } - }, - "dataDisks": { - "diskSizeInGB": 10, - "cachingType": "none", - "diskCount": 2, - "storageAccountType": "Standard_LRS" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.Network/virtualNetworks/7feb1976-8c31-4f1f-bea2-86cb1839a7bavnet/subnets/Subnet-1" - }, - "mountSettings": { - "mountPoint": "/mnt/data", - "fileServerPublicIP": "13.90.141.66", - "fileServerInternalIP": "10.0.0.4" - } - } - } - }, - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutJob.json deleted file mode 100644 index 8d9d08d6cb20..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutJob.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01", - "parameters": { - "properties": { - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspace/demo_workspace/clusters/demo_cluster" - }, - "nodeCount": 1, - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "schedulingPriority": "normal", - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "outputDirectories": [ - { - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "id": "OUTPUTS", - "pathSuffix": "files" - } - ] - } - } - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/experiments/demo_experiment/jobs/demo_job", - "name": "demo_job", - "type": "Microsoft.BatchAI/Job", - "properties": { - "schedulingPriority": "normal", - "cluster": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/clusters/demo_cluster" - }, - "nodeCount": 1, - "containerSettings": { - "imageSourceRegistry": { - "image": "ubuntu" - } - }, - "toolType": "custom", - "customToolkitSettings": { - "commandLine": "echo hi | tee $AZ_BATCHAI_OUTPUT_OUTPUTS/hi.txt" - }, - "stdOutErrPathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles", - "jobOutputDirectoryPathSegment": "00000000-0000-0000-0000-000000000000/demo_resource_group/workspaces/demo_workspace/00000000-0000-0000-0000-000000000000/experiments/demo_experiment/00000000-0000-0000-0000-000000000000/jobs/demo_job/00000000-0000-0000-0000-000000000000", - "inputDirectories": [ - { - "id": "INPUT", - "path": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/input" - } - ], - "outputDirectories": [ - { - "id": "OUTPUTS", - "pathPrefix": "$AZ_BATCHAI_MOUNT_ROOT/azfiles/", - "pathSuffix": "files" - } - ], - "constraints": { - "maxWallClockTime": "P7D" - }, - "creationTime": "2017-09-27T23:36:52.611Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T23:36:53.701Z", - "executionState": "running", - "executionStateTransitionTime": "2017-09-27T23:36:56.395Z", - "executionInfo": { - "startTime": "2017-09-27T23:36:54.115Z" - } - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutWorkspace.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutWorkspace.json deleted file mode 100644 index 0fd0054e9ef5..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutWorkspace.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01", - "parameters": { - "location": "eastus" - } - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace", - "name": "demo_worksapce", - "type": "Microsoft.BatchAI/Workspaces", - "location": "eastus", - "properties": { - "creationTime": "2017-09-27T21:50:03.828Z", - "provisioningState": "succeeded", - "provisioningStateTransitionTime": "2017-09-27T21:50:03.828Z" - } - } - } - } -} diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/TerminateJob.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/TerminateJob.json deleted file mode 100644 index 717faf5754ed..000000000000 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/TerminateJob.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "demo_resource_group", - "workspaceName": "demo_workspace", - "experimentName": "demo_experiment", - "jobName": "demo_job", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-05-01" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI/locations/eastus/operationresults/7e69f371-db62-4183-bba0-5ee577d43bd7?api-version=2018-05-01", - "Retry-After": 15 - } - }, - "200": {} - } -} diff --git a/specification/batchai/resource-manager/readme.go.md b/specification/batchai/resource-manager/readme.go.md deleted file mode 100644 index b72de716abdf..000000000000 --- a/specification/batchai/resource-manager/readme.go.md +++ /dev/null @@ -1,46 +0,0 @@ -## Go - -These settings apply only when `--go` is specified on the command line. - -``` yaml $(go) -go: - license-header: MICROSOFT_MIT_NO_VERSION - clear-output-folder: true - namespace: batchai -``` - -### Go multi-api - -``` yaml $(go) && $(multiapi) -batch: - - tag: package-2017-09-preview - - tag: package-2018-03 - - tag: package-2018-05 -``` - -### Tag: package-2017-09-preview and go - -These settings apply only when `--tag=package-2017-09-preview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2017-09-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2017-09-01-preview/$(namespace) -``` - -### Tag: package-2018-03 and go - -These settings apply only when `--tag=package-2018-03 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2018-03' && $(go) -output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2018-03-01/$(namespace) -``` - -### Tag: package-2018-05 and go - -These settings apply only when `--tag=package-2018-05 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2018-05' && $(go) -output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2018-05-01/$(namespace) -``` \ No newline at end of file diff --git a/specification/batchai/resource-manager/readme.md b/specification/batchai/resource-manager/readme.md deleted file mode 100644 index 29975b5fbe5a..000000000000 --- a/specification/batchai/resource-manager/readme.md +++ /dev/null @@ -1,165 +0,0 @@ -# Batch AI SDK - -> see https://aka.ms/autorest - -This is the AutoRest configuration file for Batch AI SDK. - ---- -## Getting Started -To build the SDK for Batch AI, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: - -> `autorest` - -To see additional help and options, run: - -> `autorest --help` ---- - -## Configuration - - - -### Basic Information -These are the global settings for the Batch AI. - -``` yaml -openapi-type: arm -tag: package-2018-05 -``` - - -### Tag: package-2017-09-preview - -These settings apply only when `--tag=package-2017-09-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2017-09-preview' -input-file: -- Microsoft.BatchAI/preview/2017-09-01-preview/BatchAI.json -``` - -### Tag: package-2018-03 - -These settings apply only when `--tag=package-2018-03` is specified on the command line. - -``` yaml $(tag) == 'package-2018-03' -input-file: -- Microsoft.BatchAI/stable/2018-03-01/BatchAI.json -``` - -### Tag: package-2018-05 - -These settings apply only when `--tag=package-2018-05` is specified on the command line. - -``` yaml $(tag) == 'package-2018-05' -input-file: -- Microsoft.BatchAI/stable/2018-05-01/BatchAI.json -``` - ---- -# Code Generation - - -## Swagger to SDK - -This section describes what SDK should be generated by the automatic system. -This is not used by Autorest itself. - -``` yaml $(swagger-to-sdk) -swagger-to-sdk: - - repo: azure-sdk-for-net - - repo: azure-sdk-for-python-track2 - - repo: azure-sdk-for-java - - repo: azure-sdk-for-go - - repo: azure-sdk-for-js - - repo: azure-sdk-for-node - - repo: azure-resource-manager-schemas -``` - - -## CSharp Settings - -These settings apply only when `--csharp` is specified on the command line. -Please also specify `--csharp-sdks-folder=`. - -``` yaml $(csharp) -csharp: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - namespace: Microsoft.Azure.Management.BatchAI - payload-flattening-threshold: 1 - output-folder: $(csharp-sdks-folder)/batchai/Microsoft.Azure.Management.BatchAI/src/Generated - clear-output-folder: true -``` - -## Python - -See configuration in [readme.python.md](./readme.python.md) - -## Go - -See configuration in [readme.go.md](./readme.go.md) - -## Java - -These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.batchai -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-batchai -``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-09-preview - - tag: package-2018-03 - - tag: package-2018-05 -``` - -### Tag: package-2017-09-preview and java - -These settings apply only when `--tag=package-2017-09-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag)=='package-2017-09-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.batchai.v2017_09_01_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/batchai/mgmt-v2017_09_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-03 and java - -These settings apply only when `--tag=package-2018-03 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag)=='package-2018-03' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.batchai.v2018_03_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/batchai/mgmt-v2018_03_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-05 and java - -These settings apply only when `--tag=package-2018-05 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag)=='package-2018-05' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.batchai.v2018_05_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/batchai/mgmt-v2018_05_01 -regenerate-manager: true -generate-interface: true -``` - - - diff --git a/specification/batchai/resource-manager/readme.nodejs.md b/specification/batchai/resource-manager/readme.nodejs.md deleted file mode 100644 index 0b3cb3651787..000000000000 --- a/specification/batchai/resource-manager/readme.nodejs.md +++ /dev/null @@ -1,15 +0,0 @@ -## Node.js - -These settings apply only when `--nodejs` is specified on the command line. -Please also specify `--node-sdks-folder=`. - -``` yaml $(nodejs) -nodejs: - azure-arm: true - package-name: azure-arm-batchai - output-folder: $(node-sdks-folder)/lib/services/batchaiManagement - payload-flattening-threshold: 1 - generate-license-txt: true - generate-package-json: true - generate-readme-md: true -``` diff --git a/specification/batchai/resource-manager/readme.python.md b/specification/batchai/resource-manager/readme.python.md deleted file mode 100644 index ff5956c37e0d..000000000000 --- a/specification/batchai/resource-manager/readme.python.md +++ /dev/null @@ -1,23 +0,0 @@ -## Python - -These settings apply only when `--python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(track2) -azure-arm: true -license-header: MICROSOFT_MIT_NO_VERSION -package-name: azure-mgmt-batchai -no-namespace-folders: true -package-version: 1.0.0b1 -clear-output-folder: true -``` - -``` yaml $(python-mode) == 'update' && $(track2) -no-namespace-folders: true -output-folder: $(python-sdks-folder)/batchai/azure-mgmt-batchai/azure/mgmt/batchai -``` - -``` yaml $(python-mode) == 'create' && $(track2) -basic-setup-py: true -output-folder: $(python-sdks-folder)/batchai/azure-mgmt-batchai -``` diff --git a/specification/batchai/resource-manager/readme.typescript.md b/specification/batchai/resource-manager/readme.typescript.md deleted file mode 100644 index 7fe1eb8e1ad6..000000000000 --- a/specification/batchai/resource-manager/readme.typescript.md +++ /dev/null @@ -1,14 +0,0 @@ -## TypeScript - -These settings apply only when `--typescript` is specified on the command line. -Please also specify `--typescript-sdks-folder=`. - -``` yaml $(typescript) -typescript: - azure-arm: true - package-name: "@azure/arm-batchai" - output-folder: "$(typescript-sdks-folder)/sdk/batchai/arm-batchai" - clear-output-folder: true - payload-flattening-threshold: 1 - generate-metadata: true -```