diff --git a/custom-words.txt b/custom-words.txt index 1bbb2ea47e17..9be4abd0d9be 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -307,6 +307,8 @@ bangla baremetal baremetalinfrastructure baremetalstorage +bastionhost +bastionhosts batchai batchmanaged batchresponse @@ -2422,6 +2424,8 @@ sha shapefile shapefiles sharded +sharedimages +sharedgalleries sharedkey sharename sharepoint diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/DTL.json new file mode 100644 index 000000000000..b8911382be9f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/DTL.json @@ -0,0 +1,14082 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-09-01", + "title": "DevTestLabsClient", + "description": "The DevTest Labs Client." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "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.DevTestLab/operations": { + "get": { + "tags": [ + "ProviderOperations" + ], + "description": "Result of the request to list REST API operations", + "operationId": "ProviderOperations_List", + "parameters": [ + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProviderOperationResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ProviderOperations_List": { + "$ref": "./examples/ProviderOperations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs": { + "get": { + "tags": [ + "Labs" + ], + "description": "List labs in a subscription.", + "operationId": "Labs_ListBySubscription", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Lab", + "x-ms-examples": { + "Labs_ListBySubscription": { + "$ref": "./examples/Labs_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}": { + "get": { + "tags": [ + "Operations" + ], + "description": "Get operation.", + "operationId": "Operations_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/locationName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the operation.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "minLength": 1 + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationResult" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/OperationResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Operations_Get": { + "$ref": "./examples/Operations_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/schedules": { + "get": { + "tags": [ + "GlobalSchedules" + ], + "description": "List schedules in a subscription.", + "operationId": "GlobalSchedules_ListBySubscription", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ScheduleList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "GlobalSchedules_ListBySubscription": { + "$ref": "./examples/GlobalSchedules_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs": { + "get": { + "tags": [ + "Labs" + ], + "description": "List labs in a resource group.", + "operationId": "Labs_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Lab", + "x-ms-examples": { + "Labs_ListByResourceGroup": { + "$ref": "./examples/Labs_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources": { + "get": { + "tags": [ + "ArtifactSources" + ], + "description": "List artifact sources in a given lab.", + "operationId": "ArtifactSources_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArtifactSourceList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ArtifactSource", + "x-ms-examples": { + "ArtifactSources_List": { + "$ref": "./examples/ArtifactSources_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates": { + "get": { + "tags": [ + "ArmTemplates" + ], + "description": "List azure resource manager templates in a given artifact source.", + "operationId": "ArmTemplates_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/artifactSourceName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArmTemplateList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ArmTemplate", + "x-ms-examples": { + "ArmTemplates_List": { + "$ref": "./examples/ArmTemplates_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { + "get": { + "tags": [ + "ArmTemplates" + ], + "description": "Get azure resource manager template.", + "operationId": "ArmTemplates_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/artifactSourceName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the azure resource manager template.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArmTemplate" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ArmTemplates_Get": { + "$ref": "./examples/ArmTemplates_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts": { + "get": { + "tags": [ + "Artifacts" + ], + "description": "List artifacts in a given artifact source.", + "operationId": "Artifacts_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/artifactSourceName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=title)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArtifactList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Artifact", + "x-ms-examples": { + "Artifacts_List": { + "$ref": "./examples/Artifacts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}": { + "get": { + "tags": [ + "Artifacts" + ], + "description": "Get artifact.", + "operationId": "Artifacts_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/artifactSourceName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the artifact.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=title)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Artifacts_Get": { + "$ref": "./examples/Artifacts_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate": { + "post": { + "tags": [ + "Artifacts" + ], + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.", + "operationId": "Artifacts_GenerateArmTemplate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/artifactSourceName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the artifact.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "generateArmTemplateRequest", + "in": "body", + "description": "Parameters for generating an ARM template for deploying artifacts.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateArmTemplateRequest" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArmTemplateInfo" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Artifacts_GenerateArmTemplate": { + "$ref": "./examples/Artifacts_GenerateArmTemplate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}": { + "get": { + "tags": [ + "ArtifactSources" + ], + "description": "Get artifact source.", + "operationId": "ArtifactSources_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the artifact source.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=displayName)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ArtifactSources_Get": { + "$ref": "./examples/ArtifactSources_Get.json" + } + } + }, + "put": { + "tags": [ + "ArtifactSources" + ], + "description": "Create or replace an existing artifact source.", + "operationId": "ArtifactSources_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "artifactSource", + "in": "body", + "description": "Properties of an artifact source.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ArtifactSources_CreateOrUpdate": { + "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ArtifactSources" + ], + "description": "Delete artifact source.", + "operationId": "ArtifactSources_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ArtifactSources_Delete": { + "$ref": "./examples/ArtifactSources_Delete.json" + } + } + }, + "patch": { + "tags": [ + "ArtifactSources" + ], + "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", + "operationId": "ArtifactSources_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the artifact source.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "artifactSource", + "in": "body", + "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactSourceFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ArtifactSources_Update": { + "$ref": "./examples/ArtifactSources_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}": { + "get": { + "tags": [ + "Costs" + ], + "description": "Get cost.", + "operationId": "Costs_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the cost.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=labCostDetails)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabCost" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Costs_Get": { + "$ref": "./examples/Costs_Get.json" + } + } + }, + "put": { + "tags": [ + "Costs" + ], + "description": "Create or replace an existing cost.", + "operationId": "Costs_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the cost.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "labCost", + "in": "body", + "description": "A cost item.", + "required": true, + "schema": { + "$ref": "#/definitions/LabCost" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabCost" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/LabCost" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Costs_CreateOrUpdate": { + "$ref": "./examples/Costs_CreateOrUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages": { + "get": { + "tags": [ + "CustomImages" + ], + "description": "List custom images in a given lab.", + "operationId": "CustomImages_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=vm)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomImageList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/CustomImage", + "x-ms-examples": { + "CustomImages_List": { + "$ref": "./examples/CustomImages_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}": { + "get": { + "tags": [ + "CustomImages" + ], + "description": "Get custom image.", + "operationId": "CustomImages_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the custom image.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=vm)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomImage" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "CustomImages_Get": { + "$ref": "./examples/CustomImages_Get.json" + } + } + }, + "put": { + "tags": [ + "CustomImages" + ], + "description": "Create or replace an existing custom image. This operation can take a while to complete.", + "operationId": "CustomImages_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the custom image.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "customImage", + "in": "body", + "description": "A custom image.", + "required": true, + "schema": { + "$ref": "#/definitions/CustomImage" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomImage" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CustomImage" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "CustomImages_CreateOrUpdate": { + "$ref": "./examples/CustomImages_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "CustomImages" + ], + "description": "Delete custom image. This operation can take a while to complete.", + "operationId": "CustomImages_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the custom image.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "CustomImages_Delete": { + "$ref": "./examples/CustomImages_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "CustomImages" + ], + "description": "Allows modifying tags of custom images. All other properties will be ignored.", + "operationId": "CustomImages_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the custom image.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "customImage", + "in": "body", + "description": "Allows modifying tags of custom images. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/CustomImageFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomImage" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "CustomImages_Update": { + "$ref": "./examples/CustomImages_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas": { + "get": { + "tags": [ + "Formulas" + ], + "description": "List formulas in a given lab.", + "operationId": "Formulas_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FormulaList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Formula", + "x-ms-examples": { + "Formulas_List": { + "$ref": "./examples/Formulas_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}": { + "get": { + "tags": [ + "Formulas" + ], + "description": "Get formula.", + "operationId": "Formulas_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the formula.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Formula" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Formulas_Get": { + "$ref": "./examples/Formulas_Get.json" + } + } + }, + "put": { + "tags": [ + "Formulas" + ], + "description": "Create or replace an existing Formula. This operation can take a while to complete.", + "operationId": "Formulas_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the formula.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "formula", + "in": "body", + "description": "A formula for creating a VM, specifying an image base and other parameters", + "required": true, + "schema": { + "$ref": "#/definitions/Formula" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Formula" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Formula" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Formulas_CreateOrUpdate": { + "$ref": "./examples/Formulas_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Formulas" + ], + "description": "Delete formula.", + "operationId": "Formulas_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the formula.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Formulas_Delete": { + "$ref": "./examples/Formulas_Delete.json" + } + } + }, + "patch": { + "tags": [ + "Formulas" + ], + "description": "Allows modifying tags of formulas. All other properties will be ignored.", + "operationId": "Formulas_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the formula.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "formula", + "in": "body", + "description": "Allows modifying tags of formulas. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/FormulaFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Formula" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Formulas_Update": { + "$ref": "./examples/Formulas_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages": { + "get": { + "tags": [ + "GalleryImages" + ], + "description": "List gallery images in a given lab.", + "operationId": "GalleryImages_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=author)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/GalleryImage", + "x-ms-examples": { + "GalleryImages_List": { + "$ref": "./examples/GalleryImages_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages/{name}": { + "get": { + "tags": [ + "GalleryImages" + ], + "description": "Get gallery image.", + "operationId": "GalleryImages_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the gallery image.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GalleryImages_Get": { + "$ref": "./examples/GalleryImages_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels": { + "get": { + "tags": [ + "NotificationChannels" + ], + "description": "List notification channels in a given lab.", + "operationId": "NotificationChannels_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NotificationChannelList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/NotificationChannel", + "x-ms-examples": { + "NotificationChannels_List": { + "$ref": "./examples/NotificationChannels_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}": { + "get": { + "tags": [ + "NotificationChannels" + ], + "description": "Get notification channel.", + "operationId": "NotificationChannels_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the notification channel.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NotificationChannel" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NotificationChannels_Get": { + "$ref": "./examples/NotificationChannels_Get.json" + } + } + }, + "put": { + "tags": [ + "NotificationChannels" + ], + "description": "Create or replace an existing Notification Channel.", + "operationId": "NotificationChannels_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the notification channel.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "notificationChannel", + "in": "body", + "description": "A notification.", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationChannel" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NotificationChannel" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/NotificationChannel" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NotificationChannels_CreateOrUpdate": { + "$ref": "./examples/NotificationChannels_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "NotificationChannels" + ], + "description": "Delete notification channel.", + "operationId": "NotificationChannels_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the notification channel.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NotificationChannels_Delete": { + "$ref": "./examples/NotificationChannels_Delete.json" + } + } + }, + "patch": { + "tags": [ + "NotificationChannels" + ], + "description": "Allows modifying tags of notification channels. All other properties will be ignored.", + "operationId": "NotificationChannels_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the notification channel.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "notificationChannel", + "in": "body", + "description": "Allows modifying tags of notification channels. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationChannelFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NotificationChannel" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NotificationChannels_Update": { + "$ref": "./examples/NotificationChannels_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}/notify": { + "post": { + "tags": [ + "NotificationChannels" + ], + "description": "Send notification to provided channel.", + "operationId": "NotificationChannels_Notify", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the notification channel.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "notifyParameters", + "in": "body", + "description": "Properties for generating a Notification.", + "required": true, + "schema": { + "$ref": "#/definitions/NotifyParameters" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NotificationChannels_Notify": { + "$ref": "./examples/NotificationChannels_Notify.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets": { + "get": { + "tags": [ + "PolicySets" + ], + "description": "List policy sets in a given lab.", + "operationId": "PolicySets_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PolicySetList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/PolicySet", + "x-ms-examples": { + "PolicySets_List": { + "$ref": "./examples/PolicySets_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies": { + "post": { + "tags": [ + "PolicySets" + ], + "description": "Evaluates lab policy.", + "operationId": "PolicySets_EvaluatePolicies", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the policy set.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "evaluatePoliciesRequest", + "in": "body", + "description": "Request body for evaluating a policy set.", + "required": true, + "schema": { + "$ref": "#/definitions/EvaluatePoliciesRequest" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EvaluatePoliciesResponse" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "PolicySets_EvaluatePolicies": { + "$ref": "./examples/PolicySets_EvaluatePolicies.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies": { + "get": { + "tags": [ + "Policies" + ], + "description": "List policies in a given policy set.", + "operationId": "Policies_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/policySetName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PolicyList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Policy", + "x-ms-examples": { + "Policies_List": { + "$ref": "./examples/Policies_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}": { + "get": { + "tags": [ + "Policies" + ], + "description": "Get policy.", + "operationId": "Policies_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/policySetName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the policy.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=description)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Policy" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Policies_Get": { + "$ref": "./examples/Policies_Get.json" + } + } + }, + "put": { + "tags": [ + "Policies" + ], + "description": "Create or replace an existing policy.", + "operationId": "Policies_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/policySetName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the policy.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "policy", + "in": "body", + "description": "A Policy.", + "required": true, + "schema": { + "$ref": "#/definitions/Policy" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Policy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Policy" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Policies_CreateOrUpdate": { + "$ref": "./examples/Policies_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "Policies" + ], + "description": "Delete policy.", + "operationId": "Policies_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/policySetName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the policy.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Policies_Delete": { + "$ref": "./examples/Policies_Delete.json" + } + } + }, + "patch": { + "tags": [ + "Policies" + ], + "description": "Allows modifying tags of policies. All other properties will be ignored.", + "operationId": "Policies_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/policySetName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the policy.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "policy", + "in": "body", + "description": "Allows modifying tags of policies. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Policy" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Policies_Update": { + "$ref": "./examples/Policies_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules": { + "get": { + "tags": [ + "Schedules" + ], + "description": "List schedules in a given lab.", + "operationId": "Schedules_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ScheduleList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "Schedules_List": { + "$ref": "./examples/Schedules_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { + "get": { + "tags": [ + "Schedules" + ], + "description": "Get schedule.", + "operationId": "Schedules_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Schedules_Get": { + "$ref": "./examples/Schedules_Get.json" + } + } + }, + "put": { + "tags": [ + "Schedules" + ], + "description": "Create or replace an existing schedule.", + "operationId": "Schedules_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Schedules_CreateOrUpdate": { + "$ref": "./examples/Schedules_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "Schedules" + ], + "description": "Delete schedule.", + "operationId": "Schedules_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Schedules_Delete": { + "$ref": "./examples/Schedules_Delete.json" + } + } + }, + "patch": { + "tags": [ + "Schedules" + ], + "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "operationId": "Schedules_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "schedule", + "in": "body", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Schedules_Update": { + "$ref": "./examples/Schedules_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute": { + "post": { + "tags": [ + "Schedules" + ], + "description": "Execute a schedule. This operation can take a while to complete.", + "operationId": "Schedules_Execute", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Schedules_Execute": { + "$ref": "./examples/Schedules_Execute.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable": { + "post": { + "tags": [ + "Schedules" + ], + "description": "Lists all applicable schedules", + "operationId": "Schedules_ListApplicable", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ScheduleList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Schedules_ListApplicable": { + "$ref": "./examples/Schedules_ListApplicable.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/secrets": { + "get": { + "tags": [ + "LabSecrets" + ], + "description": "List lab secrets in a given lab.", + "operationId": "LabSecrets_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabSecretList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Secret", + "x-ms-examples": { + "LabSecrets_List": { + "$ref": "./examples/LabSecrets_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/secrets/{name}": { + "get": { + "tags": [ + "LabSecrets" + ], + "description": "Get lab secret.", + "operationId": "LabSecrets_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab secret.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabSecret" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "LabSecrets_Get": { + "$ref": "./examples/LabSecrets_Get.json" + } + } + }, + "put": { + "tags": [ + "LabSecrets" + ], + "description": "Create or replace an existing Lab Secret. This operation can take a while to complete.", + "operationId": "LabSecrets_CreateOrUpdate", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab secret.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "labSecret", + "in": "body", + "description": "A shared secret in a lab.", + "required": true, + "schema": { + "$ref": "#/definitions/LabSecret" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/LabSecret" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "LabSecrets_CreateOrUpdate": { + "$ref": "./examples/LabSecrets_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "LabSecrets" + ], + "description": "Delete lab secret. This operation can take a while to complete.", + "operationId": "LabSecrets_Delete", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab secret.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "LabSecrets_Delete": { + "$ref": "./examples/LabSecrets_Delete.json" + } + } + }, + "patch": { + "tags": [ + "LabSecrets" + ], + "description": "Allows modifying tags of lab secrets. All other properties will be ignored.", + "operationId": "LabSecrets_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab secret.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "secret", + "in": "body", + "description": "Allows modifying tags of lab secrets. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/SecretFragment" + } + } + ], + "responses": { + "201": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabSecret" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "LabSecrets_Update": { + "$ref": "./examples/LabSecrets_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners": { + "get": { + "tags": [ + "ServiceRunners" + ], + "description": "List service runners in a given lab.", + "operationId": "ServiceRunners_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceRunnerList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ServiceRunner", + "x-ms-examples": { + "ServiceRunners_List": { + "$ref": "./examples/ServiceRunners_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}": { + "get": { + "tags": [ + "ServiceRunners" + ], + "description": "Get service runner.", + "operationId": "ServiceRunners_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service runner.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceRunner" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceRunners_Get": { + "$ref": "./examples/ServiceRunners_Get.json" + } + } + }, + "put": { + "tags": [ + "ServiceRunners" + ], + "description": "Create or replace an existing Service runner. This operation can take a while to complete.", + "operationId": "ServiceRunners_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service runner.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "serviceRunner", + "in": "body", + "description": "A container for a managed identity to execute DevTest lab services.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceRunner" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceRunner" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ServiceRunner" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceRunners_CreateOrUpdate": { + "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "ServiceRunners" + ], + "description": "Delete service runner. This operation can take a while to complete.", + "operationId": "ServiceRunners_Delete", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service runner.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceRunners_Delete": { + "$ref": "./examples/ServiceRunners_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries": { + "get": { + "tags": [ + "SharedGalleries" + ], + "description": "List shared galleries in a given lab.", + "operationId": "SharedGalleries_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/SharedGallery", + "x-ms-examples": { + "SharedGalleries_List": { + "$ref": "./examples/SharedGalleries_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}": { + "get": { + "tags": [ + "SharedGalleries" + ], + "description": "Get shared gallery.", + "operationId": "SharedGalleries_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the shared gallery.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGallery" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "SharedGalleries_Get": { + "$ref": "./examples/SharedGalleries_Get.json" + } + } + }, + "put": { + "tags": [ + "SharedGalleries" + ], + "description": "Create or replace an existing Shared Gallery.", + "operationId": "SharedGalleries_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the shared gallery.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "sharedGallery", + "in": "body", + "description": "Properties of a shared gallery", + "required": true, + "schema": { + "$ref": "#/definitions/SharedGallery" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGallery" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SharedGallery" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "SharedGalleries_CreateOrUpdate": { + "$ref": "./examples/SharedGalleries_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "SharedGalleries" + ], + "description": "Delete shared gallery.", + "operationId": "SharedGalleries_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the shared gallery.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "SharedGalleries_Delete": { + "$ref": "./examples/SharedGalleries_Delete.json" + } + } + }, + "patch": { + "tags": [ + "SharedGalleries" + ], + "description": "Allows modifying tags of shared galleries. All other properties will be ignored.", + "operationId": "SharedGalleries_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the shared gallery.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "sharedGallery", + "in": "body", + "description": "Allows modifying tags of shared galleries. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/SharedGalleryFragment" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGallery" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "SharedGalleries_Update": { + "$ref": "./examples/SharedGalleries_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{sharedGalleryName}/sharedimages": { + "get": { + "tags": [ + "SharedImages" + ], + "description": "List shared images in a given shared gallery.", + "operationId": "SharedImages_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/sharedGalleryName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=versions)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedImageList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/SharedImage", + "x-ms-examples": { + "SharedImages_List": { + "$ref": "./examples/SharedImages_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{sharedGalleryName}/sharedimages/{name}": { + "get": { + "tags": [ + "SharedImages" + ], + "description": "Get shared image.", + "operationId": "SharedImages_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/sharedGalleryName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the shared image.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=versions)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedImage" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "SharedImages_Get": { + "$ref": "./examples/SharedImages_Get.json" + } + } + }, + "put": { + "tags": [ + "SharedImages" + ], + "description": "Create or replace an existing Shared Image.", + "operationId": "SharedImages_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/sharedGalleryName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the shared image.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "sharedImage", + "in": "body", + "description": "Properties of a shared image", + "required": true, + "schema": { + "$ref": "#/definitions/SharedImage" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedImage" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SharedImage" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "SharedImages_CreateOrUpdate": { + "$ref": "./examples/SharedImages_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "SharedImages" + ], + "description": "Delete shared image.", + "operationId": "SharedImages_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/sharedGalleryName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the shared image.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "SharedImages_Delete": { + "$ref": "./examples/SharedImages_Delete.json" + } + } + }, + "patch": { + "tags": [ + "SharedImages" + ], + "description": "Allows modifying tags of shared images. All other properties will be ignored.", + "operationId": "SharedImages_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/sharedGalleryName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the shared image.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "sharedImage", + "in": "body", + "description": "Allows modifying tags of shared images. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/SharedImageFragment" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedImage" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "SharedImages_Update": { + "$ref": "./examples/SharedImages_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users": { + "get": { + "tags": [ + "Users" + ], + "description": "List user profiles in a given lab.", + "operationId": "Users_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UserList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/User", + "x-ms-examples": { + "Users_List": { + "$ref": "./examples/Users_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}": { + "get": { + "tags": [ + "Users" + ], + "description": "Get user profile.", + "operationId": "Users_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=identity)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/User" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Users_Get": { + "$ref": "./examples/Users_Get.json" + } + } + }, + "put": { + "tags": [ + "Users" + ], + "description": "Create or replace an existing user profile. This operation can take a while to complete.", + "operationId": "Users_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "user", + "in": "body", + "description": "Profile of a lab user.", + "required": false, + "schema": { + "$ref": "#/definitions/User" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/User" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Users_CreateOrUpdate": { + "$ref": "./examples/Users_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Users" + ], + "description": "Delete user profile. This operation can take a while to complete.", + "operationId": "Users_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Users_Delete": { + "$ref": "./examples/Users_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Users" + ], + "description": "Allows modifying tags of user profiles. All other properties will be ignored.", + "operationId": "Users_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the user profile.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "user", + "in": "body", + "description": "Allows modifying tags of user profiles. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/UserFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/User" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Users_Update": { + "$ref": "./examples/Users_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks": { + "get": { + "tags": [ + "Disks" + ], + "description": "List disks in a given user profile.", + "operationId": "Disks_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiskList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Disk", + "x-ms-examples": { + "Disks_List": { + "$ref": "./examples/Disks_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}": { + "get": { + "tags": [ + "Disks" + ], + "description": "Get disk.", + "operationId": "Disks_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the disk.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=diskType)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Disk" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Disks_Get": { + "$ref": "./examples/Disks_Get.json" + } + } + }, + "put": { + "tags": [ + "Disks" + ], + "description": "Create or replace an existing disk. This operation can take a while to complete.", + "operationId": "Disks_CreateOrUpdate", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the disk.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "disk", + "in": "body", + "description": "A Disk.", + "required": true, + "schema": { + "$ref": "#/definitions/Disk" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Disk" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Disk" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Disks_CreateOrUpdate": { + "$ref": "./examples/Disks_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "Disks" + ], + "description": "Delete disk. This operation can take a while to complete.", + "operationId": "Disks_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the disk.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Disks_Delete": { + "$ref": "./examples/Disks_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Disks" + ], + "description": "Allows modifying tags of disks. All other properties will be ignored.", + "operationId": "Disks_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the disk.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "disk", + "in": "body", + "description": "Allows modifying tags of disks. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/DiskFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Disk" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Disks_Update": { + "$ref": "./examples/Disks_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/attach": { + "post": { + "tags": [ + "Disks" + ], + "description": "Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.", + "operationId": "Disks_Attach", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the disk.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "attachDiskProperties", + "in": "body", + "description": "Properties of the disk to attach.", + "required": true, + "schema": { + "$ref": "#/definitions/AttachDiskProperties" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Disks_Attach": { + "$ref": "./examples/Disks_Attach.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/detach": { + "post": { + "tags": [ + "Disks" + ], + "description": "Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.", + "operationId": "Disks_Detach", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the disk.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "detachDiskProperties", + "in": "body", + "description": "Properties of the disk to detach.", + "required": true, + "schema": { + "$ref": "#/definitions/DetachDiskProperties" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Disks_Detach": { + "$ref": "./examples/Disks_Detach.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments": { + "get": { + "tags": [ + "Environments" + ], + "description": "List environments in a given user profile.", + "operationId": "Environments_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DtlEnvironmentList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DtlEnvironment", + "x-ms-examples": { + "Environments_List": { + "$ref": "./examples/Environments_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}": { + "get": { + "tags": [ + "Environments" + ], + "description": "Get environment.", + "operationId": "Environments_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DtlEnvironment" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Environments_Get": { + "$ref": "./examples/Environments_Get.json" + } + } + }, + "put": { + "tags": [ + "Environments" + ], + "description": "Create or replace an existing environment. This operation can take a while to complete.", + "operationId": "Environments_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "dtlEnvironment", + "in": "body", + "description": "An environment, which is essentially an ARM template deployment.", + "required": true, + "schema": { + "$ref": "#/definitions/DtlEnvironment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DtlEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/DtlEnvironment" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Environments_CreateOrUpdate": { + "$ref": "./examples/Environments_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Environments" + ], + "description": "Delete environment. This operation can take a while to complete.", + "operationId": "Environments_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Environments_Delete": { + "$ref": "./examples/Environments_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Environments" + ], + "description": "Allows modifying tags of environments. All other properties will be ignored.", + "operationId": "Environments_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "dtlEnvironment", + "in": "body", + "description": "Allows modifying tags of environments. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/DtlEnvironmentFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DtlEnvironment" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Environments_Update": { + "$ref": "./examples/Environments_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets": { + "get": { + "tags": [ + "Secrets" + ], + "description": "List secrets in a given user profile.", + "operationId": "Secrets_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=value)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecretList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Secret", + "x-ms-examples": { + "Secrets_List": { + "$ref": "./examples/Secrets_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}": { + "get": { + "tags": [ + "Secrets" + ], + "description": "Get secret.", + "operationId": "Secrets_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the secret.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=value)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Secret" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Secrets_Get": { + "$ref": "./examples/Secrets_Get.json" + } + } + }, + "put": { + "tags": [ + "Secrets" + ], + "description": "Create or replace an existing secret. This operation can take a while to complete.", + "operationId": "Secrets_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the secret.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "secret", + "in": "body", + "description": "A secret.", + "required": true, + "schema": { + "$ref": "#/definitions/Secret" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Secret" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Secrets_CreateOrUpdate": { + "$ref": "./examples/Secrets_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Secrets" + ], + "description": "Delete secret.", + "operationId": "Secrets_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the secret.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Secrets_Delete": { + "$ref": "./examples/Secrets_Delete.json" + } + } + }, + "patch": { + "tags": [ + "Secrets" + ], + "description": "Allows modifying tags of secrets. All other properties will be ignored.", + "operationId": "Secrets_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the secret.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "secret", + "in": "body", + "description": "Allows modifying tags of secrets. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/SecretFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Secret" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Secrets_Update": { + "$ref": "./examples/Secrets_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics": { + "get": { + "tags": [ + "ServiceFabrics" + ], + "description": "List service fabrics in a given user profile.", + "operationId": "ServiceFabrics_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceFabricList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ServiceFabric", + "x-ms-examples": { + "ServiceFabrics_List": { + "$ref": "./examples/ServiceFabrics_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}": { + "get": { + "tags": [ + "ServiceFabrics" + ], + "description": "Get service fabric.", + "operationId": "ServiceFabrics_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceFabric" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_Get": { + "$ref": "./examples/ServiceFabrics_Get.json" + } + } + }, + "put": { + "tags": [ + "ServiceFabrics" + ], + "description": "Create or replace an existing Service Fabric. This operation can take a while to complete.", + "operationId": "ServiceFabrics_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "serviceFabric", + "in": "body", + "description": "A Service Fabric.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceFabric" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceFabric" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ServiceFabric" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_CreateOrUpdate": { + "$ref": "./examples/ServiceFabrics_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "ServiceFabrics" + ], + "description": "Delete service fabric. This operation can take a while to complete.", + "operationId": "ServiceFabrics_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_Delete": { + "$ref": "./examples/ServiceFabrics_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "ServiceFabrics" + ], + "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", + "operationId": "ServiceFabrics_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "serviceFabric", + "in": "body", + "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceFabricFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceFabric" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_Update": { + "$ref": "./examples/ServiceFabrics_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/listApplicableSchedules": { + "post": { + "tags": [ + "ServiceFabrics" + ], + "description": "Lists the applicable start/stop schedules, if any.", + "operationId": "ServiceFabrics_ListApplicableSchedules", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplicableSchedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_ListApplicableSchedules": { + "$ref": "./examples/ServiceFabrics_ListApplicableSchedules.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/start": { + "post": { + "tags": [ + "ServiceFabrics" + ], + "description": "Start a service fabric. This operation can take a while to complete.", + "operationId": "ServiceFabrics_Start", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_Start": { + "$ref": "./examples/ServiceFabrics_Start.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/stop": { + "post": { + "tags": [ + "ServiceFabrics" + ], + "description": "Stop a service fabric This operation can take a while to complete.", + "operationId": "ServiceFabrics_Stop", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the service fabric.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabrics_Stop": { + "$ref": "./examples/ServiceFabrics_Stop.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules": { + "get": { + "tags": [ + "ServiceFabricSchedules" + ], + "description": "List schedules in a given service fabric.", + "operationId": "ServiceFabricSchedules_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "$ref": "#/parameters/serviceFabricName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ScheduleList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "ServiceFabricSchedules_List": { + "$ref": "./examples/ServiceFabricSchedules_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { + "get": { + "tags": [ + "ServiceFabricSchedules" + ], + "description": "Get schedule.", + "operationId": "ServiceFabricSchedules_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "$ref": "#/parameters/serviceFabricName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabricSchedules_Get": { + "$ref": "./examples/ServiceFabricSchedules_Get.json" + } + } + }, + "put": { + "tags": [ + "ServiceFabricSchedules" + ], + "description": "Create or replace an existing schedule.", + "operationId": "ServiceFabricSchedules_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "$ref": "#/parameters/serviceFabricName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabricSchedules_CreateOrUpdate": { + "$ref": "./examples/ServiceFabricSchedules_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ServiceFabricSchedules" + ], + "description": "Delete schedule.", + "operationId": "ServiceFabricSchedules_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "$ref": "#/parameters/serviceFabricName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabricSchedules_Delete": { + "$ref": "./examples/ServiceFabricSchedules_Delete.json" + } + } + }, + "patch": { + "tags": [ + "ServiceFabricSchedules" + ], + "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "operationId": "ServiceFabricSchedules_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "$ref": "#/parameters/serviceFabricName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "schedule", + "in": "body", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabricSchedules_Update": { + "$ref": "./examples/ServiceFabricSchedules_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { + "post": { + "tags": [ + "ServiceFabricSchedules" + ], + "description": "Execute a schedule. This operation can take a while to complete.", + "operationId": "ServiceFabricSchedules_Execute", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/userName" + }, + { + "$ref": "#/parameters/serviceFabricName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ServiceFabricSchedules_Execute": { + "$ref": "./examples/ServiceFabricSchedules_Execute.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines": { + "get": { + "tags": [ + "VirtualMachines" + ], + "description": "List virtual machines in a given lab.", + "operationId": "VirtualMachines_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabVirtualMachineList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/LabVirtualMachine", + "x-ms-examples": { + "VirtualMachines_List": { + "$ref": "./examples/VirtualMachines_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}": { + "get": { + "tags": [ + "VirtualMachines" + ], + "description": "Get virtual machine.", + "operationId": "VirtualMachines_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Get": { + "$ref": "./examples/VirtualMachines_Get.json" + } + } + }, + "put": { + "tags": [ + "VirtualMachines" + ], + "description": "Create or replace an existing Virtual machine. This operation can take a while to complete.", + "operationId": "VirtualMachines_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "labVirtualMachine", + "in": "body", + "description": "A virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_CreateOrUpdate": { + "$ref": "./examples/VirtualMachines_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "VirtualMachines" + ], + "description": "Delete virtual machine. This operation can take a while to complete.", + "operationId": "VirtualMachines_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Delete": { + "$ref": "./examples/VirtualMachines_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "VirtualMachines" + ], + "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", + "operationId": "VirtualMachines_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "name": "labVirtualMachine", + "in": "body", + "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/LabVirtualMachineFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabVirtualMachine" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Update": { + "$ref": "./examples/VirtualMachines_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Attach a new or existing data disk to virtual machine. This operation can take a while to complete.", + "operationId": "VirtualMachines_AddDataDisk", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "dataDiskProperties", + "in": "body", + "description": "Request body for adding a new or existing data disk to a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/DataDiskProperties" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_AddDataDisk": { + "$ref": "./examples/VirtualMachines_AddDataDisk.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/applyArtifacts": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Apply artifacts to virtual machine. This operation can take a while to complete.", + "operationId": "VirtualMachines_ApplyArtifacts", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "applyArtifactsRequest", + "in": "body", + "description": "Request body for applying artifacts to a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/ApplyArtifactsRequest" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_ApplyArtifacts": { + "$ref": "./examples/VirtualMachines_ApplyArtifacts.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/claim": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Take ownership of an existing virtual machine This operation can take a while to complete.", + "operationId": "VirtualMachines_Claim", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Claim": { + "$ref": "./examples/VirtualMachines_Claim.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/clearArtifactResults": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Clears the artifact results of the virtual machine.", + "operationId": "VirtualMachines_ClearArtifactResults", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_ClearArtifactResults": { + "$ref": "./examples/VirtualMachines_ClearArtifactResults.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/detachDataDisk": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Detach the specified disk from the virtual machine. This operation can take a while to complete.", + "operationId": "VirtualMachines_DetachDataDisk", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "detachDataDiskProperties", + "in": "body", + "description": "Request body for detaching data disk from a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/DetachDataDiskProperties" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_DetachDataDisk": { + "$ref": "./examples/VirtualMachines_DetachDataDisk.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Gets a string that represents the contents of the RDP file for the virtual machine", + "operationId": "VirtualMachines_GetRdpFileContents", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RdpConnection" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_GetRdpFileContents": { + "$ref": "./examples/VirtualMachines_GetRdpFileContents.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Lists the applicable start/stop schedules, if any.", + "operationId": "VirtualMachines_ListApplicableSchedules", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplicableSchedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_ListApplicableSchedules": { + "$ref": "./examples/VirtualMachines_ListApplicableSchedules.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Redeploy a virtual machine This operation can take a while to complete.", + "operationId": "VirtualMachines_Redeploy", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Redeploy": { + "$ref": "./examples/VirtualMachines_Redeploy.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Resize Virtual Machine. This operation can take a while to complete.", + "operationId": "VirtualMachines_Resize", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "resizeLabVirtualMachineProperties", + "in": "body", + "description": "Request body for resizing a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/ResizeLabVirtualMachineProperties" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Resize": { + "$ref": "./examples/VirtualMachines_Resize.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/restart": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Restart a virtual machine. This operation can take a while to complete.", + "operationId": "VirtualMachines_Restart", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Restart": { + "$ref": "./examples/VirtualMachines_Restart.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Start a virtual machine. This operation can take a while to complete.", + "operationId": "VirtualMachines_Start", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Start": { + "$ref": "./examples/VirtualMachines_Start.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Stop a virtual machine This operation can take a while to complete.", + "operationId": "VirtualMachines_Stop", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_Stop": { + "$ref": "./examples/VirtualMachines_Stop.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.", + "operationId": "VirtualMachines_TransferDisks", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_TransferDisks": { + "$ref": "./examples/VirtualMachines_TransferDisks.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim": { + "post": { + "tags": [ + "VirtualMachines" + ], + "description": "Release ownership of an existing virtual machine This operation can take a while to complete.", + "operationId": "VirtualMachines_UnClaim", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual machine.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachines_UnClaim": { + "$ref": "./examples/VirtualMachines_UnClaim.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules": { + "get": { + "tags": [ + "VirtualMachineSchedules" + ], + "description": "List schedules in a given virtual machine.", + "operationId": "VirtualMachineSchedules_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualMachineName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ScheduleList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "VirtualMachineSchedules_List": { + "$ref": "./examples/VirtualMachineSchedules_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { + "get": { + "tags": [ + "VirtualMachineSchedules" + ], + "description": "Get schedule.", + "operationId": "VirtualMachineSchedules_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualMachineName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Get": { + "$ref": "./examples/VirtualMachineSchedules_Get.json" + } + } + }, + "put": { + "tags": [ + "VirtualMachineSchedules" + ], + "description": "Create or replace an existing schedule.", + "operationId": "VirtualMachineSchedules_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualMachineName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachineSchedules_CreateOrUpdate": { + "$ref": "./examples/VirtualMachineSchedules_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "VirtualMachineSchedules" + ], + "description": "Delete schedule.", + "operationId": "VirtualMachineSchedules_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualMachineName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Delete": { + "$ref": "./examples/VirtualMachineSchedules_Delete.json" + } + } + }, + "patch": { + "tags": [ + "VirtualMachineSchedules" + ], + "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "operationId": "VirtualMachineSchedules_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualMachineName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "schedule", + "in": "body", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Update": { + "$ref": "./examples/VirtualMachineSchedules_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute": { + "post": { + "tags": [ + "VirtualMachineSchedules" + ], + "description": "Execute a schedule. This operation can take a while to complete.", + "operationId": "VirtualMachineSchedules_Execute", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualMachineName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Execute": { + "$ref": "./examples/VirtualMachineSchedules_Execute.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks": { + "get": { + "tags": [ + "VirtualNetworks" + ], + "description": "List virtual networks in a given lab.", + "operationId": "VirtualNetworks_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualNetworkList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/VirtualNetwork", + "x-ms-examples": { + "VirtualNetworks_List": { + "$ref": "./examples/VirtualNetworks_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}": { + "get": { + "tags": [ + "VirtualNetworks" + ], + "description": "Get virtual network.", + "operationId": "VirtualNetworks_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual network.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualNetworks_Get": { + "$ref": "./examples/VirtualNetworks_Get.json" + } + } + }, + "put": { + "tags": [ + "VirtualNetworks" + ], + "description": "Create or replace an existing virtual network. This operation can take a while to complete.", + "operationId": "VirtualNetworks_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual network.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "virtualNetwork", + "in": "body", + "description": "A virtual network.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualNetworks_CreateOrUpdate": { + "$ref": "./examples/VirtualNetworks_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "VirtualNetworks" + ], + "description": "Delete virtual network. This operation can take a while to complete.", + "operationId": "VirtualNetworks_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual network.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualNetworks_Delete": { + "$ref": "./examples/VirtualNetworks_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "VirtualNetworks" + ], + "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", + "operationId": "VirtualNetworks_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the virtual network.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "virtualNetwork", + "in": "body", + "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "VirtualNetworks_Update": { + "$ref": "./examples/VirtualNetworks_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}/bastionhosts": { + "get": { + "tags": [ + "BastionHosts" + ], + "description": "List bastionhosts in a given virtual network.", + "operationId": "BastionHosts_List", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualNetworkName" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BastionHostList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/BastionHost", + "x-ms-examples": { + "BastionHosts_List": { + "$ref": "./examples/BastionHosts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}/bastionhosts/{name}": { + "get": { + "tags": [ + "BastionHosts" + ], + "description": "Get bastionhost.", + "operationId": "BastionHosts_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualNetworkName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the bastionhost.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BastionHost" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "BastionHosts_Get": { + "$ref": "./examples/BastionHosts_Get.json" + } + } + }, + "put": { + "tags": [ + "BastionHosts" + ], + "description": "Create or replace an existing bastionHost. This operation can take a while to complete.", + "operationId": "BastionHosts_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualNetworkName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the bastionhost.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "name": "bastionHost", + "in": "body", + "description": "Profile of a Bastion Host", + "required": true, + "schema": { + "$ref": "#/definitions/BastionHost" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BastionHost" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/BastionHost" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "BastionHosts_CreateOrUpdate": { + "$ref": "./examples/BastionHosts_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "BastionHosts" + ], + "description": "Delete bastionhost. This operation can take a while to complete.", + "operationId": "BastionHosts_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualNetworkName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the bastionhost.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "BastionHosts_Delete": { + "$ref": "./examples/BastionHosts_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "BastionHosts" + ], + "description": "Allows modifying tags of bastionhosts. All other properties will be ignored.", + "operationId": "BastionHosts_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/labName" + }, + { + "$ref": "#/parameters/virtualNetworkName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the bastionhost.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + { + "name": "bastionHost", + "in": "body", + "description": "Allows modifying tags of bastionhosts. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/BastionHostFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BastionHost" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "BastionHosts_Update": { + "$ref": "./examples/BastionHosts_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}": { + "get": { + "tags": [ + "Labs" + ], + "description": "Get lab.", + "operationId": "Labs_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Lab" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_Get": { + "$ref": "./examples/Labs_Get.json" + } + } + }, + "put": { + "tags": [ + "Labs" + ], + "description": "Create or replace an existing lab. This operation can take a while to complete.", + "operationId": "Labs_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "lab", + "in": "body", + "description": "A lab.", + "required": true, + "schema": { + "$ref": "#/definitions/Lab" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Lab" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Lab" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_CreateOrUpdate": { + "$ref": "./examples/Labs_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Labs" + ], + "description": "Delete lab. This operation can take a while to complete.", + "operationId": "Labs_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_Delete": { + "$ref": "./examples/Labs_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Labs" + ], + "description": "Allows modifying tags of labs. All other properties will be ignored.", + "operationId": "Labs_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "lab", + "in": "body", + "description": "Allows modifying tags of labs. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/LabFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Lab" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_Update": { + "$ref": "./examples/Labs_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/claimAnyVm": { + "post": { + "tags": [ + "Labs" + ], + "description": "Claim a random claimable virtual machine in the lab. This operation can take a while to complete.", + "operationId": "Labs_ClaimAnyVm", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_ClaimAnyVm": { + "$ref": "./examples/Labs_ClaimAnyVm.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment": { + "post": { + "tags": [ + "Labs" + ], + "description": "Create virtual machines in a lab. This operation can take a while to complete.", + "operationId": "Labs_CreateEnvironment", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "labVirtualMachineCreationParameter", + "in": "body", + "description": "Properties for creating a virtual machine.", + "required": true, + "schema": { + "$ref": "#/definitions/LabVirtualMachineCreationParameter" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_CreateEnvironment": { + "$ref": "./examples/Labs_CreateEnvironment.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/ensureCurrentUserProfile": { + "post": { + "tags": [ + "Labs" + ], + "description": "Ensure the current user has a valid profile in the lab.", + "operationId": "Labs_EnsureCurrentUserProfile", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_EnsureCurrentUserProfile": { + "$ref": "./examples/Labs_EnsureCurrentUserProfile.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage": { + "post": { + "tags": [ + "Labs" + ], + "description": "Exports the lab resource usage into a storage account This operation can take a while to complete.", + "operationId": "Labs_ExportResourceUsage", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "exportResourceUsageParameters", + "in": "body", + "description": "The parameters of the export operation.", + "required": true, + "schema": { + "$ref": "#/definitions/ExportResourceUsageParameters" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_ExportResourceUsage": { + "$ref": "./examples/Labs_ExportResourceUsage.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri": { + "post": { + "tags": [ + "Labs" + ], + "description": "Generate a URI for uploading custom disk images to a Lab.", + "operationId": "Labs_GenerateUploadUri", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "generateUploadUriParameter", + "in": "body", + "description": "Properties for generating an upload URI.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateUploadUriParameter" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GenerateUploadUriResponse" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_GenerateUploadUri": { + "$ref": "./examples/Labs_GenerateUploadUri.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine": { + "post": { + "tags": [ + "Labs" + ], + "description": "Import a virtual machine into a different lab. This operation can take a while to complete.", + "operationId": "Labs_ImportVirtualMachine", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "importLabVirtualMachineRequest", + "in": "body", + "description": "This represents the payload required to import a virtual machine from a different lab into the current one", + "required": true, + "schema": { + "$ref": "#/definitions/ImportLabVirtualMachineRequest" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Labs_ImportVirtualMachine": { + "$ref": "./examples/Labs_ImportVirtualMachine.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/listVhds": { + "post": { + "tags": [ + "Labs" + ], + "description": "List disk images available for custom image creation.", + "operationId": "Labs_ListVhds", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the lab.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LabVhdList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Labs_ListVhds": { + "$ref": "./examples/Labs_ListVhds.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules": { + "get": { + "tags": [ + "GlobalSchedules" + ], + "description": "List schedules in a resource group.", + "operationId": "GlobalSchedules_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')'", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'", + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ScheduleList" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "GlobalSchedules_ListByResourceGroup": { + "$ref": "./examples/GlobalSchedules_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}": { + "get": { + "tags": [ + "GlobalSchedules" + ], + "description": "Get schedule.", + "operationId": "GlobalSchedules_Get", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "$expand", + "in": "query", + "description": "Specify the $expand query. Example: 'properties($select=status)'", + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GlobalSchedules_Get": { + "$ref": "./examples/GlobalSchedules_Get.json" + } + } + }, + "put": { + "tags": [ + "GlobalSchedules" + ], + "description": "Create or replace an existing schedule.", + "operationId": "GlobalSchedules_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "schedule", + "in": "body", + "description": "A schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GlobalSchedules_CreateOrUpdate": { + "$ref": "./examples/GlobalSchedules_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "GlobalSchedules" + ], + "description": "Delete schedule.", + "operationId": "GlobalSchedules_Delete", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GlobalSchedules_Delete": { + "$ref": "./examples/GlobalSchedules_Delete.json" + } + } + }, + "patch": { + "tags": [ + "GlobalSchedules" + ], + "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "operationId": "GlobalSchedules_Update", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "schedule", + "in": "body", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleFragment" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GlobalSchedules_Update": { + "$ref": "./examples/GlobalSchedules_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/execute": { + "post": { + "tags": [ + "GlobalSchedules" + ], + "description": "Execute a schedule. This operation can take a while to complete.", + "operationId": "GlobalSchedules_Execute", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GlobalSchedules_Execute": { + "$ref": "./examples/GlobalSchedules_Execute.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/retarget": { + "post": { + "tags": [ + "GlobalSchedules" + ], + "description": "Updates a schedule's target resource Id. This operation can take a while to complete.", + "operationId": "GlobalSchedules_Retarget", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the schedule.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + { + "name": "retargetScheduleProperties", + "in": "body", + "description": "Properties for retargeting a virtual machine schedule.", + "required": true, + "schema": { + "$ref": "#/definitions/RetargetScheduleProperties" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GlobalSchedules_Retarget": { + "$ref": "./examples/GlobalSchedules_Retarget.json" + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Resource": { + "title": "Resource", + "description": "Common fields that are returned in the response for all Azure Resource Manager resources", + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + } + }, + "required": [ + "location" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ], + "x-ms-azure-resource": true + }, + "ApplicableSchedule": { + "description": "Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ApplicableScheduleProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "ApplicableScheduleProperties": { + "description": "Properties of a schedules applicable to a virtual machine.", + "type": "object", + "properties": { + "labVmsShutdown": { + "$ref": "#/definitions/Schedule", + "description": "The auto-shutdown schedule, if one has been set at the lab or lab resource level.", + "x-ms-client-flatten": true + }, + "labVmsStartup": { + "$ref": "#/definitions/Schedule", + "description": "The auto-startup schedule, if one has been set at the lab or lab resource level.", + "x-ms-client-flatten": true + } + } + }, + "ApplyArtifactsRequest": { + "description": "Request body for applying artifacts to a virtual machine.", + "type": "object", + "properties": { + "artifacts": { + "description": "The list of artifacts to apply.", + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactInstallProperties" + }, + "x-ms-identifiers": [ + "artifactId" + ] + } + } + }, + "ArmTemplate": { + "description": "An Azure Resource Manager template.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ArmTemplateProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "ArmTemplateInfo": { + "description": "Information about a generated ARM template.", + "type": "object", + "properties": { + "template": { + "description": "The template's contents.", + "type": "object" + }, + "parameters": { + "description": "The parameters of the ARM template.", + "type": "object" + } + } + }, + "ArmTemplateList": { + "type": "object", + "description": "Contains a list of armTemplates and their properties", + "properties": { + "value": { + "description": "List of armTemplates and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/ArmTemplate" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "ArmTemplateParameterProperties": { + "type": "object", + "description": "Properties of an Azure Resource Manager template parameter.", + "properties": { + "name": { + "description": "The name of the template parameter.", + "type": "string" + }, + "value": { + "description": "The value of the template parameter.", + "type": "string" + } + } + }, + "ArmTemplateProperties": { + "type": "object", + "description": "Properties of an Azure Resource Manager template.", + "properties": { + "displayName": { + "description": "The display name of the ARM template.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "The description of the ARM template.", + "type": "string", + "readOnly": true + }, + "publisher": { + "description": "The publisher of the ARM template.", + "type": "string", + "readOnly": true + }, + "icon": { + "description": "The URI to the icon of the ARM template.", + "type": "string", + "readOnly": true + }, + "contents": { + "description": "The contents of the ARM template.", + "type": "object", + "readOnly": true + }, + "createdDate": { + "description": "The creation date of the armTemplate.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "parametersValueFilesInfo": { + "description": "File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template.", + "type": "array", + "items": { + "$ref": "#/definitions/ParametersValueFileInfo" + }, + "readOnly": true, + "x-ms-identifiers": [ + "fileName" + ] + }, + "enabled": { + "description": "Whether or not ARM template is enabled for use by lab user.", + "type": "boolean", + "readOnly": true + } + } + }, + "Artifact": { + "description": "An artifact.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ArtifactProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "ArtifactDeploymentStatusProperties": { + "description": "Properties of an artifact deployment.", + "type": "object", + "properties": { + "deploymentStatus": { + "description": "The deployment status of the artifact.", + "type": "string" + }, + "artifactsApplied": { + "format": "int32", + "description": "The total count of the artifacts that were successfully applied.", + "type": "integer" + }, + "totalArtifacts": { + "format": "int32", + "description": "The total count of the artifacts that were tentatively applied.", + "type": "integer" + } + } + }, + "ArtifactInstallProperties": { + "description": "Properties of an artifact.", + "type": "object", + "properties": { + "artifactId": { + "description": "The artifact's identifier.", + "type": "string" + }, + "artifactTitle": { + "description": "The artifact's title.", + "type": "string" + }, + "parameters": { + "description": "The parameters of the artifact.", + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactParameterProperties" + } + }, + "status": { + "description": "The status of the artifact.", + "type": "string" + }, + "deploymentStatusMessage": { + "description": "The status message from the deployment.", + "type": "string" + }, + "vmExtensionStatusMessage": { + "description": "The status message from the virtual machine extension.", + "type": "string" + }, + "installTime": { + "format": "date-time", + "description": "The time that the artifact starts to install on the virtual machine.", + "type": "string" + } + } + }, + "ArtifactList": { + "description": "Contains a list of artifacts and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of artifacts and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/Artifact" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "ArtifactParameterProperties": { + "description": "Properties of an artifact parameter.", + "type": "object", + "properties": { + "name": { + "description": "The name of the artifact parameter.", + "type": "string" + }, + "value": { + "description": "The value of the artifact parameter.", + "type": "string" + } + } + }, + "ArtifactProperties": { + "description": "Properties of an artifact.", + "type": "object", + "properties": { + "title": { + "description": "The artifact's title.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "The artifact's description.", + "type": "string", + "readOnly": true + }, + "publisher": { + "description": "The artifact's publisher.", + "type": "string", + "readOnly": true + }, + "filePath": { + "description": "The file path to the artifact.", + "type": "string", + "readOnly": true + }, + "icon": { + "description": "The URI to the artifact icon.", + "type": "string", + "readOnly": true + }, + "targetOsType": { + "description": "The artifact's target OS.", + "type": "string", + "readOnly": true + }, + "parameters": { + "description": "The artifact's parameters.", + "type": "object", + "readOnly": true + }, + "createdDate": { + "format": "date-time", + "description": "The artifact's creation date.", + "type": "string", + "readOnly": true + } + } + }, + "ArtifactSource": { + "description": "Properties of an artifact source.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ArtifactSourceProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "ArtifactSourceFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "ArtifactSourceList": { + "description": "Contains a list of artifactSources and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of artifactSources and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "ArtifactSourceProperties": { + "description": "Properties of an artifact source.", + "type": "object", + "properties": { + "displayName": { + "description": "The artifact source's display name.", + "type": "string" + }, + "uri": { + "description": "The artifact source's URI.", + "type": "string" + }, + "sourceType": { + "description": "The artifact source's type.", + "enum": [ + "VsoGit", + "GitHub", + "StorageAccount" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceControlType", + "modelAsString": true + } + }, + "folderPath": { + "description": "The folder containing artifacts.", + "type": "string" + }, + "armTemplateFolderPath": { + "description": "The folder containing Azure Resource Manager templates.", + "type": "string" + }, + "branchRef": { + "description": "The artifact source's branch reference.", + "type": "string" + }, + "securityToken": { + "description": "The security token to authenticate to the artifact source.", + "type": "string" + }, + "status": { + "description": "Indicates if the artifact source is enabled (values: Enabled, Disabled).", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true + } + }, + "createdDate": { + "format": "date-time", + "description": "The artifact source's creation date.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "AttachDiskProperties": { + "type": "object", + "description": "Properties of the disk to attach.", + "properties": { + "leasedByLabVmId": { + "description": "The resource ID of the Lab virtual machine to which the disk is attached.", + "type": "string" + } + } + }, + "AttachNewDataDiskOptions": { + "description": "Properties to attach new disk to the Virtual Machine.", + "type": "object", + "properties": { + "diskSizeGiB": { + "format": "int32", + "description": "Size of the disk to be attached in Gibibytes.", + "type": "integer" + }, + "diskName": { + "description": "The name of the disk to be attached.", + "type": "string" + }, + "diskType": { + "description": "The storage type for the disk (i.e. Standard, Premium).", + "enum": [ + "Standard", + "Premium", + "StandardSSD" + ], + "type": "string", + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true + } + } + } + }, + "BastionHost": { + "description": "Profile of a Bastion Host", + "type": "object", + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/BastionHostProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "BastionHostFragment": { + "type": "object", + "description": "Patch", + "properties": {}, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ] + }, + "BastionHostList": { + "description": "Contains a list of bastionHosts and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of bastionHosts and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/BastionHost" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "BastionHostProperties": { + "description": "Properties of a BastionHost profile.", + "type": "object", + "properties": { + "externalBastionHostId": { + "description": "The ID of the external BastionHost resource that corresponds to this DTL BastionHost", + "type": "string", + "readOnly": true + }, + "ipAddressId": { + "description": "The ID of the PublicIpAddress resource that is created by and paired with this BastionHost", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "BulkCreationParameters": { + "type": "object", + "description": "Parameters for creating multiple virtual machines as a single action.", + "properties": { + "instanceCount": { + "description": "The number of virtual machine instances to create.", + "type": "integer", + "format": "int32" + } + } + }, + "CloudError": { + "description": "Error from a REST request.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "The cloud error that occurred" + } + }, + "x-ms-external": true + }, + "CloudErrorBody": { + "description": "Body of an error from a REST request.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "target": { + "description": "The error target.", + "type": "string" + }, + "details": { + "description": "Inner errors.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + } + } + }, + "x-ms-external": true + }, + "ComputeDataDisk": { + "description": "A data disks attached to a virtual machine.", + "type": "object", + "properties": { + "name": { + "description": "Gets data disk name.", + "type": "string" + }, + "diskUri": { + "description": "When backed by a blob, the URI of underlying blob.", + "type": "string" + }, + "managedDiskId": { + "description": "When backed by managed disk, this is the ID of the compute disk resource.", + "type": "string" + }, + "diskSizeGiB": { + "format": "int32", + "description": "Gets data disk size in GiB.", + "type": "integer" + } + } + }, + "ComputeVmInstanceViewStatus": { + "description": "Status information about a virtual machine.", + "type": "object", + "properties": { + "code": { + "description": "Gets the status Code.", + "type": "string" + }, + "displayStatus": { + "description": "Gets the short localizable label for the status.", + "type": "string" + }, + "message": { + "description": "Gets the message associated with the status.", + "type": "string" + } + } + }, + "ComputeVmProperties": { + "description": "Properties of a virtual machine returned by the Microsoft.Compute API.", + "type": "object", + "properties": { + "statuses": { + "description": "Gets the statuses of the virtual machine.", + "type": "array", + "items": { + "$ref": "#/definitions/ComputeVmInstanceViewStatus" + } + }, + "osType": { + "description": "Gets the OS type of the virtual machine.", + "type": "string" + }, + "vmSize": { + "description": "Gets the size of the virtual machine.", + "type": "string" + }, + "networkInterfaceId": { + "description": "Gets the network interface ID of the virtual machine.", + "type": "string" + }, + "osDiskId": { + "description": "Gets OS disk blob uri for the virtual machine.", + "type": "string" + }, + "dataDiskIds": { + "description": "Gets data disks blob uri for the virtual machine.", + "type": "array", + "items": { + "type": "string" + } + }, + "dataDisks": { + "description": "Gets all data disks attached to the virtual machine.", + "type": "array", + "items": { + "$ref": "#/definitions/ComputeDataDisk" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "Cost": { + "type": "object", + "description": "A cost item.", + "properties": { + "properties": { + "description": "The properties of the resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/LabCostProperties" + }, + "systemData": { + "description": "The system metadata relating to this resource", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ] + }, + "CostThresholdProperties": { + "description": "Properties of a cost threshold item.", + "type": "object", + "properties": { + "thresholdId": { + "description": "The ID of the cost threshold item.", + "type": "string" + }, + "percentageThreshold": { + "$ref": "#/definitions/PercentageCostThresholdProperties", + "description": "The value of the percentage cost threshold.", + "x-ms-client-flatten": true + }, + "displayOnChart": { + "description": "Indicates whether this threshold will be displayed on cost charts.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "CostThresholdStatus", + "modelAsString": true + } + }, + "sendNotificationWhenExceeded": { + "description": "Indicates whether notifications will be sent when this threshold is exceeded.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "CostThresholdStatus", + "modelAsString": true + } + }, + "notificationSent": { + "description": "Indicates the datetime when notifications were last sent for this threshold.", + "type": "string" + } + } + }, + "CustomImage": { + "description": "A custom image.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/CustomImageProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "CustomImageFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "CustomImageList": { + "description": "Contains a list of customImages and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of customImages and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/CustomImage" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "CustomImageProperties": { + "description": "Properties of a custom image.", + "type": "object", + "properties": { + "vm": { + "$ref": "#/definitions/CustomImagePropertiesFromVm", + "description": "The virtual machine from which the image is to be created.", + "x-ms-client-flatten": true + }, + "vhd": { + "$ref": "#/definitions/CustomImagePropertiesCustom", + "description": "The VHD from which the image is to be created.", + "x-ms-client-flatten": true + }, + "description": { + "description": "The description of the custom image.", + "type": "string" + }, + "author": { + "description": "The author of the custom image.", + "type": "string" + }, + "creationDate": { + "format": "date-time", + "description": "The creation date of the custom image.", + "type": "string", + "readOnly": true + }, + "managedImageId": { + "description": "The Managed Image Id backing the custom image.", + "type": "string" + }, + "managedSnapshotId": { + "description": "The Managed Snapshot Id backing the custom image.", + "type": "string" + }, + "dataDiskStorageInfo": { + "description": "Storage information about the data disks present in the custom image", + "type": "array", + "items": { + "$ref": "#/definitions/DataDiskStorageTypeInfo" + } + }, + "customImagePlan": { + "$ref": "#/definitions/CustomImagePropertiesFromPlan", + "description": "Storage information about the plan related to this custom image", + "x-ms-client-flatten": true + }, + "isPlanAuthorized": { + "description": "Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment", + "type": "boolean" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "CustomImagePropertiesCustom": { + "description": "Properties for creating a custom image from a VHD.", + "required": [ + "osType" + ], + "type": "object", + "properties": { + "imageName": { + "description": "The image name.", + "type": "string" + }, + "sysPrep": { + "description": "Indicates whether sysprep has been run on the VHD.", + "type": "boolean" + }, + "osType": { + "description": "The OS type of the custom image (i.e. Windows, Linux)", + "enum": [ + "Windows", + "Linux", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "CustomImageOsType", + "modelAsString": true + } + } + } + }, + "CustomImagePropertiesFromPlan": { + "description": "Properties for plan on a custom image.", + "type": "object", + "properties": { + "id": { + "description": "The id of the plan, equivalent to name of the plan", + "type": "string" + }, + "publisher": { + "description": "The publisher for the plan from the marketplace image the custom image is derived from", + "type": "string" + }, + "offer": { + "description": "The offer for the plan from the marketplace image the custom image is derived from", + "type": "string" + } + } + }, + "CustomImagePropertiesFromPlanFragment": { + "description": "Properties for plan on a custom image.", + "type": "object", + "properties": { + "id": { + "description": "The id of the plan, equivalent to name of the plan", + "type": "string" + }, + "publisher": { + "description": "The publisher for the plan from the marketplace image the custom image is derived from", + "type": "string" + }, + "offer": { + "description": "The offer for the plan from the marketplace image the custom image is derived from", + "type": "string" + } + } + }, + "CustomImagePropertiesFromVm": { + "description": "Properties for creating a custom image from a virtual machine.", + "type": "object", + "properties": { + "sourceVmId": { + "description": "The source vm identifier.", + "type": "string" + }, + "windowsOsInfo": { + "$ref": "#/definitions/WindowsOsInfo", + "description": "The Windows OS information of the VM.", + "x-ms-client-flatten": true + }, + "linuxOsInfo": { + "$ref": "#/definitions/LinuxOsInfo", + "description": "The Linux OS information of the VM.", + "x-ms-client-flatten": true + } + } + }, + "DataDiskProperties": { + "description": "Request body for adding a new or existing data disk to a virtual machine.", + "type": "object", + "properties": { + "attachNewDataDiskOptions": { + "$ref": "#/definitions/AttachNewDataDiskOptions", + "description": "Specifies options to attach a new disk to the virtual machine.", + "x-ms-client-flatten": true + }, + "existingLabDiskId": { + "description": "Specifies the existing lab disk id to attach to virtual machine.", + "type": "string" + }, + "hostCaching": { + "description": "Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).", + "enum": [ + "None", + "ReadOnly", + "ReadWrite" + ], + "type": "string", + "x-ms-enum": { + "name": "HostCachingOptions", + "modelAsString": true + } + } + } + }, + "DataDiskStorageTypeInfo": { + "description": "Storage information about the data disks present in the custom image", + "type": "object", + "properties": { + "lun": { + "description": "Disk Lun", + "type": "string" + }, + "storageType": { + "description": "Disk Storage Type", + "enum": [ + "Standard", + "Premium", + "StandardSSD" + ], + "type": "string", + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true + } + } + } + }, + "DayDetails": { + "description": "Properties of a daily schedule.", + "type": "object", + "properties": { + "time": { + "description": "The time of day the schedule will occur.", + "type": "string" + } + } + }, + "DetachDataDiskProperties": { + "description": "Request body for detaching data disk from a virtual machine.", + "type": "object", + "properties": { + "existingLabDiskId": { + "description": "Specifies the disk resource ID to detach from virtual machine.", + "type": "string" + } + } + }, + "DetachDiskProperties": { + "description": "Properties of the disk to detach.", + "type": "object", + "properties": { + "leasedByLabVmId": { + "description": "The resource ID of the Lab VM to which the disk is attached.", + "type": "string" + } + } + }, + "Disk": { + "description": "A Disk.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/DiskProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "DiskFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "DiskList": { + "description": "Contains a list of disks and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of disks and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/Disk" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "DiskProperties": { + "description": "Properties of a disk.", + "type": "object", + "properties": { + "diskType": { + "description": "The storage type for the disk (i.e. Standard, Premium).", + "enum": [ + "Standard", + "Premium", + "StandardSSD" + ], + "type": "string", + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true + } + }, + "diskSizeGiB": { + "format": "int32", + "description": "The size of the disk in Gibibytes.", + "type": "integer" + }, + "leasedByLabVmId": { + "description": "The resource ID of the VM to which this disk is leased.", + "type": "string" + }, + "diskBlobName": { + "description": "When backed by a blob, the name of the VHD blob without extension.", + "type": "string" + }, + "diskUri": { + "description": "When backed by a blob, the URI of underlying blob.", + "type": "string" + }, + "storageAccountId": { + "description": "When backed by a blob, the storage account where the blob is.", + "type": "string" + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the disk.", + "type": "string", + "readOnly": true + }, + "hostCaching": { + "description": "The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).", + "type": "string" + }, + "managedDiskId": { + "description": "When backed by managed disk, this is the ID of the compute disk resource.", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "DtlEnvironment": { + "description": "An environment, which is essentially an ARM template deployment.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/EnvironmentProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "DtlEnvironmentFragment": { + "type": "object", + "description": "Patch", + "properties": {}, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ] + }, + "DtlEnvironmentList": { + "type": "object", + "description": "Contains a list of environments and their properties", + "properties": { + "value": { + "description": "List of environments and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/DtlEnvironment" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "Encryption": { + "description": "Encryption settings", + "type": "object", + "properties": { + "diskEncryptionSetId": { + "description": "Gets or sets resourceId of the disk encryption set to use for enabling encryption at rest.", + "type": "string" + }, + "type": { + "description": "Gets or sets the type of key used to encrypt the data of the disk. Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey'", + "enum": [ + "EncryptionAtRestWithPlatformKey", + "EncryptionAtRestWithCustomerKey" + ], + "type": "string", + "x-ms-enum": { + "name": "EncryptionType", + "modelAsString": true + } + } + } + }, + "EnvironmentDeploymentProperties": { + "description": "Properties of an environment deployment.", + "type": "object", + "properties": { + "armTemplateId": { + "description": "The Azure Resource Manager template's identifier.", + "type": "string" + }, + "parameters": { + "description": "The parameters of the Azure Resource Manager template.", + "type": "array", + "items": { + "$ref": "#/definitions/ArmTemplateParameterProperties" + } + } + } + }, + "EnvironmentProperties": { + "description": "Properties of an environment.", + "type": "object", + "properties": { + "deploymentProperties": { + "$ref": "#/definitions/EnvironmentDeploymentProperties", + "description": "The deployment properties of the environment.", + "x-ms-client-flatten": true + }, + "armTemplateDisplayName": { + "description": "The display name of the Azure Resource Manager template that produced the environment.", + "type": "string" + }, + "resourceGroupId": { + "description": "The identifier of the resource group containing the environment's resources.", + "type": "string", + "readOnly": true + }, + "createdByUser": { + "description": "The creator of the environment.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "EvaluatePoliciesProperties": { + "description": "Properties for evaluating a policy set.", + "type": "object", + "properties": { + "factName": { + "description": "The fact name.", + "type": "string" + }, + "factData": { + "description": "The fact data.", + "type": "string" + }, + "valueOffset": { + "description": "The value offset.", + "type": "string" + }, + "userObjectId": { + "description": "The user for which policies will be evaluated", + "type": "string" + } + } + }, + "EvaluatePoliciesRequest": { + "description": "Request body for evaluating a policy set.", + "type": "object", + "properties": { + "policies": { + "description": "Policies to evaluate.", + "type": "array", + "items": { + "$ref": "#/definitions/EvaluatePoliciesProperties" + } + } + } + }, + "EvaluatePoliciesResponse": { + "description": "Response body for evaluating a policy set.", + "type": "object", + "properties": { + "results": { + "description": "Results of evaluating a policy set.", + "type": "array", + "items": { + "$ref": "#/definitions/PolicySetResult" + } + } + } + }, + "Event": { + "description": "An event to be notified for.", + "type": "object", + "properties": { + "eventName": { + "description": "The event type for which this notification is enabled (i.e. AutoShutdown, Cost)", + "enum": [ + "AutoShutdown", + "Cost" + ], + "type": "string", + "x-ms-enum": { + "name": "NotificationChannelEventType", + "modelAsString": true + } + } + } + }, + "ExportResourceUsageParameters": { + "description": "The parameters of the export operation.", + "type": "object", + "properties": { + "blobStorageAbsoluteSasUri": { + "description": "The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.", + "type": "string" + }, + "usageStartDate": { + "format": "date-time", + "description": "The start time of the usage. If not provided, usage will be reported since the beginning of data collection.", + "type": "string" + } + } + }, + "ExternalSubnet": { + "description": "Subnet information as returned by the Microsoft.Network API.", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the identifier.", + "type": "string" + }, + "name": { + "description": "Gets or sets the name.", + "type": "string" + } + } + }, + "Formula": { + "description": "A formula for creating a VM, specifying an image base and other parameters", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/FormulaProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "FormulaFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "FormulaList": { + "description": "Contains a list of formulas and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of formulas and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/Formula" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "FormulaProperties": { + "description": "Properties of a formula.", + "type": "object", + "properties": { + "description": { + "description": "The description of the formula.", + "type": "string" + }, + "author": { + "description": "The author of the formula.", + "type": "string", + "readOnly": true + }, + "osType": { + "description": "The OS type of the formula.", + "type": "string" + }, + "creationDate": { + "format": "date-time", + "description": "The creation date of the formula.", + "type": "string", + "readOnly": true + }, + "formulaContent": { + "$ref": "#/definitions/LabVirtualMachineCreationParameter", + "description": "The content of the formula.", + "x-ms-client-flatten": true + }, + "vm": { + "$ref": "#/definitions/FormulaPropertiesFromVm", + "description": "Information about a VM from which a formula is to be created.", + "x-ms-client-flatten": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "FormulaPropertiesFromVm": { + "description": "Information about a VM from which a formula is to be created.", + "type": "object", + "properties": { + "labVmId": { + "description": "The identifier of the VM from which a formula is to be created.", + "type": "string" + } + } + }, + "GalleryImage": { + "description": "A gallery image.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/GalleryImageProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "GalleryImageList": { + "description": "Contains a list of galleryImages and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of galleryImages and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImage" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "GalleryImageProperties": { + "description": "Properties of a gallery image.", + "type": "object", + "properties": { + "author": { + "description": "The author of the gallery image.", + "type": "string" + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the gallery image.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "The description of the gallery image.", + "type": "string" + }, + "imageReference": { + "$ref": "#/definitions/GalleryImageReference", + "description": "The image reference of the gallery image.", + "x-ms-client-flatten": true + }, + "icon": { + "description": "The icon of the gallery image.", + "type": "string" + }, + "enabled": { + "description": "Indicates whether this gallery image is enabled.", + "type": "boolean" + }, + "planId": { + "description": "The third party plan that applies to this image", + "type": "string" + }, + "isPlanAuthorized": { + "description": "Indicates if the plan has been authorized for programmatic deployment.", + "type": "boolean" + } + } + }, + "GalleryImageReference": { + "description": "The reference information for an Azure Marketplace image.", + "type": "object", + "properties": { + "offer": { + "description": "The offer of the gallery image.", + "type": "string" + }, + "publisher": { + "description": "The publisher of the gallery image.", + "type": "string" + }, + "sku": { + "description": "The SKU of the gallery image.", + "type": "string" + }, + "osType": { + "description": "The OS type of the gallery image.", + "type": "string" + }, + "version": { + "description": "The version of the gallery image.", + "type": "string" + } + } + }, + "GenerateArmTemplateRequest": { + "description": "Parameters for generating an ARM template for deploying artifacts.", + "type": "object", + "properties": { + "virtualMachineName": { + "description": "The resource name of the virtual machine.", + "type": "string" + }, + "parameters": { + "description": "The parameters of the ARM template.", + "type": "array", + "items": { + "$ref": "#/definitions/ParameterInfo" + } + }, + "location": { + "description": "The location of the virtual machine.", + "type": "string" + }, + "fileUploadOptions": { + "description": "Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value.", + "enum": [ + "UploadFilesAndGenerateSasTokens", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "FileUploadOptions", + "modelAsString": true + } + } + } + }, + "GenerateUploadUriParameter": { + "description": "Properties for generating an upload URI.", + "type": "object", + "properties": { + "blobName": { + "description": "The blob name of the upload URI.", + "type": "string" + } + } + }, + "GenerateUploadUriResponse": { + "description": "Response body for generating an upload URI.", + "type": "object", + "properties": { + "uploadUri": { + "description": "The upload URI for the VHD.", + "type": "string" + } + } + }, + "HourDetails": { + "description": "Properties of an hourly schedule.", + "type": "object", + "properties": { + "minute": { + "format": "int32", + "description": "Minutes of the hour the schedule will run.", + "type": "integer" + } + } + }, + "IdentityProperties": { + "description": "Properties of a managed identity", + "type": "object", + "properties": { + "type": { + "description": "Type of identity (SystemAssigned, UserAssigned, None)", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedIdentityType", + "modelAsString": true + } + }, + "principalId": { + "description": "The principal id of resource identity.", + "type": "string" + }, + "tenantId": { + "description": "The tenant identifier of resource.", + "type": "string" + }, + "clientSecretUrl": { + "description": "The client secret URL of the identity.", + "type": "string" + }, + "userAssignedIdentities": { + "description": "If Type is 'UserAssigned': List of user assigned identities.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "ImageVersionProperties": { + "type": "object", + "description": "Properties for a shared image version.", + "properties": { + "name": { + "description": "Image version name", + "type": "string" + } + } + }, + "ImportLabVirtualMachineRequest": { + "description": "This represents the payload required to import a virtual machine from a different lab into the current one", + "type": "object", + "properties": { + "sourceVirtualMachineResourceId": { + "description": "The full resource ID of the virtual machine to be imported.", + "type": "string" + }, + "destinationVirtualMachineName": { + "description": "The name of the virtual machine in the destination lab", + "type": "string" + } + } + }, + "InboundNatRule": { + "description": "A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.", + "type": "object", + "properties": { + "transportProtocol": { + "description": "The transport protocol for the endpoint.", + "enum": [ + "Tcp", + "Udp" + ], + "type": "string", + "x-ms-enum": { + "name": "TransportProtocol", + "modelAsString": true + } + }, + "frontendPort": { + "format": "int32", + "description": "The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.", + "type": "integer" + }, + "backendPort": { + "format": "int32", + "description": "The port to which the external traffic will be redirected.", + "type": "integer" + } + } + }, + "Lab": { + "description": "A lab.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/LabProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "identity": { + "description": "The identity of the resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/IdentityProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "LabAnnouncementProperties": { + "description": "Properties of a lab's announcement banner", + "type": "object", + "properties": { + "title": { + "description": "The plain text title for the lab announcement", + "type": "string" + }, + "markdown": { + "description": "The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.", + "type": "string" + }, + "enabled": { + "description": "Is the lab announcement active/enabled at this time?", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true + } + }, + "expirationDate": { + "format": "date-time", + "description": "The time at which the announcement expires (null for never)", + "type": "string" + }, + "expired": { + "description": "Has this announcement expired?", + "type": "boolean" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "LabCost": { + "description": "A cost item.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/LabCostProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "LabCostDetailsProperties": { + "description": "The properties of a lab cost item.", + "type": "object", + "properties": { + "date": { + "format": "date-time", + "description": "The date of the cost item.", + "type": "string" + }, + "cost": { + "format": "double", + "description": "The cost component of the cost item.", + "type": "number" + }, + "costType": { + "description": "The type of the cost.", + "enum": [ + "Unavailable", + "Reported", + "Projected" + ], + "type": "string", + "x-ms-enum": { + "name": "CostType", + "modelAsString": true + } + } + } + }, + "LabCostList": { + "description": "Contains a list of costs and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of costs and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/LabCost" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "LabCostProperties": { + "description": "Properties of a cost item.", + "type": "object", + "properties": { + "targetCost": { + "$ref": "#/definitions/TargetCostProperties", + "description": "The target cost properties", + "x-ms-client-flatten": true + }, + "labCostSummary": { + "$ref": "#/definitions/LabCostSummaryProperties", + "description": "The lab cost summary component of the cost data.", + "x-ms-client-flatten": true, + "readOnly": true + }, + "labCostDetails": { + "description": "The lab cost details component of the cost data.", + "type": "array", + "items": { + "$ref": "#/definitions/LabCostDetailsProperties" + }, + "readOnly": true + }, + "resourceCosts": { + "description": "The resource cost component of the cost data.", + "type": "array", + "items": { + "$ref": "#/definitions/LabResourceCostProperties" + }, + "readOnly": true + }, + "currencyCode": { + "description": "The currency code of the cost.", + "type": "string" + }, + "startDateTime": { + "format": "date-time", + "description": "The start time of the cost data.", + "type": "string" + }, + "endDateTime": { + "format": "date-time", + "description": "The end time of the cost data.", + "type": "string" + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the cost.", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "LabCostSummaryProperties": { + "description": "The properties of the cost summary.", + "type": "object", + "properties": { + "estimatedLabCost": { + "format": "double", + "description": "The cost component of the cost item.", + "type": "number" + } + } + }, + "LabFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "LabList": { + "description": "Contains a list of labs and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of labs and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/Lab" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "LabProperties": { + "description": "Properties of a lab.", + "type": "object", + "properties": { + "defaultStorageAccount": { + "description": "The lab's default storage account.", + "type": "string", + "readOnly": true + }, + "defaultPremiumStorageAccount": { + "description": "The lab's default premium storage account.", + "type": "string", + "readOnly": true + }, + "artifactsStorageAccount": { + "description": "The lab's artifact storage account.", + "type": "string", + "readOnly": true + }, + "premiumDataDiskStorageAccount": { + "description": "The lab's premium data disk storage account.", + "type": "string", + "readOnly": true + }, + "vaultName": { + "description": "The lab's Key vault.", + "type": "string", + "readOnly": true + }, + "labStorageType": { + "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.", + "default": "Premium", + "enum": [ + "Standard", + "Premium", + "StandardSSD" + ], + "type": "string", + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true + } + }, + "mandatoryArtifactsResourceIdsLinux": { + "description": "The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.", + "type": "array", + "items": { + "type": "string" + } + }, + "mandatoryArtifactsResourceIdsWindows": { + "description": "The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.", + "type": "array", + "items": { + "type": "string" + } + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the lab.", + "type": "string", + "readOnly": true + }, + "premiumDataDisks": { + "description": "The setting to enable usage of premium data disks.\r\nWhen its value is 'Enabled', creation of standard or premium data disks is allowed.\r\nWhen its value is 'Disabled', only creation of standard data disks is allowed.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PremiumDataDisk", + "modelAsString": true + } + }, + "environmentPermission": { + "description": "The access rights to be granted to the user when provisioning an environment", + "enum": [ + "Reader", + "Contributor" + ], + "type": "string", + "x-ms-enum": { + "name": "EnvironmentPermission", + "modelAsString": true + } + }, + "announcement": { + "$ref": "#/definitions/LabAnnouncementProperties", + "description": "The properties of any lab announcement associated with this lab", + "x-ms-client-flatten": true + }, + "support": { + "$ref": "#/definitions/LabSupportProperties", + "description": "The properties of any lab support message associated with this lab", + "x-ms-client-flatten": true + }, + "vmCreationResourceGroup": { + "description": "The resource group ID in which all new lab virtual machines will be created. Ex: /subscriptions/subId/resourceGroups/rgName To let DevTest Labs manage resource group creation, set this value to null.", + "type": "string", + "readOnly": true + }, + "publicIpId": { + "description": "The public IP address for the lab's load balancer.", + "type": "string", + "readOnly": true + }, + "loadBalancerId": { + "description": "The load balancer used to for lab VMs that use shared IP address.", + "type": "string", + "readOnly": true + }, + "networkSecurityGroupId": { + "description": "The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.", + "type": "string", + "readOnly": true + }, + "extendedProperties": { + "description": "Extended properties of the lab used for experimental features", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "browserConnect": { + "description": "Is browser connect enabled for the lab", + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true + } + }, + "disableAutoUpgradeCseMinorVersion": { + "description": "Is auto upgrade of CSE disabled for the lab?", + "type": "boolean" + }, + "managementIdentities": { + "description": "List of identities which can be used for management of resources.", + "type": "object", + "additionalProperties": { + "type": "object" + } + }, + "isolateLabResources": { + "description": "Indicates whether to create Lab resources (e.g. Storage accounts and Key Vaults) in network isolation.", + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true + } + }, + "encryption": { + "description": "Mechanism used for encryption of resources in a lab (such as virtual machines).", + "x-ms-client-flatten": true, + "$ref": "#/definitions/Encryption" + }, + "defaultSecretName": { + "description": "Default secret for creating virtual machines.", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "LabResourceCostProperties": { + "description": "The properties of a resource cost item.", + "type": "object", + "properties": { + "resourcename": { + "description": "The name of the resource.", + "type": "string" + }, + "resourceUId": { + "description": "The unique identifier of the resource.", + "type": "string" + }, + "resourceCost": { + "format": "double", + "description": "The cost component of the resource cost item.", + "type": "number" + }, + "resourceType": { + "description": "The logical resource type (ex. virtualmachine, storageaccount)", + "type": "string" + }, + "resourceOwner": { + "description": "The owner of the resource (ex. janedoe@microsoft.com)", + "type": "string" + }, + "resourcePricingTier": { + "description": "The category of the resource (ex. Premium_LRS, Standard_DS1)", + "type": "string" + }, + "resourceStatus": { + "description": "The status of the resource (ex. Active)", + "type": "string" + }, + "resourceId": { + "description": "The ID of the resource", + "type": "string" + }, + "externalResourceId": { + "description": "The ID of the external resource", + "type": "string" + } + } + }, + "LabSecret": { + "description": "A shared secret in a lab.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/LabSecretProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "LabSecretFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "LabSecretList": { + "description": "Contains a list of secrets and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of secrets and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/LabSecret" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "LabSecretProperties": { + "description": "The properties of labs secrets", + "type": "object", + "properties": { + "value": { + "description": "The value of the secret for secret creation.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "keyVaultEntry": { + "description": "The name of the entry in the lab KeyVault.", + "type": "string", + "x-ms-mutability": [ + "read" + ], + "readOnly": true + }, + "enabledForArtifacts": { + "description": "Is the secret enabled for use with artifacts?", + "type": "boolean" + }, + "enabledForVmCreation": { + "description": "Is the secret enabled for use with creation of VMs?", + "type": "boolean" + }, + "enabledForArmEnvironments": { + "description": "Is the secret enabled for use with ARM environments?", + "type": "boolean" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "LabSupportProperties": { + "description": "Properties of a lab's support banner", + "type": "object", + "properties": { + "enabled": { + "description": "Is the lab support banner active/enabled at this time?", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true + } + }, + "markdown": { + "description": "The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.", + "type": "string" + } + } + }, + "LabVhd": { + "description": "Properties of a VHD in the lab.", + "type": "object", + "properties": { + "id": { + "description": "The URI to the VHD.", + "type": "string" + } + } + }, + "LabVhdList": { + "description": "Contains a list of Lab Vhd and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of Lab Vhd and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/LabVhd" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "LabVirtualMachine": { + "description": "A virtual machine.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/LabVirtualMachineProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "LabVirtualMachineCreationParameter": { + "description": "Properties for creating a virtual machine.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/LabVirtualMachineCreationParameterProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "name": { + "description": "The name of the virtual machine or environment", + "type": "string" + }, + "location": { + "description": "The location of the new virtual machine or environment", + "type": "string" + }, + "tags": { + "description": "The tags of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "LabVirtualMachineCreationParameterProperties": { + "description": "Properties for virtual machine creation.", + "type": "object", + "properties": { + "bulkCreationParameters": { + "$ref": "#/definitions/BulkCreationParameters", + "description": "The number of virtual machine instances to create.", + "x-ms-client-flatten": true + }, + "notes": { + "description": "The notes of the virtual machine.", + "type": "string" + }, + "ownerObjectId": { + "description": "The object identifier of the owner of the virtual machine.", + "default": "dynamicValue", + "type": "string" + }, + "ownerUserPrincipalName": { + "description": "The user principal name of the virtual machine owner.", + "type": "string" + }, + "createdByUserId": { + "description": "The object identifier of the creator of the virtual machine.", + "type": "string", + "readOnly": true + }, + "createdByUser": { + "description": "The email address of creator of the virtual machine.", + "type": "string", + "readOnly": true + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the virtual machine.", + "type": "string" + }, + "computeId": { + "description": "The resource identifier (Microsoft.Compute) of the virtual machine.", + "type": "string", + "readOnly": true + }, + "customImageId": { + "description": "The custom image identifier of the virtual machine.", + "type": "string" + }, + "galleryImageVersionId": { + "description": "The shared gallery image version resource identifier of the virtual machine.", + "type": "string" + }, + "sharedImageId": { + "description": "The shared image resource identifier of the virtual machine.", + "type": "string" + }, + "sharedImageVersion": { + "description": "The shared image version for the specified shared image Id. Will use latest if not specified.", + "type": "string" + }, + "osType": { + "description": "The OS type of the virtual machine.", + "type": "string", + "readOnly": true + }, + "size": { + "description": "The size of the virtual machine.", + "type": "string" + }, + "userName": { + "description": "The user name of the virtual machine.", + "type": "string" + }, + "password": { + "description": "The password of the virtual machine administrator.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "sshKey": { + "description": "The SSH key of the virtual machine administrator.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "isAuthenticationWithSshKey": { + "description": "Indicates whether this virtual machine uses an SSH key for authentication.", + "type": "boolean" + }, + "fqdn": { + "description": "The fully-qualified domain name of the virtual machine.", + "type": "string", + "readOnly": true + }, + "labSubnetName": { + "description": "The lab subnet name of the virtual machine.", + "type": "string" + }, + "labVirtualNetworkId": { + "description": "The lab virtual network identifier of the virtual machine.", + "type": "string" + }, + "disallowPublicIpAddress": { + "description": "Indicates whether the virtual machine is to be created without a public IP address.", + "default": false, + "type": "boolean" + }, + "artifacts": { + "description": "The artifacts to be installed on the virtual machine.", + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactInstallProperties" + }, + "x-ms-identifiers": [ + "artifactId" + ] + }, + "artifactDeploymentStatus": { + "$ref": "#/definitions/ArtifactDeploymentStatusProperties", + "description": "The artifact deployment status for the virtual machine.", + "x-ms-client-flatten": true, + "readOnly": true + }, + "galleryImageReference": { + "$ref": "#/definitions/GalleryImageReference", + "description": "The Microsoft Azure Marketplace image reference of the virtual machine.", + "x-ms-client-flatten": true + }, + "planId": { + "description": "The id of the plan associated with the virtual machine image", + "type": "string" + }, + "osDiskSizeGb": { + "format": "int32", + "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.", + "type": "integer" + }, + "computeVm": { + "$ref": "#/definitions/ComputeVmProperties", + "description": "The compute virtual machine properties.", + "x-ms-client-flatten": true, + "readOnly": true + }, + "networkInterface": { + "$ref": "#/definitions/NetworkInterfaceProperties", + "description": "The network interface properties.", + "x-ms-client-flatten": true + }, + "applicableSchedule": { + "$ref": "#/definitions/ApplicableSchedule", + "description": "The applicable schedule for the virtual machine.", + "x-ms-client-flatten": true, + "readOnly": true + }, + "expirationDate": { + "format": "date-time", + "description": "The expiration date for VM.", + "type": "string" + }, + "allowClaim": { + "description": "Indicates whether another user can take ownership of the virtual machine", + "default": false, + "type": "boolean" + }, + "storageType": { + "description": "Storage type to use for virtual machine (i.e. Standard, Premium, StandardSSD).", + "default": "Standard", + "type": "string", + "enum": [ + "Standard", + "Premium", + "StandardSSD" + ], + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true + } + }, + "virtualMachineCreationSource": { + "description": "Tells source of creation of lab virtual machine. Output property only.", + "enum": [ + "FromCustomImage", + "FromGalleryImage", + "FromSharedGalleryImage" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "VirtualMachineCreationSource", + "modelAsString": true + } + }, + "environmentId": { + "description": "The resource ID of the environment that contains this virtual machine, if any.", + "type": "string" + }, + "dataDiskParameters": { + "description": "New or existing data disks to attach to the virtual machine after creation", + "type": "array", + "items": { + "$ref": "#/definitions/DataDiskProperties" + } + }, + "scheduleParameters": { + "description": "Virtual Machine schedules to be created", + "type": "array", + "items": { + "$ref": "#/definitions/ScheduleCreationParameter" + } + }, + "lastKnownPowerState": { + "description": "Last known compute power state captured in DTL", + "type": "string", + "readOnly": true + }, + "canApplyArtifacts": { + "description": "Flag to determine if apply artifacts can be triggered at the time of fetching the document.", + "type": "boolean", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "LabVirtualMachineFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "LabVirtualMachineList": { + "description": "Contains a list of virtualMachines and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of virtualMachines and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/LabVirtualMachine" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "LabVirtualMachineProperties": { + "description": "Properties of a virtual machine.", + "type": "object", + "properties": { + "notes": { + "description": "The notes of the virtual machine.", + "type": "string" + }, + "ownerObjectId": { + "description": "The object identifier of the owner of the virtual machine.", + "default": "dynamicValue", + "type": "string" + }, + "ownerUserPrincipalName": { + "description": "The user principal name of the virtual machine owner.", + "type": "string" + }, + "createdByUserId": { + "description": "The object identifier of the creator of the virtual machine.", + "type": "string", + "readOnly": true + }, + "createdByUser": { + "description": "The email address of creator of the virtual machine.", + "type": "string", + "readOnly": true + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the virtual machine.", + "type": "string" + }, + "computeId": { + "description": "The resource identifier (Microsoft.Compute) of the virtual machine.", + "type": "string", + "readOnly": true + }, + "customImageId": { + "description": "The custom image identifier of the virtual machine.", + "type": "string" + }, + "galleryImageVersionId": { + "description": "The shared gallery image version resource identifier of the virtual machine.", + "type": "string" + }, + "sharedImageId": { + "description": "The shared image resource identifier of the virtual machine.", + "type": "string" + }, + "sharedImageVersion": { + "description": "The shared image version for the specified shared image Id. Will use latest if not specified.", + "type": "string" + }, + "osType": { + "description": "The OS type of the virtual machine.", + "type": "string", + "readOnly": true + }, + "size": { + "description": "The size of the virtual machine.", + "type": "string" + }, + "userName": { + "description": "The user name of the virtual machine.", + "type": "string" + }, + "password": { + "description": "The password of the virtual machine administrator.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "sshKey": { + "description": "The SSH key of the virtual machine administrator.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "isAuthenticationWithSshKey": { + "description": "Indicates whether this virtual machine uses an SSH key for authentication.", + "type": "boolean" + }, + "fqdn": { + "description": "The fully-qualified domain name of the virtual machine.", + "type": "string", + "readOnly": true + }, + "labSubnetName": { + "description": "The lab subnet name of the virtual machine.", + "type": "string" + }, + "labVirtualNetworkId": { + "description": "The lab virtual network identifier of the virtual machine.", + "type": "string" + }, + "disallowPublicIpAddress": { + "description": "Indicates whether the virtual machine is to be created without a public IP address.", + "default": false, + "type": "boolean" + }, + "artifacts": { + "description": "The artifacts to be installed on the virtual machine.", + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactInstallProperties" + }, + "x-ms-identifiers": [ + "artifactId" + ] + }, + "artifactDeploymentStatus": { + "$ref": "#/definitions/ArtifactDeploymentStatusProperties", + "description": "The artifact deployment status for the virtual machine.", + "x-ms-client-flatten": true, + "readOnly": true + }, + "galleryImageReference": { + "$ref": "#/definitions/GalleryImageReference", + "description": "The Microsoft Azure Marketplace image reference of the virtual machine.", + "x-ms-client-flatten": true + }, + "planId": { + "description": "The id of the plan associated with the virtual machine image", + "type": "string" + }, + "osDiskSizeGb": { + "format": "int32", + "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.", + "type": "integer" + }, + "computeVm": { + "$ref": "#/definitions/ComputeVmProperties", + "description": "The compute virtual machine properties.", + "x-ms-client-flatten": true, + "readOnly": true + }, + "networkInterface": { + "$ref": "#/definitions/NetworkInterfaceProperties", + "description": "The network interface properties.", + "x-ms-client-flatten": true + }, + "applicableSchedule": { + "$ref": "#/definitions/ApplicableSchedule", + "description": "The applicable schedule for the virtual machine.", + "x-ms-client-flatten": true, + "readOnly": true + }, + "expirationDate": { + "format": "date-time", + "description": "The expiration date for VM.", + "type": "string" + }, + "allowClaim": { + "description": "Indicates whether another user can take ownership of the virtual machine", + "default": false, + "type": "boolean" + }, + "storageType": { + "description": "Storage type to use for virtual machine (i.e. Standard, Premium, StandardSSD).", + "default": "Standard", + "enum": [ + "Standard", + "Premium", + "StandardSSD" + ], + "type": "string", + "x-ms-enum": { + "name": "StorageTypes", + "modelAsString": true + } + }, + "virtualMachineCreationSource": { + "description": "Tells source of creation of lab virtual machine. Output property only.", + "enum": [ + "FromCustomImage", + "FromGalleryImage", + "FromSharedGalleryImage" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "VirtualMachineCreationSource", + "modelAsString": true + } + }, + "environmentId": { + "description": "The resource ID of the environment that contains this virtual machine, if any.", + "type": "string" + }, + "dataDiskParameters": { + "description": "New or existing data disks to attach to the virtual machine after creation", + "type": "array", + "items": { + "$ref": "#/definitions/DataDiskProperties" + } + }, + "scheduleParameters": { + "description": "Virtual Machine schedules to be created", + "type": "array", + "items": { + "$ref": "#/definitions/ScheduleCreationParameter" + } + }, + "lastKnownPowerState": { + "description": "Last known compute power state captured in DTL", + "type": "string", + "readOnly": true + }, + "canApplyArtifacts": { + "description": "Flag to determine if apply artifacts can be triggered at the time of fetching the document.", + "type": "boolean", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "LinuxOsInfo": { + "description": "Information about a Linux OS.", + "type": "object", + "properties": { + "linuxOsState": { + "description": "The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).", + "enum": [ + "NonDeprovisioned", + "DeprovisionRequested", + "DeprovisionApplied" + ], + "type": "string", + "x-ms-enum": { + "name": "LinuxOsState", + "modelAsString": true + } + } + } + }, + "NetworkInterfaceProperties": { + "description": "Properties of a network interface.", + "type": "object", + "properties": { + "virtualNetworkId": { + "description": "The resource ID of the virtual network.", + "type": "string" + }, + "subnetId": { + "description": "The resource ID of the sub net.", + "type": "string" + }, + "publicIpAddressId": { + "description": "The resource ID of the public IP address.", + "type": "string" + }, + "publicIpAddress": { + "description": "The public IP address.", + "type": "string" + }, + "privateIpAddress": { + "description": "The private IP address.", + "type": "string" + }, + "dnsName": { + "description": "The DNS name.", + "type": "string" + }, + "rdpAuthority": { + "description": "The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).", + "type": "string" + }, + "sshAuthority": { + "description": "The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.", + "type": "string" + }, + "sharedPublicIpAddressConfiguration": { + "$ref": "#/definitions/SharedPublicIpAddressConfiguration", + "description": "The configuration for sharing a public IP address across multiple virtual machines.", + "x-ms-client-flatten": true + } + } + }, + "NotificationChannel": { + "description": "A notification.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/NotificationChannelProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "NotificationChannelFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "NotificationChannelList": { + "description": "Contains a list of notificationChannels and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of notificationChannels and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/NotificationChannel" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "NotificationChannelProperties": { + "description": "Properties of a schedule.", + "type": "object", + "properties": { + "webHookUrl": { + "description": "The webhook URL to send notifications to.", + "type": "string" + }, + "emailRecipient": { + "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses).", + "type": "string" + }, + "notificationLocale": { + "description": "The locale to use when sending a notification (fallback for unsupported languages is EN).", + "type": "string" + }, + "description": { + "description": "Description of notification.", + "type": "string" + }, + "events": { + "description": "The list of event for which this notification is enabled.", + "type": "array", + "items": { + "$ref": "#/definitions/Event" + } + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the notification channel.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "NotificationSettings": { + "description": "Notification settings for a schedule.", + "type": "object", + "properties": { + "status": { + "description": "If notifications are enabled for this schedule (i.e. Enabled, Disabled).", + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true + } + }, + "timeInMinutes": { + "format": "int32", + "description": "Time in minutes before event at which notification will be sent.", + "type": "integer" + }, + "webhookUrl": { + "description": "The webhook URL to which the notification will be sent.", + "type": "string" + }, + "emailRecipient": { + "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses).", + "type": "string" + }, + "notificationLocale": { + "description": "The locale to use when sending a notification (fallback for unsupported languages is EN).", + "type": "string" + } + } + }, + "NotifyParameters": { + "description": "Properties for generating a Notification.", + "type": "object", + "properties": { + "eventName": { + "description": "The type of event (i.e. AutoShutdown, Cost)", + "enum": [ + "AutoShutdown", + "Cost" + ], + "type": "string", + "x-ms-enum": { + "name": "NotificationChannelEventType", + "modelAsString": true + } + }, + "jsonPayload": { + "description": "Properties for the notification in json format.", + "type": "string" + } + } + }, + "OperationError": { + "description": "Error details for the operation in case of a failure.", + "type": "object", + "properties": { + "code": { + "description": "The error code of the operation error.", + "type": "string" + }, + "message": { + "description": "The error message of the operation error.", + "type": "string" + } + } + }, + "OperationMetadata": { + "description": "The REST API operation supported by DevTestLab ResourceProvider.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationMetadataDisplay", + "description": "The object that describes the operations" + } + } + }, + "OperationMetadataDisplay": { + "description": "The object that describes the operations", + "type": "object", + "properties": { + "provider": { + "description": "Friendly name of the resource provider", + "type": "string" + }, + "resource": { + "description": "Resource type on which the operation is performed.", + "type": "string" + }, + "operation": { + "description": "Operation type: read, write, delete, listKeys/action, etc.", + "type": "string" + }, + "description": { + "description": "Friendly name of the operation", + "type": "string" + } + } + }, + "OperationResult": { + "description": "An Operation Result", + "type": "object", + "properties": { + "status": { + "description": "The operation status.", + "type": "string" + }, + "statusCode": { + "description": "The status code for the operation.", + "enum": [ + "Continue", + "SwitchingProtocols", + "Processing", + "EarlyHints", + "OK", + "Created", + "Accepted", + "NonAuthoritativeInformation", + "NoContent", + "ResetContent", + "PartialContent", + "MultiStatus", + "AlreadyReported", + "IMUsed", + "MultipleChoices", + "Ambiguous", + "MovedPermanently", + "Moved", + "Found", + "Redirect", + "SeeOther", + "RedirectMethod", + "NotModified", + "UseProxy", + "Unused", + "TemporaryRedirect", + "RedirectKeepVerb", + "PermanentRedirect", + "BadRequest", + "Unauthorized", + "PaymentRequired", + "Forbidden", + "NotFound", + "MethodNotAllowed", + "NotAcceptable", + "ProxyAuthenticationRequired", + "RequestTimeout", + "Conflict", + "Gone", + "LengthRequired", + "PreconditionFailed", + "RequestEntityTooLarge", + "RequestUriTooLong", + "UnsupportedMediaType", + "RequestedRangeNotSatisfiable", + "ExpectationFailed", + "MisdirectedRequest", + "UnprocessableEntity", + "Locked", + "FailedDependency", + "UpgradeRequired", + "PreconditionRequired", + "TooManyRequests", + "RequestHeaderFieldsTooLarge", + "UnavailableForLegalReasons", + "InternalServerError", + "NotImplemented", + "BadGateway", + "ServiceUnavailable", + "GatewayTimeout", + "HttpVersionNotSupported", + "VariantAlsoNegotiates", + "InsufficientStorage", + "LoopDetected", + "NotExtended", + "NetworkAuthenticationRequired" + ], + "type": "string", + "x-ms-enum": { + "name": "HttpStatusCode", + "modelAsString": true + } + }, + "error": { + "$ref": "#/definitions/OperationError", + "description": "Error details for the operation in case of a failure.", + "x-ms-client-flatten": true + } + } + }, + "ParameterInfo": { + "description": "Information about an artifact's parameter.", + "type": "object", + "properties": { + "name": { + "description": "The name of the artifact parameter.", + "type": "string" + }, + "value": { + "description": "The value of the artifact parameter.", + "type": "string" + } + } + }, + "ParametersValueFileInfo": { + "description": "A file containing a set of parameter values for an ARM template.", + "type": "object", + "properties": { + "fileName": { + "description": "File name.", + "type": "string" + }, + "parametersValueInfo": { + "description": "Contents of the file.", + "type": "object" + } + } + }, + "PercentageCostThresholdProperties": { + "description": "Properties of a percentage cost threshold.", + "type": "object", + "properties": { + "thresholdValue": { + "format": "double", + "description": "The cost threshold value.", + "type": "number" + } + } + }, + "Policy": { + "description": "A Policy.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PolicyProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "PolicyFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "PolicyList": { + "description": "Contains a list of policies and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of policies and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/Policy" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "PolicyProperties": { + "description": "Properties of a Policy.", + "type": "object", + "properties": { + "description": { + "description": "The description of the policy.", + "type": "string" + }, + "status": { + "description": "The status of the policy.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PolicyStatus", + "modelAsString": true + } + }, + "factName": { + "description": "The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.", + "enum": [ + "UserOwnedLabVmCount", + "UserOwnedLabPremiumVmCount", + "LabVmCount", + "LabPremiumVmCount", + "LabVmSize", + "GalleryImage", + "UserOwnedLabVmCountInSubnet", + "LabTargetCost", + "EnvironmentTemplate", + "ScheduleEditPermission" + ], + "type": "string", + "x-ms-enum": { + "name": "PolicyFactName", + "modelAsString": true + } + }, + "factData": { + "description": "The fact data of the policy.", + "type": "string" + }, + "threshold": { + "description": "The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).", + "type": "string" + }, + "evaluatorType": { + "description": "The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).", + "enum": [ + "AllowedValuesPolicy", + "MaxValuePolicy" + ], + "type": "string", + "x-ms-enum": { + "name": "PolicyEvaluatorType", + "modelAsString": true + } + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the policy.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "PolicySet": { + "type": "object", + "description": "A PolicySet.", + "properties": { + "properties": { + "description": "The properties of the resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/PolicySetProperties" + }, + "systemData": { + "description": "The system metadata relating to this resource", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "PolicySetList": { + "type": "object", + "description": "Contains a list of policySets and their properties", + "properties": { + "value": { + "description": "List of policySets and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/PolicySet" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "PolicySetProperties": { + "type": "object", + "description": "Properties of a PolicySet.", + "properties": { + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "PolicySetResult": { + "type": "object", + "description": "Result of a policy set evaluation.", + "properties": { + "hasError": { + "description": "A value indicating whether this policy set evaluation has discovered violations.", + "type": "boolean" + }, + "policyViolations": { + "description": "The list of policy violations.", + "type": "array", + "items": { + "$ref": "#/definitions/PolicyViolation" + } + } + } + }, + "PolicyViolation": { + "type": "object", + "description": "Policy violation.", + "properties": { + "code": { + "description": "The code of the policy violation.", + "type": "string" + }, + "message": { + "description": "The message of the policy violation.", + "type": "string" + } + } + }, + "Port": { + "type": "object", + "description": "Properties of a network port.", + "properties": { + "transportProtocol": { + "description": "Protocol type of the port.", + "type": "string", + "enum": [ + "Tcp", + "Udp" + ], + "x-ms-enum": { + "name": "TransportProtocol", + "modelAsString": true + } + }, + "backendPort": { + "description": "Backend port of the target virtual machine.", + "type": "integer", + "format": "int32" + } + } + }, + "ProviderOperationResult": { + "description": "Result of the request to list REST API operations", + "type": "object", + "properties": { + "value": { + "description": "List of operations supported by the resource provider.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetadata" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "RdpConnection": { + "type": "object", + "description": "Represents a .rdp file", + "properties": { + "contents": { + "description": "The contents of the .rdp file", + "type": "string" + } + } + }, + "ResizeLabVirtualMachineProperties": { + "type": "object", + "description": "Request body for resizing a virtual machine.", + "properties": { + "size": { + "description": "Specifies the size of the virtual machine.", + "type": "string" + } + } + }, + "RetargetScheduleProperties": { + "type": "object", + "description": "Properties for retargeting a virtual machine schedule.", + "properties": { + "currentResourceId": { + "description": "The resource Id of the virtual machine on which the schedule operates", + "type": "string" + }, + "targetResourceId": { + "description": "The resource Id of the virtual machine that the schedule should be retargeted to", + "type": "string" + } + } + }, + "Schedule": { + "type": "object", + "description": "A schedule.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "The properties of the resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ScheduleProperties" + }, + "systemData": { + "description": "The system metadata relating to this resource", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + } + }, + "ScheduleCreationParameter": { + "type": "object", + "description": "Properties for creating a schedule.", + "properties": { + "properties": { + "description": "The properties of the schedule.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ScheduleCreationParameterProperties" + }, + "name": { + "description": "The name of the virtual machine or environment", + "type": "string" + }, + "location": { + "description": "The location of the new virtual machine or environment", + "type": "string", + "readOnly": true + }, + "tags": { + "description": "The tags of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ScheduleCreationParameterProperties": { + "description": "Properties for schedule creation.", + "type": "object", + "properties": { + "status": { + "description": "The status of the schedule (i.e. Enabled, Disabled)", + "type": "string", + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true + } + }, + "taskType": { + "description": "The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).", + "type": "string" + }, + "weeklyRecurrence": { + "description": "If the schedule will occur only some days of the week, specify the weekly recurrence.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/WeekDetails" + }, + "dailyRecurrence": { + "description": "If the schedule will occur once each day of the week, specify the daily recurrence.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DayDetails" + }, + "hourlyRecurrence": { + "description": "If the schedule will occur multiple times a day, specify the hourly recurrence.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/HourDetails" + }, + "timeZoneId": { + "description": "The time zone ID (e.g. Pacific Standard time).", + "type": "string" + }, + "notificationSettings": { + "$ref": "#/definitions/NotificationSettings", + "description": "Notification settings.", + "x-ms-client-flatten": true + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the schedule.", + "type": "string", + "readOnly": true + }, + "targetResourceId": { + "description": "The resource ID to which the schedule belongs", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "ScheduleFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "ScheduleList": { + "description": "Contains a list of schedules and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of schedules and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/Schedule" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "ScheduleProperties": { + "description": "Properties of a schedule.", + "type": "object", + "properties": { + "status": { + "description": "The status of the schedule (i.e. Enabled, Disabled)", + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "EnableStatus", + "modelAsString": true + } + }, + "taskType": { + "description": "The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).", + "type": "string" + }, + "weeklyRecurrence": { + "$ref": "#/definitions/WeekDetails", + "description": "If the schedule will occur only some days of the week, specify the weekly recurrence.", + "x-ms-client-flatten": true + }, + "dailyRecurrence": { + "$ref": "#/definitions/DayDetails", + "description": "If the schedule will occur once each day of the week, specify the daily recurrence.", + "x-ms-client-flatten": true + }, + "hourlyRecurrence": { + "$ref": "#/definitions/HourDetails", + "description": "If the schedule will occur multiple times a day, specify the hourly recurrence.", + "x-ms-client-flatten": true + }, + "timeZoneId": { + "description": "The time zone ID (e.g. Pacific Standard time).", + "type": "string" + }, + "notificationSettings": { + "$ref": "#/definitions/NotificationSettings", + "description": "Notification settings.", + "x-ms-client-flatten": true + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the schedule.", + "type": "string", + "readOnly": true + }, + "targetResourceId": { + "description": "The resource ID to which the schedule belongs", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "Secret": { + "description": "A secret.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/SecretProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "SecretFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "SecretList": { + "description": "Contains a list of secrets and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of secrets and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/Secret" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "SecretProperties": { + "description": "Properties of a secret.", + "type": "object", + "properties": { + "value": { + "description": "The value of the secret for secret creation.", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "ServiceFabric": { + "description": "A Service Fabric.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ServiceFabricProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "ServiceFabricFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "ServiceFabricList": { + "description": "Contains a list of serviceFabrics and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of serviceFabrics and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/ServiceFabric" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "ServiceFabricProperties": { + "description": "Properties of a service fabric.", + "type": "object", + "properties": { + "externalServiceFabricId": { + "description": "The backing service fabric resource's id", + "type": "string" + }, + "environmentId": { + "description": "The resource id of the environment under which the service fabric resource is present", + "type": "string" + }, + "applicableSchedule": { + "$ref": "#/definitions/ApplicableSchedule", + "description": "The applicable schedule for the virtual machine.", + "x-ms-client-flatten": true, + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "ServiceRunner": { + "description": "A container for a managed identity to execute DevTest lab services.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "The properties of the resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServiceRunnerProperties" + }, + "identity": { + "description": "The identity of the resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/IdentityProperties" + }, + "systemData": { + "description": "The system metadata relating to this resource", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + } + }, + "ServiceRunnerList": { + "description": "Contains a list of serviceRunners and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of serviceRunners and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/ServiceRunner" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "ServiceRunnerProperties": { + "type": "object", + "description": "Properties of a virtual machine.", + "properties": { + "identityUsageType": { + "description": "The purpose of bringing the identity to the lab. Ex: To use during Environment creation or to deploy on the VMs.", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "SharedGallery": { + "type": "object", + "description": "Properties of a shared gallery", + "properties": { + "properties": { + "description": "The properties of the resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/SharedGalleryProperties" + }, + "systemData": { + "description": "The system metadata relating to this resource", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "SharedGalleryFragment": { + "type": "object", + "description": "Patch", + "properties": {}, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ] + }, + "SharedGalleryList": { + "type": "object", + "description": "Contains a list of sharedGalleries and their properties", + "properties": { + "value": { + "description": "List of sharedGalleries and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/SharedGallery" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "SharedGalleryProperties": { + "type": "object", + "description": "Properties of a shared gallery", + "properties": { + "galleryId": { + "description": "The shared image gallery resource Id", + "type": "string" + }, + "allowAllImages": { + "description": "Enables all images in the gallery to be available in the lab for VM creation. This will override the EnableState on shared images", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "EnableState", + "modelAsString": true + } + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "SharedImage": { + "type": "object", + "description": "Properties of a shared image", + "properties": { + "properties": { + "description": "The properties of the resource.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/SharedImageProperties" + }, + "systemData": { + "description": "The system metadata relating to this resource", + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "SharedImageFragment": { + "type": "object", + "description": "Patch", + "properties": {}, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ] + }, + "SharedImageList": { + "type": "object", + "description": "Contains a list of sharedImages and their properties", + "properties": { + "value": { + "description": "List of sharedImages and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/SharedImage" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "SharedImageProperties": { + "type": "object", + "description": "Properties of a shared image", + "properties": { + "definitionName": { + "description": "Shared Image definition name in shared image gallery", + "type": "string" + }, + "osType": { + "description": "The operating system of the image", + "type": "string", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true + } + }, + "imageType": { + "description": "The type of image in the gallery (generalized or specialized)", + "type": "string", + "enum": [ + "Generalized", + "Specialized" + ], + "x-ms-enum": { + "name": "ImageType", + "modelAsString": true + } + }, + "enableState": { + "description": "Whether or not the image is enabled.", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "EnableState", + "modelAsString": true + } + }, + "displayName": { + "description": "Display name of the image", + "type": "string" + }, + "versions": { + "description": "List of image versions in definition", + "type": "array", + "items": { + "$ref": "#/definitions/ImageVersionProperties" + } + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "SharedPublicIpAddressConfiguration": { + "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", + "type": "object", + "properties": { + "inboundNatRules": { + "description": "The incoming NAT rules", + "type": "array", + "items": { + "$ref": "#/definitions/InboundNatRule" + } + } + } + }, + "Subnet": { + "description": "Subnet information.", + "type": "object", + "properties": { + "resourceId": { + "description": "The resource ID of the subnet.", + "type": "string" + }, + "labSubnetName": { + "description": "The name of the subnet as seen in the lab.", + "type": "string" + }, + "allowPublicIp": { + "description": "The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).", + "type": "string", + "enum": [ + "Default", + "Deny", + "Allow" + ], + "x-ms-enum": { + "name": "UsagePermissionType", + "modelAsString": true + } + } + } + }, + "SubnetOverride": { + "description": "Property overrides on a subnet of a virtual network.", + "type": "object", + "properties": { + "resourceId": { + "description": "The resource ID of the subnet.", + "type": "string" + }, + "labSubnetName": { + "description": "The name given to the subnet within the lab.", + "type": "string" + }, + "useInVmCreationPermission": { + "description": "Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).", + "enum": [ + "Default", + "Deny", + "Allow" + ], + "type": "string", + "x-ms-enum": { + "name": "UsagePermissionType", + "modelAsString": true + } + }, + "usePublicIpAddressPermission": { + "description": "Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).", + "enum": [ + "Default", + "Deny", + "Allow" + ], + "type": "string", + "x-ms-enum": { + "name": "UsagePermissionType", + "modelAsString": true + } + }, + "sharedPublicIpAddressConfiguration": { + "$ref": "#/definitions/SubnetSharedPublicIpAddressConfiguration", + "description": "Properties that virtual machines on this subnet will share.", + "x-ms-client-flatten": true + }, + "virtualNetworkPoolName": { + "description": "The virtual network pool associated with this subnet.", + "type": "string" + } + } + }, + "SubnetSharedPublicIpAddressConfiguration": { + "description": "Configuration for public IP address sharing.", + "type": "object", + "properties": { + "allowedPorts": { + "description": "Backend ports that virtual machines on this subnet are allowed to expose", + "type": "array", + "items": { + "$ref": "#/definitions/Port" + } + } + } + }, + "TargetCostProperties": { + "description": "Properties of a cost target.", + "type": "object", + "properties": { + "status": { + "description": "Target cost status", + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "TargetCostStatus", + "modelAsString": true + } + }, + "target": { + "format": "int32", + "description": "Lab target cost", + "type": "integer" + }, + "costThresholds": { + "description": "Cost thresholds.", + "type": "array", + "items": { + "$ref": "#/definitions/CostThresholdProperties" + } + }, + "cycleStartDateTime": { + "format": "date-time", + "description": "Reporting cycle start date.", + "type": "string" + }, + "cycleEndDateTime": { + "format": "date-time", + "description": "Reporting cycle end date.", + "type": "string" + }, + "cycleType": { + "description": "Reporting cycle type.", + "enum": [ + "CalendarMonth", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ReportingCycleType", + "modelAsString": true + } + } + } + }, + "UpdateResource": { + "description": "Represents an update resource", + "type": "object", + "properties": { + "tags": { + "description": "The tags of the resource.", + "type": "object", + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "additionalProperties": { + "type": "string" + } + } + } + }, + "User": { + "description": "Profile of a lab user.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/UserProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "UserFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "UserIdentity": { + "description": "Identity attributes of a lab user.", + "type": "object", + "properties": { + "principalName": { + "description": "Set to the principal name / UPN of the client JWT making the request.", + "type": "string" + }, + "principalId": { + "description": "Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.", + "type": "string" + }, + "tenantId": { + "description": "Set to the tenant ID of the client JWT making the request.", + "type": "string" + }, + "objectId": { + "description": "Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.", + "type": "string" + }, + "appId": { + "description": "Set to the app Id of the client JWT making the request.", + "type": "string" + } + } + }, + "UserList": { + "description": "Contains a list of users and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of users and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "UserProperties": { + "description": "Properties of a lab user profile.", + "type": "object", + "properties": { + "identity": { + "$ref": "#/definitions/UserIdentity", + "description": "The identity of the user.", + "x-ms-client-flatten": true + }, + "secretStore": { + "$ref": "#/definitions/UserSecretStore", + "description": "The secret store of the user.", + "x-ms-client-flatten": true + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the user profile.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "UserSecretStore": { + "description": "Properties of a user's secret store.", + "type": "object", + "properties": { + "keyVaultUri": { + "description": "The URI of the user's Key vault.", + "type": "string" + }, + "keyVaultId": { + "description": "The ID of the user's Key vault.", + "type": "string" + } + } + }, + "VirtualNetwork": { + "description": "A virtual network.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/VirtualNetworkProperties", + "description": "The properties of the resource.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource", + "readOnly": true + } + } + }, + "VirtualNetworkFragment": { + "description": "Patch", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "VirtualNetworkList": { + "description": "Contains a list of virtualNetworks and their properties", + "type": "object", + "properties": { + "value": { + "description": "List of virtualNetworks and their properties", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any", + "type": "string" + } + } + }, + "VirtualNetworkProperties": { + "description": "Properties of a virtual network.", + "type": "object", + "properties": { + "allowedSubnets": { + "description": "The allowed subnets of the virtual network.", + "type": "array", + "items": { + "$ref": "#/definitions/Subnet" + } + }, + "description": { + "description": "The description of the virtual network.", + "type": "string" + }, + "externalProviderResourceId": { + "description": "The Microsoft.Network resource identifier of the virtual network.", + "type": "string" + }, + "externalSubnets": { + "description": "The external subnet properties.", + "type": "array", + "items": { + "$ref": "#/definitions/ExternalSubnet" + }, + "readOnly": true + }, + "subnetOverrides": { + "description": "The subnet overrides of the virtual network.", + "type": "array", + "items": { + "$ref": "#/definitions/SubnetOverride" + } + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the virtual network.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true + } + } + }, + "WeekDetails": { + "description": "Properties of a weekly schedule.", + "type": "object", + "properties": { + "weekdays": { + "description": "The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).", + "type": "array", + "items": { + "type": "string" + } + }, + "time": { + "description": "The time of the day the schedule will occur.", + "type": "string" + } + } + }, + "WeekDetailsFragment": { + "description": "Properties of a weekly schedule.", + "type": "object", + "properties": { + "weekdays": { + "description": "The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).", + "type": "array", + "items": { + "type": "string" + } + }, + "time": { + "description": "The time of the day the schedule will occur.", + "type": "string" + } + } + }, + "WindowsOsInfo": { + "description": "Information about a Windows OS.", + "type": "object", + "properties": { + "windowsOsState": { + "description": "The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).", + "enum": [ + "NonSysprepped", + "SysprepRequested", + "SysprepApplied" + ], + "type": "string", + "x-ms-enum": { + "name": "WindowsOsState", + "modelAsString": true + } + } + } + } + }, + "parameters": { + "api-version": { + "name": "api-version", + "in": "query", + "description": "Client API version.", + "required": true, + "type": "string", + "default": "2018-09-15" + }, + "artifactSourceName": { + "name": "artifactSourceName", + "in": "path", + "description": "The name of the artifact source.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-]+$", + "minLength": 1, + "maxLength": 260 + }, + "labName": { + "name": "labName", + "in": "path", + "description": "The name of the lab.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-]+$", + "minLength": 1, + "maxLength": 50 + }, + "locationName": { + "name": "locationName", + "in": "path", + "description": "The name of the location.", + "x-ms-parameter-location": "method", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-]+$", + "minLength": 1, + "maxLength": 260 + }, + "policySetName": { + "name": "policySetName", + "in": "path", + "description": "The name of the policy set.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + "resourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "serviceFabricName": { + "name": "serviceFabricName", + "in": "path", + "description": "The name of the service fabric.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + "sharedGalleryName": { + "name": "sharedGalleryName", + "in": "path", + "description": "The name of the shared gallery.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + "subscriptionId": { + "name": "subscriptionId", + "in": "path", + "description": "The subscription ID.", + "required": true, + "type": "string" + }, + "userName": { + "name": "userName", + "in": "path", + "description": "The name of the user profile.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + "virtualMachineName": { + "name": "virtualMachineName", + "in": "path", + "description": "The name of the virtual machine.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true + }, + "virtualNetworkName": { + "name": "virtualNetworkName", + "in": "path", + "description": "The name of the virtual network.", + "type": "string", + "x-ms-parameter-location": "method", + "required": true, + "pattern": "^[a-zA-Z0-9_\\-]+$", + "minLength": 1, + "maxLength": 260 + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArmTemplates_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArmTemplates_Get.json new file mode 100644 index 000000000000..f2a7f0f01339 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArmTemplates_Get.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "artifactSourceName": "artifactSourceName", + "name": "armTemplateName" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "Template1", + "publisher": "Microsoft", + "contents": { + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "variables": { + "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", + "hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]", + "siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]" + }, + "resources": [] + }, + "parametersValueFilesInfo": [], + "enabled": true + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactSources/artifactSourceName/armTemplates/armTemplateName", + "name": "Template1", + "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArmTemplates_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArmTemplates_List.json new file mode 100644 index 000000000000..463fd7ab1ca6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArmTemplates_List.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "artifactSourceName": "artifactSourceName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "Template1", + "publisher": "Microsoft", + "contents": { + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "variables": { + "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", + "hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]", + "siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]" + }, + "resources": [] + }, + "parametersValueFilesInfo": [], + "enabled": true + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactSources/artifactSourceName/armTemplates/armTemplateName", + "name": "Template1", + "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_CreateOrUpdate.json new file mode 100644 index 000000000000..785923167301 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_CreateOrUpdate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "artifactSourceName", + "artifactSource": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{sourceType}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{status}" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactsources/artifactSourceName", + "name": "artifactSourceName", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Created", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactsources/artifactSourceName", + "name": "artifactSourceName", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Delete.json new file mode 100644 index 000000000000..da90b09f2554 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "artifactSourceName" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Get.json new file mode 100644 index 000000000000..63ecba69f380 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "artifactSourceName" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactsources/artifactSourceName", + "name": "artifactSourceName", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_List.json new file mode 100644 index 000000000000..6eed25d34f7e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactsources/artifactSourceName", + "name": "artifactSourceName", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Update.json new file mode 100644 index 000000000000..811e4d75adc8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ArtifactSources_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "artifactSourceName", + "artifactSource": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactsources/artifactSourceName", + "name": "artifactSourceName", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_GenerateArmTemplate.json new file mode 100644 index 000000000000..bb2c1602e6e5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_GenerateArmTemplate.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "artifactSourceName": "artifactSourceName", + "name": "exampleArtifact", + "generateArmTemplateRequest": { + "fileUploadOptions": "None", + "location": "westcentralus", + "virtualMachineName": "vmName001" + } + }, + "responses": { + "200": { + "body": { + "template": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", + "contentVersion": "1.0.0.0", + "parameters": { + "location": { + "type": "string" + }, + "extensionName": { + "type": "string" + } + }, + "variables": { + "_commandToExecute": "{commandToExecute}." + }, + "resources": [ + { + "type": "Microsoft.Compute/virtualMachines/extensions", + "name": "[parameters('extensionName')]", + "apiVersion": "2015-06-15", + "location": "[parameters('location')]", + "properties": { + "publisher": "Microsoft.Compute", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.9", + "autoUpgradeMinorVersion": "true", + "forceUpdateTag": "15/10/2018 00:00:00 +00:00", + "settings": { + "fileUris": [ + "{MsDtlArtifactFileUris}" + ], + "commandToExecute": "" + }, + "protectedSettings": { + "commandToExecute": "[concat('cd {MsDtlScriptFolder}/scripts && ', variables('_commandToExecute'))]" + } + } + } + ] + }, + "parameters": { + "extensionName": { + "value": "vmName001/CustomScriptExtension" + }, + "location": { + "value": "westcentralus" + } + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_Get.json new file mode 100644 index 000000000000..720ed23dd72f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "artifactSourceName": "artifactSourceName", + "name": "exampleArtifact" + }, + "responses": { + "200": { + "body": { + "properties": { + "title": "Sample Artifact Title", + "description": "Sample artifact description.", + "publisher": "Microsoft", + "filePath": "{artifactsPath}/exampleArtifact", + "targetOsType": "Windows", + "parameters": { + "uri": { + "type": "string", + "displayName": "Sample Parameter 1", + "description": "Sample parameter 1 description.", + "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/exampleArtifact/..." + } + } + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactSources/artifactSourceName/artifacts/exampleArtifact", + "name": "exampleArtifact", + "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_List.json new file mode 100644 index 000000000000..91e6a2ba1bf4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Artifacts_List.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "artifactSourceName": "artifactSourceName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "title": "Sample Artifact Title", + "description": "Sample artifact description.", + "publisher": "Microsoft", + "filePath": "{artifactsPath}/exampleArtifact", + "targetOsType": "Windows", + "parameters": { + "uri": { + "type": "string", + "displayName": "Sample Parameter 1", + "description": "Sample parameter 1 description.", + "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/exampleArtifact/..." + } + } + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactSources/artifactSourceName/artifacts/exampleArtifact", + "name": "exampleArtifact", + "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_CreateOrUpdate.json new file mode 100644 index 000000000000..5e23ab3e7201 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_CreateOrUpdate.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualNetworkName": "dtlexampleLab", + "name": "{bastionHostName}", + "bastionHost": { + "properties": {}, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ipAddressId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/publicIpAddresses/{ipName}", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/pt-test-rg/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab/bastionhosts/{bastionHostName}", + "name": "{bastionHostName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks/bastionHosts", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Created" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab/bastionhosts/{bastionHostName}", + "name": "{bastionHostName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks/bastionHosts", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Delete.json new file mode 100644 index 000000000000..0b5cfe159b0d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualNetworkName": "dtlexampleLab", + "name": "{bastionHostName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Get.json new file mode 100644 index 000000000000..891c01b9d842 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualNetworkName": "dtlexampleLab", + "name": "{bastionHostName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "ipAddressId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/publicIpAddresses/{ipName}", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab/bastionhosts/{bastionHostName}", + "name": "{bastionHostName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks/bastionHosts", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_List.json new file mode 100644 index 000000000000..eccc923a1c6c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_List.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualNetworkName": "dtlexampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ipAddressId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/publicIpAddresses/{ipName}", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab/bastionhosts/{bastionHostName}", + "name": "{bastionHostName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks/bastionHosts", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Update.json new file mode 100644 index 000000000000..9c2cea279df5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/BastionHosts_Update.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualNetworkName": "dtlexampleLab", + "name": "{bastionHostName}", + "bastionHost": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ipAddressId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/publicIpAddresses/{ipName}", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/pt-test-rg/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab/bastionhosts/{bastionHostName}", + "name": "{bastionHostName}", + "type": "Microsoft.DevTestLab/labs/virtualNetworks/bastionHosts", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Costs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Costs_CreateOrUpdate.json new file mode 100644 index 000000000000..d522bea6ecb7 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Costs_CreateOrUpdate.json @@ -0,0 +1,199 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "targetCost", + "labCost": { + "properties": { + "currencyCode": "USD", + "startDateTime": "2020-12-01T00:00:00Z", + "endDateTime": "2020-12-31T23:59:59Z", + "targetCost": { + "costThresholds": [ + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "percentageThreshold": { + "thresholdValue": 25 + } + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000002", + "displayOnChart": "Enabled", + "sendNotificationWhenExceeded": "Enabled", + "percentageThreshold": { + "thresholdValue": 50 + } + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000003", + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "percentageThreshold": { + "thresholdValue": 75 + } + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000004", + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "percentageThreshold": { + "thresholdValue": 100 + } + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000005", + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "percentageThreshold": { + "thresholdValue": 125 + } + } + ], + "target": 100, + "cycleStartDateTime": "2020-12-01T00:00:00.000Z", + "cycleEndDateTime": "2020-12-31T00:00:00.000Z", + "cycleType": "CalendarMonth", + "status": "Enabled" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "targetCost": { + "costThresholds": [ + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 25.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 50.0 + }, + "displayOnChart": "Enabled", + "sendNotificationWhenExceeded": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 75.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 100.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 125.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + } + ], + "status": "Enabled", + "target": 100, + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleType": "CalendarMonth" + }, + "currencyCode": "USD", + "startDateTime": "2020-12-01T00:00:00Z", + "endDateTime": "2020-12-31T23:59:59Z", + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + }, + "201": { + "body": { + "properties": { + "targetCost": { + "costThresholds": [ + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 25.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 50.0 + }, + "displayOnChart": "Enabled", + "sendNotificationWhenExceeded": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 75.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 100.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 125.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + } + ], + "status": "Enabled", + "target": 100, + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleType": "CalendarMonth" + }, + "currencyCode": "USD", + "startDateTime": "2020-12-01T00:00:00Z", + "endDateTime": "2020-12-31T23:59:59Z", + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Costs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Costs_Get.json new file mode 100644 index 000000000000..4dea07e32451 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Costs_Get.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "targetCost" + }, + "responses": { + "200": { + "body": { + "properties": { + "targetCost": { + "costThresholds": [ + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 25.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 50.0 + }, + "displayOnChart": "Enabled", + "sendNotificationWhenExceeded": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 75.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 100.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 125.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + } + ], + "status": "Enabled", + "target": 100, + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleType": "CalendarMonth" + }, + "currencyCode": "USD", + "startDateTime": "2020-12-01T00:00:00Z", + "endDateTime": "2020-12-31T23:59:59Z", + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_CreateOrUpdate.json new file mode 100644 index 000000000000..1a365ac62061 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_CreateOrUpdate.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "customImageName", + "customImage": { + "properties": { + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001" + }, + "description": "My Custom Image" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/customimages/customImageName", + "name": "customImageName", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "westcentralus", + "properties": { + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001" + }, + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/customimages/customImageName", + "name": "customImageName", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "westcentralus", + "properties": { + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001" + }, + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Delete.json new file mode 100644 index 000000000000..d3200f7c7357 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "customImageName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Get.json new file mode 100644 index 000000000000..3f9bf6f7475e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "customImageName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/customimages/customImageName", + "name": "customImageName", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "westcentralus", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "sourceVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001", + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + } + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_List.json new file mode 100644 index 000000000000..f1b5366de05e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/customimages/customImageName", + "name": "customImageName", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "westcentralus", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "sourceVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001", + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + } + } + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Update.json new file mode 100644 index 000000000000..e099a6a83b1f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/CustomImages_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "customImageName", + "customImage": { + "tags": { + "tagName1": "tagValue2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/customimages/customImageName", + "name": "customImageName", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "westcentralus", + "properties": { + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001" + }, + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue2" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Attach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Attach.json new file mode 100644 index 000000000000..3d702b745ebc --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Attach.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "{userId}", + "name": "diskName", + "attachDiskProperties": { + "leasedByLabVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_CreateOrUpdate.json new file mode 100644 index 000000000000..afe01be39e33 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_CreateOrUpdate.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "{userId}", + "name": "diskName", + "disk": { + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/lexampleLab/users/{userId}/disks/diskName", + "name": "diskName", + "type": "Microsoft.DevTestLab/labs/users/disks", + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "hostCaching": "None", + "provisioningState": "Succeeded", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + }, + "location": "westcentralus" + } + }, + "201": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/lexampleLab/users/{userId}/disks/diskName", + "name": "diskName", + "type": "Microsoft.DevTestLab/labs/users/disks", + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "hostCaching": "None", + "provisioningState": "Creating", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + }, + "location": "westcentralus" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Delete.json new file mode 100644 index 000000000000..7e39e6999f57 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "{userId}", + "name": "diskName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Detach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Detach.json new file mode 100644 index 000000000000..89313e16615f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Detach.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "{userId}", + "name": "diskName", + "detachDiskProperties": { + "leasedByLabVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Get.json new file mode 100644 index 000000000000..d0e976e509da --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Get.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "diskName", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/{userId}/disks/diskName", + "name": "diskName", + "type": "Microsoft.DevTestLab/labs/users/disks", + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:27:32.1445632+00:00", + "hostCaching": "None", + "managedDiskId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.compute/disks/diskName", + "provisioningState": "Succeeded", + "uniqueIdentifier": "9bf098d1-1b64-41a5-aa05-286767074a0b" + }, + "location": "westcentralus" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_List.json new file mode 100644 index 000000000000..073c416f9d7f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "diskName", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/{userId}/disks/diskName", + "name": "diskName", + "type": "Microsoft.DevTestLab/labs/users/disks", + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:27:32.1445632+00:00", + "hostCaching": "None", + "managedDiskId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.compute/disks/diskName", + "provisioningState": "Succeeded", + "uniqueIdentifier": "9bf098d1-1b64-41a5-aa05-286767074a0b" + }, + "location": "westcentralus" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Update.json new file mode 100644 index 000000000000..d68d934e8f9e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Disks_Update.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "name": "diskName", + "disk": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/{user-id}/disks/diskName", + "name": "{disk-name}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "hostCaching": "None", + "provisioningState": "Succeeded", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_CreateOrUpdate.json new file mode 100644 index 000000000000..4f681c08a1ef --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_CreateOrUpdate.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "name": "{environmentName}", + "dtlEnvironment": { + "location": "southeastasia", + "properties": { + "deploymentProperties": { + "parameters": [], + "armTemplateId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactSources/artifactSourceName/armTemplates/armTemplateName" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "southeastasia", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/artifactSources/artifactSourceName/armTemplates/armTemplateName" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "southeastasia", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/artifactSources/artifactSourceName/armTemplates/armTemplateName" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Delete.json new file mode 100644 index 000000000000..78eb44241a03 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "name": "{environmentName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Get.json new file mode 100644 index 000000000000..2a35f8a5950c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Get.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "name": "{environmentName}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "westcentralus", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/artifactSources/artifactSourceName/armTemplates/armTemplateName" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_List.json new file mode 100644 index 000000000000..8899441d00aa --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_List.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "westcentralus", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/artifactSources/artifactSourceName/armTemplates/armTemplateName" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Update.json new file mode 100644 index 000000000000..55e9e3a8d173 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Environments_Update.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "name": "{environmentName}", + "dtlEnvironment": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "westcentralus", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/artifactSources/artifactSourceName/armTemplates/armTemplateName" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_CreateOrUpdate.json new file mode 100644 index 000000000000..29052f3858b3 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_CreateOrUpdate.json @@ -0,0 +1,164 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{formulaName}", + "formula": { + "location": "westcentralus", + "properties": { + "description": "Formula using a Linux base", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "DtlexampleLabSubnet", + "labVirtualNetworkId": "/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "artifacts": [ + { + "artifactId": "/artifactsources/artifactSourceName/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "westcentralus" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "DtlexampleLabSubnet", + "labVirtualNetworkId": "/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "artifacts": [ + { + "artifactId": "/artifactsources/artifactSourceName/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "westcentralus" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "DtlexampleLabSubnet", + "labVirtualNetworkId": "/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "artifacts": [ + { + "artifactId": "/artifactsources/artifactSourceName/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "westcentralus" + }, + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Delete.json new file mode 100644 index 000000000000..293b95180dd6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{formulaName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Get.json new file mode 100644 index 000000000000..7f80ea3ba203 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Get.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{formulaName}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "properties": { + "description": "Formula used to create a Linux VM", + "author": "user@contoso.com", + "osType": "Linux", + "creationDate": "2018-12-22T19:13:35.9922091+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "DtlexampleLabSubnet", + "labVirtualNetworkId": "/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "artifacts": [ + { + "artifactId": "/artifactsources/artifactSourceName/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "westcentralus" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "7a7d20ab-8a50-46fb-8dc6-7c6c1443a01b" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_List.json new file mode 100644 index 000000000000..7dec06e49dc8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_List.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "Formula used to create a Linux VM", + "author": "user@contoso.com", + "osType": "Linux", + "creationDate": "2018-12-22T19:13:35.9922091+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "DtlexampleLabSubnet", + "labVirtualNetworkId": "/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "artifacts": [ + { + "artifactId": "/artifactsources/artifactSourceName/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "westcentralus" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "7a7d20ab-8a50-46fb-8dc6-7c6c1443a01b" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Update.json new file mode 100644 index 000000000000..d4a6b381f5d0 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Formulas_Update.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{formulaName}", + "formula": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "location": "westcentralus", + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "DtlexampleLabSubnet", + "labVirtualNetworkId": "/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "artifacts": [ + { + "artifactId": "/artifactsources/artifactSourceName/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "westcentralus" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GalleryImages_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GalleryImages_Get.json new file mode 100644 index 000000000000..e99a106001e5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GalleryImages_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{name}" + }, + "responses": { + "200": { + "body": { + "properties": { + "author": "Canonical", + "createdDate": "2020-12-14T23:43:43.7643542+00:00", + "description": "Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu Server 20.04 LTS will be available until April 2025. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.
By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.
", + "imageReference": { + "offer": "0001-com-ubuntu-server-focal", + "publisher": "canonical", + "sku": "20_04-lts", + "osType": "Linux", + "version": "latest" + }, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/canonical.0001-com-ubuntu-server-focal20_04-lts-ARM.1.0.22/Icons/Small.png", + "enabled": true + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/galleryimages/ubuntu server 20.04 lts", + "name": "Ubuntu Server 20.04 LTS", + "type": "Microsoft.DevTestLab/labs/galleryImages" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GalleryImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GalleryImages_List.json new file mode 100644 index 000000000000..432b81347953 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GalleryImages_List.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "author": "Canonical", + "createdDate": "2020-12-14T23:43:43.7643542+00:00", + "description": "Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu Server 20.04 LTS will be available until April 2025. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.
", + "imageReference": { + "offer": "0001-com-ubuntu-server-focal", + "publisher": "canonical", + "sku": "20_04-lts", + "osType": "Linux", + "version": "latest" + }, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/canonical.0001-com-ubuntu-server-focal20_04-lts-ARM.1.0.22/Icons/Small.png", + "enabled": true + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/galleryimages/ubuntu server 20.04 lts", + "name": "Ubuntu Server 20.04 LTS", + "type": "Microsoft.DevTestLab/labs/galleryImages" + }, + { + "properties": { + "author": "Microsoft", + "createdDate": "2020-12-14T21:33:33.2464999+00:00", + "description": "This software is provided by Microsoft. Use of this software in Microsoft Azure is not permitted except under a volume licensing agreement with Microsoft. By clicking Create, I acknowledge that I or the company I work for is licensed to use this software under a volume licensing agreement with Microsoft and that the right to use it will be subject to that agreement.
By clicking the Create button, I acknowledge that I am getting this software from Microsoft and that the legal terms of Microsoft apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Microsoft.
", + "imageReference": { + "offer": "Windows-10", + "publisher": "MicrosoftWindowsDesktop", + "sku": "20h2-ent", + "osType": "Windows", + "version": "latest" + }, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoftwindowsdesktop.windows-1020h2-ent.1.0.238/Icons/Small.png", + "enabled": true + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/galleryimages/windows 10 enterprise, version 20h2", + "name": "Windows 10 Enterprise, Version 20H2", + "type": "Microsoft.DevTestLab/labs/galleryImages" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..2060242d5d2e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart", + "schedule": { + "location": "southeastasia", + "properties": { + "status": "Enabled", + "timeZoneId": "Hawaiian Standard Time", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{id}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "southeastasia", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{id}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "southeastasia", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Delete.json new file mode 100644 index 000000000000..e581029019d6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Execute.json new file mode 100644 index 000000000000..890cdec88b7e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Execute.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Get.json new file mode 100644 index 000000000000..4885bc40883c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Get.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{id}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_ListByResourceGroup.json new file mode 100644 index 000000000000..bd370786b739 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "westcentralus", + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_ListBySubscription.json new file mode 100644 index 000000000000..b2d8a2e621aa --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_ListBySubscription.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "westcentralus", + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Retarget.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Retarget.json new file mode 100644 index 000000000000..84e62a7df161 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Retarget.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "{scheduleName}", + "retargetScheduleProperties": { + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{currentLab}", + "currentResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{targetLab}" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Update.json new file mode 100644 index 000000000000..47ba3f950030 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/GlobalSchedules_Update.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_CreateOrUpdate.json new file mode 100644 index 000000000000..b78e4ccf0b94 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_CreateOrUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{secretName}", + "secretValue":"{secretValue}", + "labSecret": { + "properties": { + "enabledForArtifacts": true, + "enabledForVmCreation": true, + "enabledForArmEnvironments": true, + "value": "{secretValue}" + }, + "location": "westcentralus" + } + }, + "responses": { + "201": { + "body": { + "properties": { + "enabledForArtifacts": true, + "enabledForVmCreation": true, + "enabledForArmEnvironments": true, + "provisioningState": "Creating" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/exampleLab/secrets/{secretName}", + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/secrets", + "location": "southeastasia" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Delete.json new file mode 100644 index 000000000000..91f4cd85492d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{secretName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Get.json new file mode 100644 index 000000000000..c0efd8d2ec9f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "labSecretName" + }, + "responses": { + "200": { + "body": { + "properties": { + "keyVaultEntry": "3f6aa04d-fb7d-4f25-b470-e5162ec3d7e4", + "enabledForArtifacts": false, + "enabledForVmCreation": true, + "enabledForArmEnvironments": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/exampleLab/secrets/{labSecretName}", + "name": "{labSecretName}", + "type": "Microsoft.DevTestLab/labs/secrets", + "location": "southeastasia" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_List.json new file mode 100644 index 000000000000..f50d7c014788 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_List.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "enabledForArtifacts": true, + "enabledForVmCreation": true, + "enabledForArmEnvironments": true, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/exampleLab/secrets/{secretName1}", + "name": "{secretName1}", + "type": "Microsoft.DevTestLab/labs/secrets", + "location": "southeastasia" + }, + { + "properties": { + "keyVaultEntry": "3f6aa04d-fb7d-4f25-b470-e5162ec3d7e4", + "enabledForArtifacts": false, + "enabledForVmCreation": true, + "enabledForArmEnvironments": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/exampleLab/secrets/{secretName2}", + "name": "{secretName2}", + "type": "Microsoft.DevTestLab/labs/secrets", + "location": "southeastasia" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Update.json new file mode 100644 index 000000000000..ed3911600bc8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/LabSecrets_Update.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{secretName}", + "secret": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "keyVaultEntry": "3f6aa04d-fb7d-4f25-b470-e5162ec3d7e4", + "enabledForArtifacts": true, + "enabledForVmCreation": false, + "enabledForArmEnvironments": false, + "provisioningState": "Updating" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/exampleLab/secrets/{secretName}", + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/secrets", + "location": "southeastasia", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ClaimAnyVm.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ClaimAnyVm.json new file mode 100644 index 000000000000..30e6537faf75 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ClaimAnyVm.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab", + "monitor": "true" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_CreateEnvironment.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_CreateEnvironment.json new file mode 100644 index 000000000000..c31d246fd4e1 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_CreateEnvironment.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab", + "labVirtualMachineCreationParameter": { + "properties": { + "size": "Standard_A2_v2", + "userName": "UserName001", + "password": "{userPassword}", + "labSubnetName": "{virtualnetwork-subnet-name}", + "labVirtualNetworkId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04-LTS", + "osType": "Linux", + "version": "Latest" + }, + "allowClaim": true, + "storageType": "Standard" + }, + "name": "vmName001", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_CreateOrUpdate.json new file mode 100644 index 000000000000..10031873ce91 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_CreateOrUpdate.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "{resourceGroupName}", + "name": "exampleLab", + "lab": { + "properties": { + "labStorageType": "Premium" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "premiumDataDisks": "Disabled", + "environmentPermission": "Reader", + "announcement": { + "title": "", + "markdown": "", + "enabled": "Disabled", + "expired": false + }, + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/{resourceGroupName}/providers/microsoft.devtestlab/labs/exampleLab", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "premiumDataDisks": "Disabled", + "environmentPermission": "Reader", + "announcement": { + "title": "", + "markdown": "", + "enabled": "Disabled", + "expired": false + }, + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Delete.json new file mode 100644 index 000000000000..600ee41e71e5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_EnsureCurrentUserProfile.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_EnsureCurrentUserProfile.json new file mode 100644 index 000000000000..f0cce15db6e2 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_EnsureCurrentUserProfile.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab" + }, + "responses": { + "200": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ExportResourceUsage.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ExportResourceUsage.json new file mode 100644 index 000000000000..7aa501d89ea5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ExportResourceUsage.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab", + "exportResourceUsageParameters": { + "blobStorageAbsoluteSasUri": "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw", + "usageStartDate": "2020-12-01T00:00:00Z" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_GenerateUploadUri.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_GenerateUploadUri.json new file mode 100644 index 000000000000..1b41cbe125d4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_GenerateUploadUri.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab", + "generateUploadUriParameter": { + "blobName": "{blob-name}" + } + }, + "responses": { + "200": { + "body": { + "uploadUri": "https://{storageName}.blob.core.windows.net/uploads/{blobName}?sv=2017-04-17&sr=b&sig={signature}&st=2018-10-02T01:55:24Z&se=2018-10-03T02:10:23Z&sp=rcw" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Get.json new file mode 100644 index 000000000000..77f6a9f93415 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Get.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab" + }, + "responses": { + "200": { + "body": { + "properties": { + "defaultStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "defaultPremiumStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "artifactsStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "premiumDataDiskStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "vaultName": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "premiumDataDisks": "Disabled", + "environmentPermission": "Reader", + "announcement": { + "title": "", + "markdown": "", + "enabled": "Disabled", + "expired": false + }, + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ImportVirtualMachine.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ImportVirtualMachine.json new file mode 100644 index 000000000000..641826e65cfd --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ImportVirtualMachine.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab", + "importLabVirtualMachineRequest": { + "sourceVirtualMachineResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{otherResourceGroupName}/providers/Microsoft.Compute/virtualMachines/vmName001", + "destinationVirtualMachineName": "vmName001" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListByResourceGroup.json new file mode 100644 index 000000000000..4fa21a8c058d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "vaultName": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "createdDate": "2018-10-02T10:23:20.9573599-07:00", + "premiumDataDisks": "Disabled", + "environmentPermission": "Reader", + "announcement": { + "title": "", + "markdown": "", + "enabled": "Disabled", + "expired": false + }, + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListBySubscription.json new file mode 100644 index 000000000000..40fed3753f36 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListBySubscription.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "defaultStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "defaultPremiumStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "artifactsStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "premiumDataDiskStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "vaultName": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", + "labStorageType": "Premium", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "createdDate": "2018-09-30T08:38:13.1973609-07:00", + "premiumDataDisks": "Disabled", + "environmentPermission": "Reader", + "announcement": { + "title": "", + "markdown": "", + "enabled": "Disabled", + "expired": false + }, + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName1}", + "name": "{labName1}", + "type": "Microsoft.DevTestLab/labs", + "location": "westcentralus", + "tags": {} + }, + { + "properties": { + "defaultStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "defaultPremiumStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "artifactsStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "premiumDataDiskStorageAccount": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "vaultName": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/{resourceGroupName2}/providers/Microsoft.KeyVault/vaults/{keyVaultName2}", + "labStorageType": "Premium", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "createdDate": "2018-09-30T09:37:52.9675083-07:00", + "premiumDataDisks": "Disabled", + "environmentPermission": "Reader", + "announcement": { + "title": "", + "markdown": "", + "enabled": "Disabled", + "expired": false + }, + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/{resourceGroupName2}/providers/microsoft.devtestlab/labs/{labName2}", + "name": "{labName2}", + "type": "Microsoft.DevTestLab/labs", + "location": "japaneast", + "tags": {} + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListVhds.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListVhds.json new file mode 100644 index 000000000000..ae89e7507305 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_ListVhds.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "https://{labStorageAccountName}.blob.core.windows.net/vhds/vhd1" + }, + { + "id": "https://{labStorageAccountName}.blob.core.windows.net/vhds/vhd2" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Update.json new file mode 100644 index 000000000000..d36758773c1b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Labs_Update.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "name": "exampleLab", + "lab": {} + }, + "responses": { + "200": { + "body": { + "properties": { + "vaultName": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", + "labStorageType": "Standard", + "mandatoryArtifactsResourceIdsLinux": [], + "mandatoryArtifactsResourceIdsWindows": [], + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "premiumDataDisks": "Disabled", + "environmentPermission": "Reader", + "announcement": { + "title": "", + "markdown": "", + "enabled": "Disabled", + "expired": false + }, + "support": { + "enabled": "Disabled", + "markdown": "" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_CreateOrUpdate.json new file mode 100644 index 000000000000..28aed79a4e6a --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_CreateOrUpdate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{notificationChannelName}", + "notificationChannel": { + "properties": { + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/notificationChannels/{notificationChannelName}", + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/notificationChannels/{notificationChannelName}", + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Delete.json new file mode 100644 index 000000000000..aa210b159c89 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{notificationChannelName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Get.json new file mode 100644 index 000000000000..28727c4de0ee --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Get.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{notificationChannelName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/notificationChannels/{notificationChannelName}", + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_List.json new file mode 100644 index 000000000000..b034ea9f8871 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_List.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:12:10.6566371+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/notificationChannels/{notificationChannelName}", + "name": "autoshutdown", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + }, + { + "properties": { + "webHookUrl": "{webhookUrl}", + "notificationLocale": "en", + "description": "Integration configured for cost", + "events": [ + { + "eventName": "Cost" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/notificationChannels/{notificationChannelName}", + "name": "costThreshold", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Notify.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Notify.json new file mode 100644 index 000000000000..0afa86fae5ed --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Notify.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{notificationChannelName}", + "notifyParameters": { + "eventName": "AutoShutdown", + "jsonPayload": "{\"eventType\":\"AutoShutdown\",\"subscriptionId\":\"e605a3bc-ee4e-4c7a-9709-1868a28b1d4d\",\"resourceGroupName\":\"resourceGroupName\",\"labName\":\"exampleLab\"}" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Update.json new file mode 100644 index 000000000000..0578f8fbbdf4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/NotificationChannels_Update.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{notificationChannelName}", + "notificationChannel": {} + }, + "responses": { + "200": { + "body": { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/notificationChannels/{notificationChannelName}", + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Operations_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Operations_Get.json new file mode 100644 index 000000000000..f0067d039b10 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Operations_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "locationName": "{locationName}", + "name": "{operationName}" + }, + "responses": { + "200": { + "body": { + "status": "Running", + "statusCode": "OK" + } + }, + "202": { + "body": { + "status": "Accepted", + "statusCode": "OK" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_CreateOrUpdate.json new file mode 100644 index 000000000000..a69a6390b496 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_CreateOrUpdate.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "policySetName": "{policySetName}", + "name": "{policyName}", + "policy": { + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + }, + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/policysets/{policySetName}/policies/{policyName}", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs/policies", + "location": "westcentralus", + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "201": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/policysets/{policySetName}/policies/{policyName}", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "location": "westcentralus", + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Delete.json new file mode 100644 index 000000000000..7667115809e6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "policySetName": "{policySetName}", + "name": "{policyName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Get.json new file mode 100644 index 000000000000..3ac25f17b0d6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "policySetName": "{policySetName}", + "name": "{policyName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/policysets/{policySetName}/policies/{policyName}", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_List.json new file mode 100644 index 000000000000..01b1a0ada3c1 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "policySetName": "{policySetName}", + "name": "{policyName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/policysets/{policySetName}/policies/{policyName}", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Update.json new file mode 100644 index 000000000000..4b172493b61d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Policies_Update.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "policySetName": "{policySetName}", + "name": "{policyName}", + "policy": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/policysets/{policySetName}/policies/{policyName}", + "name": "exampleLab", + "type": "Microsoft.DevTestLab/labs/policies", + "location": "westcentralus", + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/PolicySets_EvaluatePolicies.json new file mode 100644 index 000000000000..fe3d3ab30b0d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/PolicySets_EvaluatePolicies.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{policySetName}", + "evaluatePoliciesRequest": { + "policies": [ + { + "factName": "LabVmCount", + "valueOffset": "1" + } + ] + } + }, + "responses": { + "200": { + "body": { + "results": [ + { + "hasError": true, + "policyViolations": [ + { + "code": "MaxValuePolicy", + "message": "You cannot exceed the limit (1) of virtual machines that can be created in this lab." + } + ] + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/PolicySets_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/PolicySets_List.json new file mode 100644 index 000000000000..7720e4b27482 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/PolicySets_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": {}, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/policysets/default", + "name": "default", + "type": "Microsoft.DevTestLab/labs/policySets" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ProviderOperations_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ProviderOperations_List.json new file mode 100644 index 000000000000..b0d2c2bba85c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ProviderOperations_List.json @@ -0,0 +1,859 @@ +{ + "parameters": { + "api-version": "2021-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DevTestLab/register/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "register", + "operation": "Register Subscription", + "description": "Registers the subscription" + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/EvaluatePolicies/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "policy sets", + "operation": "Evaluate policy", + "description": "Evaluates lab policy." + } + }, + { + "name": "Microsoft.DevTestLab/labs/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "Delete labs.", + "description": "Delete labs." + } + }, + { + "name": "Microsoft.DevTestLab/labs/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "Read labs.", + "description": "Read labs." + } + }, + { + "name": "Microsoft.DevTestLab/labs/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "Add or modify labs.", + "description": "Add or modify labs." + } + }, + { + "name": "Microsoft.DevTestLab/labs/ListVhds/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "List VHDs", + "description": "List disk images available for custom image creation." + } + }, + { + "name": "Microsoft.DevTestLab/labs/GenerateUploadUri/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "Generate image upload URI", + "description": "Generate a URI for uploading custom disk images to a Lab." + } + }, + { + "name": "Microsoft.DevTestLab/labs/CreateEnvironment/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "Create a virtual machine", + "description": "Create virtual machines in a lab." + } + }, + { + "name": "Microsoft.DevTestLab/labs/ClaimAnyVm/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "Claim Any Virtual Machine", + "description": "Claim a random claimable virtual machine in the lab." + } + }, + { + "name": "Microsoft.DevTestLab/labs/ExportResourceUsage/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "Exports the lab resource usage into a storage account", + "description": "Exports the lab resource usage into a storage account" + } + }, + { + "name": "Microsoft.DevTestLab/labs/ImportVirtualMachine/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Labs", + "operation": "Import a virtual machine", + "description": "Import a virtual machine into a different lab." + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "policies", + "operation": "Delete policies.", + "description": "Delete policies." + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "policies", + "operation": "Read policies.", + "description": "Read policies." + } + }, + { + "name": "Microsoft.DevTestLab/labs/policySets/policies/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "policies", + "operation": "Add or modify policies.", + "description": "Add or modify policies." + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Delete schedules.", + "description": "Delete schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Read schedules.", + "description": "Read schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Add or modify schedules.", + "description": "Add or modify schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/Execute/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Execute schedule", + "description": "Execute a schedule." + } + }, + { + "name": "Microsoft.DevTestLab/labs/schedules/ListApplicable/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "List all applicable schedules", + "description": "Lists all applicable schedules" + } + }, + { + "name": "Microsoft.DevTestLab/schedules/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Delete schedules.", + "description": "Delete schedules." + } + }, + { + "name": "Microsoft.DevTestLab/schedules/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Read schedules.", + "description": "Read schedules." + } + }, + { + "name": "Microsoft.DevTestLab/schedules/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Add or modify schedules.", + "description": "Add or modify schedules." + } + }, + { + "name": "Microsoft.DevTestLab/schedules/Execute/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Execute schedule", + "description": "Execute a schedule." + } + }, + { + "name": "Microsoft.DevTestLab/schedules/Retarget/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Retarget schedule.", + "description": "Updates a schedule's target resource Id." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Delete schedules.", + "description": "Delete schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Read schedules.", + "description": "Read schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Add or modify schedules.", + "description": "Add or modify schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/schedules/Execute/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Execute schedule", + "description": "Execute a schedule." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Delete schedules.", + "description": "Delete schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Read schedules.", + "description": "Read schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Add or modify schedules.", + "description": "Add or modify schedules." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/schedules/Execute/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "schedules", + "operation": "Execute schedule", + "description": "Execute a schedule." + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources", + "operation": "Delete artifact sources.", + "description": "Delete artifact sources." + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources", + "operation": "Read artifact sources.", + "description": "Read artifact sources." + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Artifact sources", + "operation": "Add or modify artifact sources.", + "description": "Add or modify artifact sources." + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/artifacts/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Artifacts", + "operation": "Read artifacts.", + "description": "Read artifacts." + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/artifacts/GenerateArmTemplate/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Artifacts", + "operation": "Generates an ARM template for the given artifact", + "description": "Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact." + } + }, + { + "name": "Microsoft.DevTestLab/labs/galleryImages/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "gallery images", + "operation": "Read gallery images.", + "description": "Read gallery images." + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "custom images", + "operation": "Delete custom images.", + "description": "Delete custom images." + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "custom images", + "operation": "Read custom images.", + "description": "Read custom images." + } + }, + { + "name": "Microsoft.DevTestLab/labs/customImages/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "custom images", + "operation": "Add or modify custom images.", + "description": "Add or modify custom images." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks", + "operation": "Delete virtual networks.", + "description": "Delete virtual networks." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks", + "operation": "Read virtual networks.", + "description": "Read virtual networks." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualNetworks/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "virtual networks", + "operation": "Add or modify virtual networks.", + "description": "Add or modify virtual networks." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Delete virtual machines.", + "description": "Delete virtual machines." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Read virtual machines.", + "description": "Read virtual machines." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Add or modify virtual machines.", + "description": "Add or modify virtual machines." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Start/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Start virtual machine", + "description": "Start a virtual machine." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Stop/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Stop virtual machine", + "description": "Stop a virtual machine" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Restart/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Restart virtual machine", + "description": "Restart a virtual machine." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Redeploy/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Redeploy a virtual machine", + "description": "Redeploy a virtual machine" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Resize/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Resize Virtual Machine.", + "description": "Resize Virtual Machine." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/ApplyArtifacts/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Apply artifacts to virtual machine", + "description": "Apply artifacts to virtual machine." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/AddDataDisk/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Add or attach a data disk", + "description": "Attach a new or existing data disk to virtual machine." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/DetachDataDisk/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Detach the specified disk from the virtual machine", + "description": "Detach the specified disk from the virtual machine." + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/Claim/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Claim a virtual machine", + "description": "Take ownership of an existing virtual machine" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/UnClaim/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Unclaim a virtual machine", + "description": "Release ownership of an existing virtual machine" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/TransferDisks/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Transfer data disks to yourself", + "description": "Transfer ownership of virtual machine data disks to yourself" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/ListApplicableSchedules/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "List all applicable schedules", + "description": "Lists all applicable schedules" + } + }, + { + "name": "Microsoft.DevTestLab/labs/virtualMachines/GetRdpFileContents/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Virtual machines", + "operation": "Get RDP file contents", + "description": "Gets a string that represents the contents of the RDP file for the virtual machine" + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Formulas", + "operation": "Delete formulas.", + "description": "Delete formulas." + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Formulas", + "operation": "Read formulas.", + "description": "Read formulas." + } + }, + { + "name": "Microsoft.DevTestLab/labs/formulas/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Formulas", + "operation": "Add or modify formulas.", + "description": "Add or modify formulas." + } + }, + { + "name": "Microsoft.DevTestLab/labs/costs/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "costs", + "operation": "Read costs.", + "description": "Read costs." + } + }, + { + "name": "Microsoft.DevTestLab/labs/costs/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "costs", + "operation": "Add or modify costs.", + "description": "Add or modify costs." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "disks", + "operation": "Delete disks.", + "description": "Delete disks." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "disks", + "operation": "Read disks.", + "description": "Read disks." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "disks", + "operation": "Add or modify disks.", + "description": "Add or modify disks." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/Attach/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "disks", + "operation": "Attach disk", + "description": "Attach and create the lease of the disk to the virtual machine." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/disks/Detach/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "disks", + "operation": "Detach and break the lease of the disk attached to the virtual machine", + "description": "Detach and break the lease of the disk attached to the virtual machine." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "user profiles", + "operation": "Delete user profiles.", + "description": "Delete user profiles." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "user profiles", + "operation": "Read user profiles.", + "description": "Read user profiles." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "user profiles", + "operation": "Add or modify user profiles.", + "description": "Add or modify user profiles." + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels", + "operation": "Delete notificationchannels.", + "description": "Delete notificationchannels." + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels", + "operation": "Read notificationchannels.", + "description": "Read notificationchannels." + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels", + "operation": "Add or modify notificationchannels.", + "description": "Add or modify notificationchannels." + } + }, + { + "name": "Microsoft.DevTestLab/labs/notificationChannels/Notify/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "notificationChannels", + "operation": "Notify", + "description": "Send notification to provided channel." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "secrets", + "operation": "Delete secrets.", + "description": "Delete secrets." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "secrets", + "operation": "Read secrets.", + "description": "Read secrets." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/secrets/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "secrets", + "operation": "Add or modify secrets.", + "description": "Add or modify secrets." + } + }, + { + "name": "Microsoft.DevTestLab/locations/operations/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "operations", + "operation": "Read operations.", + "description": "Read operations." + } + }, + { + "name": "Microsoft.DevTestLab/labs/artifactSources/armTemplates/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Azure Resource Manager templates", + "operation": "Read azure resource manager templates.", + "description": "Read azure resource manager templates." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "environments", + "operation": "Delete environments.", + "description": "Delete environments." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "environments", + "operation": "Read environments.", + "description": "Read environments." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/environments/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "environments", + "operation": "Add or modify environments.", + "description": "Add or modify environments." + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service runners", + "operation": "Delete service runners.", + "description": "Delete service runners." + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service runners", + "operation": "Read service runners.", + "description": "Read service runners." + } + }, + { + "name": "Microsoft.DevTestLab/labs/serviceRunners/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service runners", + "operation": "Add or modify service runners.", + "description": "Add or modify service runners." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/delete", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics", + "operation": "Delete service fabrics.", + "description": "Delete service fabrics." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/read", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics", + "operation": "Read service fabrics.", + "description": "Read service fabrics." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/write", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics", + "operation": "Add or modify service fabrics.", + "description": "Add or modify service fabrics." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/Start/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics", + "operation": "Start service fabric", + "description": "Start a service fabric." + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/Stop/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics", + "operation": "Stop service fabric", + "description": "Stop a service fabric" + } + }, + { + "name": "Microsoft.DevTestLab/labs/users/serviceFabrics/ListApplicableSchedules/action", + "display": { + "provider": "Microsoft DevTest Labs", + "resource": "Service Fabrics", + "operation": "List all applicable schedules", + "description": "Lists all applicable schedules" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_CreateOrUpdate.json new file mode 100644 index 000000000000..c290ca4eefa7 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_CreateOrUpdate.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{scheduleName}", + "schedule": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Delete.json new file mode 100644 index 000000000000..075a3406e061 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{scheduleName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Execute.json new file mode 100644 index 000000000000..23b76b4129cf --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Execute.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{scheduleName}" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Get.json new file mode 100644 index 000000000000..f743613ec794 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Get.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{scheduleName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_List.json new file mode 100644 index 000000000000..0d606dd52907 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_List.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_ListApplicable.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_ListApplicable.json new file mode 100644 index 000000000000..3fff9835b0e7 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_ListApplicable.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{scheduleName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Update.json new file mode 100644 index 000000000000..4bb9468a1bd7 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Schedules_Update.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{scheduleName}", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_CreateOrUpdate.json new file mode 100644 index 000000000000..1e1b1cbbd169 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_CreateOrUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "{secretName}", + "secret": { + "properties": { + "value": "{secret}" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/secrets/{secretName}", + "name": "{secretName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + }, + "201": { + "body": { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/secrets/{secretName}", + "name": "{secretName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Delete.json new file mode 100644 index 000000000000..d9949ae8acba --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "{secretName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Get.json new file mode 100644 index 000000000000..9ef12f47bcf6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "{secretName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/secrets/{secretName}", + "name": "{secretName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_List.json new file mode 100644 index 000000000000..0835b5cf98dc --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/secrets/secret1", + "name": "secret1", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/users/secrets" + }, + { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/secrets/secret2", + "name": "secret2", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Update.json new file mode 100644 index 000000000000..92b59efb6660 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Secrets_Update.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "{secretName}", + "secret": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/secrets/{secretName}", + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets", + "location": "westcentralus" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..f8b9eb06dd33 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_CreateOrUpdate.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}", + "schedule": { + "location": "westcentralus", + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{Unknown|LabVmsShutdownTask|LabVmsStartupTask|LabVmReclamationTask|ComputeVmShutdownTask}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "time": "19:00" + }, + "dailyRecurrence": { + "time": "19:00" + }, + "hourlyRecurrence": { + "minute": 0 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhoolUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Delete.json new file mode 100644 index 000000000000..9f5635ae07a0 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Execute.json new file mode 100644 index 000000000000..21ee5258422f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Execute.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Get.json new file mode 100644 index 000000000000..0991a2b50bd7 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Get.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_List.json new file mode 100644 index 000000000000..d29148404da8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_List.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "Enabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Update.json new file mode 100644 index 000000000000..67744b044ab5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabricSchedules_Update.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Disabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_CreateOrUpdate.json new file mode 100644 index 000000000000..c7a139fcc9fd --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_CreateOrUpdate.json @@ -0,0 +1,214 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "serviceFabricName", + "serviceFabric": { + "properties": { + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/servicefabrics/serviceFabricName", + "name": "serviceFabricName", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "westcentralus", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus" + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus" + } + }, + "type": "{scheduleType}" + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/servicefabrics/serviceFabricName", + "name": "serviceFabricName", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "westcentralus", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/schedules" + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/schedules" + } + }, + "type": "{scheduleType}" + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Delete.json new file mode 100644 index 000000000000..a64e0a647921 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "serviceFabricName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Get.json new file mode 100644 index 000000000000..34541b99ea99 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Get.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "serviceFabricName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/servicefabrics/serviceFabricName", + "name": "serviceFabricName", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "westcentralus", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/schedules" + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/schedules" + } + }, + "type": "{scheduleType}" + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_List.json new file mode 100644 index 000000000000..cb1dc343654a --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_List.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/servicefabrics/serviceFabricName", + "name": "serviceFabricName", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "westcentralus", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/schedules" + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/schedules" + } + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_ListApplicableSchedules.json new file mode 100644 index 000000000000..09c012ee86c1 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_ListApplicableSchedules.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "serviceFabricName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/schedules" + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/schedules" + } + }, + "type": "{scheduleType}" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Start.json new file mode 100644 index 000000000000..8a768855c991 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Start.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "serviceFabricName" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Stop.json new file mode 100644 index 000000000000..8a768855c991 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Stop.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "serviceFabricName" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Update.json new file mode 100644 index 000000000000..64cb12904b5c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceFabrics_Update.json @@ -0,0 +1,119 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "userName": "UserName001", + "name": "serviceFabricName", + "serviceFabric": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/users/UserName001/servicefabrics/serviceFabricName", + "name": "serviceFabricName", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "westcentralus", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "type": "{scheduleType}" + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_CreateOrUpdate.json new file mode 100644 index 000000000000..f938dc6ce759 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_CreateOrUpdate.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{servicerunnerName}", + "serviceRunner": { + "properties": {}, + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + }, + "tags": { + "tagName1": "tagValue1" + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + }, + "properties": { + "identityUsageType": "environment" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/serviceRunners/{serviceRunnerName}", + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "location": "southeastasia", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + }, + "properties": { + "identityUsageType": "environment" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/serviceRunners/{serviceRunnerName}", + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "location": "southeastasia", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_Delete.json new file mode 100644 index 000000000000..d6524a6618d1 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{servicerunnerName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_Get.json new file mode 100644 index 000000000000..66c523e05ad4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_Get.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{servicerunnerName}" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + }, + "properties": { + "identityUsageType": "environment" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/serviceRunners/{serviceRunnerName}", + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_List.json new file mode 100644 index 000000000000..da90dc97aa95 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/ServiceRunners_List.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + }, + "properties": { + "identityUsageType": "environment" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/servicerunners/{serviceRunnerName}", + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_CreateOrUpdate.json new file mode 100644 index 000000000000..2aee24a137ab --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_CreateOrUpdate.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{sharedGalleryName}", + "sharedGallery": { + "properties": { + "galleryId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.compute/galleries/{sharedGalleryName}", + "allowAllImages": "{Enabled|Disabled}" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "galleryId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.compute/galleries/{sharedGalleryName}", + "allowAllImages": "{Enabled|Disabled}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}", + "name": "{sharedGalleryName}", + "type": "Microsoft.DevTestLab/labs/sharedGalleries", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "galleryId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.compute/galleries/{sharedGalleryName}", + "allowAllImages": "{Enabled|Disabled}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}", + "name": "{sharedGalleryName}", + "type": "Microsoft.DevTestLab/labs/sharedGalleries", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Delete.json new file mode 100644 index 000000000000..9a719c77628e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{sharedGalleryName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Get.json new file mode 100644 index 000000000000..653e60214ab3 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{sharedGalleryName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "galleryId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.compute/galleries/{sharedGalleryName}", + "allowAllImages": "{Enabled|Disabled}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}", + "name": "{sharedGalleryName}", + "type": "Microsoft.DevTestLab/labs/sharedGalleries", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_List.json new file mode 100644 index 000000000000..02fa61d6f52d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "galleryId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.compute/galleries/{sharedGalleryName}", + "allowAllImages": "{Enabled|Disabled}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}", + "name": "{sharedGalleryName}", + "type": "Microsoft.DevTestLab/labs/sharedGalleries", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Update.json new file mode 100644 index 000000000000..d2ebc7da35d9 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedGalleries_Update.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{sharedGalleryName}", + "sharedGallery": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "galleryId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.compute/galleries/{sharedGalleryName}", + "allowAllImages": "{Enabled|Disabled}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}", + "name": "{sharedGalleryName}", + "type": "Microsoft.DevTestLab/labs/sharedGalleries", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_CreateOrUpdate.json new file mode 100644 index 000000000000..14f232b703da --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_CreateOrUpdate.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "sharedGalleryName": "{sharedGalleryName}", + "name": "{name}", + "sharedImage": { + "properties": { + "definitionName": "{definitionName}", + "osType": "{osType}", + "imageType": "{imageType}", + "enableState": "{enabledState}", + "displayName": "{displayName}" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + "name": "{name}", + "type": "Microsoft.DevTestLab/labs/sharedGalleries/sharedImages", + "properties": { + "definitionName": "{definitionName}", + "osType": "{osType}", + "imageType": "{imageType}", + "enableState": "{enabledState}", + "displayName": "{displayName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{guid}" + }, + "location": "westcentralus" + } + }, + "201": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + "name": "{name}", + "type": "Microsoft.DevTestLab/labs/sharedGalleries/sharedImages", + "properties": { + "definitionName": "{definitionName}", + "osType": "{osType}", + "imageType": "{imageType}", + "enableState": "{enabledState}", + "displayName": "{displayName}", + "provisioningState": "Created", + "uniqueIdentifier": "{guid}" + }, + "location": "westcentralus" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Delete.json new file mode 100644 index 000000000000..40d50b5131b9 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "sharedGalleryName": "{sharedGalleryName}", + "name": "{name}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Get.json new file mode 100644 index 000000000000..d03b269d66b8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Get.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "sharedGalleryName": "{sharedGalleryName}", + "name": "{name}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + "name": "{name}", + "type": "Microsoft.DevTestLab/labs/sharedGalleries/sharedImages", + "properties": { + "definitionName": "{definitionName}", + "osType": "{osType}", + "imageType": "{imageType}", + "enableState": "{enabledState}", + "displayName": "{displayName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{guid}" + }, + "location": "westcentralus" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_List.json new file mode 100644 index 000000000000..fbbafd1bac04 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_List.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "sharedGalleryName": "{sharedGalleryName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "definitionName": "{definitionName}", + "osType": "{osType}", + "imageType": "{imageType}", + "enableState": "{enabledState}", + "displayName": "{displayName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{guid}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + "name": "{name}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/sharedGalleries/sharedImages" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Update.json new file mode 100644 index 000000000000..f52da5f28f02 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/SharedImages_Update.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "sharedGalleryName": "{sharedGalleryName}", + "name": "{name}", + "sharedImage": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + "name": "{name}", + "location": "westcentralus", + "type": "Microsoft.DevTestLab/labs/sharedGalleries/sharedImages", + "properties": { + "definitionName": "{definitionName}", + "osType": "{osType}", + "imageType": "{imageType}", + "enableState": "{enabledState}", + "displayName": "{displayName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{guid}" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_CreateOrUpdate.json new file mode 100644 index 000000000000..83b358942af7 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_CreateOrUpdate.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "UserName001", + "user": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/UserName001", + "name": "UserName001", + "type": "Microsoft.DevTestLab/labs/users" + } + }, + "201": { + "body": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/UserName001", + "name": "UserName001", + "type": "Microsoft.DevTestLab/labs/users" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Delete.json new file mode 100644 index 000000000000..33a620403822 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "UserName001" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Get.json new file mode 100644 index 000000000000..407961271d67 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "UserName001" + }, + "responses": { + "200": { + "body": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/UserName001", + "name": "UserName001", + "type": "Microsoft.DevTestLab/labs/users" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_List.json new file mode 100644 index 000000000000..6f900afda07d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_List.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/UserName001", + "name": "UserName001", + "type": "Microsoft.DevTestLab/labs/users" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Update.json new file mode 100644 index 000000000000..c94b290aaf70 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/Users_Update.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "UserName001", + "user": {} + }, + "responses": { + "200": { + "body": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "users/UserName001", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/users/UserName001", + "name": "UserName001", + "type": "Microsoft.DevTestLab/labs/users" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..406c17d367a9 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_CreateOrUpdate.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualMachineName": "vmName001", + "name": "LabVmsShutdown", + "schedule": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001" + }, + "location": "westcentralus", + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001/schedules/LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Created", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001" + }, + "location": "westcentralus", + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001/schedules/LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Delete.json new file mode 100644 index 000000000000..ad651cb5a32c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualMachineName": "vmName001", + "name": "LabVmsShutdown" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Execute.json new file mode 100644 index 000000000000..8f295fd9061b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Execute.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualMachineName": "vmName001", + "name": "LabVmsShutdown" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Get.json new file mode 100644 index 000000000000..9af90e0c4782 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Get.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualMachineName": "vmName001", + "name": "LabVmsShutdown" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001" + }, + "location": "westcentralus", + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001/schedules/mySchedule", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_List.json new file mode 100644 index 000000000000..a66b6bd90cf6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_List.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualMachineName": "vmName001" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/labName}/virtualMachines/vmName001" + }, + "location": "westcentralus", + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001/schedules/mySchedule", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Update.json new file mode 100644 index 000000000000..e2b3721bc46f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachineSchedules_Update.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "virtualMachineName": "vmName001", + "name": "LabVmsShutdown", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001" + }, + "location": "westcentralus", + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualMachines/vmName001/schedules/mySchedule", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_AddDataDisk.json new file mode 100644 index 000000000000..8ab43c9450d1 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_AddDataDisk.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{virtualMachineName}", + "diskName": "diskName", + "diskType": "{diskType}", + "dataDiskProperties": { + "attachNewDataDiskOptions": { + "diskSizeGiB": 127, + "diskName": "diskName", + "diskType": "{diskType}" + } + }, + "hostCaching": "none|readOnly|readWrite" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ApplyArtifacts.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ApplyArtifacts.json new file mode 100644 index 000000000000..8af472ed4523 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ApplyArtifacts.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001", + "applyArtifactsRequest": { + "artifacts": [ + { + "artifactId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/artifactSources/public repo/artifacts/windows-restart" + } + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Claim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Claim.json new file mode 100644 index 000000000000..81255c670e43 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Claim.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ClearArtifactResults.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ClearArtifactResults.json new file mode 100644 index 000000000000..3d171ce9e03f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ClearArtifactResults.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{vmNname}" + }, + "responses": { + "200": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_CreateOrUpdate.json new file mode 100644 index 000000000000..caa0348d1fe0 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_CreateOrUpdate.json @@ -0,0 +1,119 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001", + "virtualNetworkName": "dtlexampleLab", + "username":"UserName001", + "password":"{password}", + "labVirtualMachine": { + "properties": { + "size": "Standard_A2_v2", + "userName": "UserName001", + "password": "{userPassword}", + "labSubnetName": "dtlexampleLabSubnet", + "labVirtualNetworkId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "18.04-LTS", + "osType": "Linux", + "version": "Latest" + }, + "allowClaim": true, + "storageType": "Standard" + }, + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "createdByUserId": "", + "createdByUser": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "size": "Standard_A2_v2", + "userName": "UserName001", + "labSubnetName": "dtlexampleLabSubnet", + "labVirtualNetworkId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "galleryImageReference": { + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04-LTS", + "osType": "Linux", + "version": "Latest" + }, + "networkInterface": {}, + "allowClaim": true, + "storageType": "Standard", + "virtualMachineCreationSource": "FromGalleryImage", + "dataDiskParameters": [], + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001", + "name": "vmName001", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "createdByUserId": "", + "createdByUser": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "size": "Standard_A2_v2", + "userName": "UserName001", + "labSubnetName": "dtlexampleLabSubnet", + "labVirtualNetworkId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "galleryImageReference": { + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04-LTS", + "osType": "Linux", + "version": "Latest" + }, + "networkInterface": {}, + "allowClaim": true, + "storageType": "Standard", + "virtualMachineCreationSource": "FromGalleryImage", + "dataDiskParameters": [], + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001", + "name": "vmName001", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Delete.json new file mode 100644 index 000000000000..cc57247f54e4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_DetachDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_DetachDataDisk.json new file mode 100644 index 000000000000..f9b83b7925dd --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_DetachDataDisk.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{virtualMachineName}", + "detachDataDiskProperties": { + "existingLabDiskId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/{virtualMachineName}" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Get.json new file mode 100644 index 000000000000..a6f1fc0def03 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Get.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001" + }, + "responses": { + "200": { + "body": { + "properties": { + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "createdByUserId": "", + "createdByUser": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "computeId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/exampleLab-vmName001-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/vmName001", + "osType": "Linux", + "size": "Standard_A2_v2", + "userName": "UserName001", + "labSubnetName": "dtlexampleLabSubnet", + "labVirtualNetworkId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "galleryImageReference": { + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04-LTS", + "osType": "Linux", + "version": "Latest" + }, + "networkInterface": {}, + "allowClaim": true, + "storageType": "Standard", + "virtualMachineCreationSource": "FromGalleryImage", + "dataDiskParameters": [], + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001", + "name": "vmName001", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_GetRdpFileContents.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_GetRdpFileContents.json new file mode 100644 index 000000000000..07c47d2491d4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_GetRdpFileContents.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001" + }, + "responses": { + "200": { + "body": { + "contents": "full address:s:10.0.0.4\r\nprompt for credentials:i:1\r\nusername:s:vmName001\\UserName001\r\n" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_List.json new file mode 100644 index 000000000000..e62c3145b037 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_List.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "createdByUserId": "", + "createdByUser": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "computeId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/exampleLab-vmName001-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/vmName001", + "osType": "Linux", + "size": "Standard_A2_v2", + "userName": "UserName001", + "labSubnetName": "dtlexampleLabSubnet", + "labVirtualNetworkId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "galleryImageReference": { + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04-LTS", + "osType": "Linux", + "version": "Latest" + }, + "networkInterface": {}, + "allowClaim": true, + "storageType": "Standard", + "virtualMachineCreationSource": "FromGalleryImage", + "dataDiskParameters": [], + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001", + "name": "vmName001", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ListApplicableSchedules.json new file mode 100644 index 000000000000..7b38ec4591eb --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_ListApplicableSchedules.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001" + }, + "responses": { + "200": { + "body": { + "properties": { + "labVmsShutdown": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2020-12-29T21:48:14.1369355+00:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/virtualmachines/vmName001", + "provisioningState": "Succeeded", + "uniqueIdentifier": "4acf0408-1c10-49cb-96b7-28ce655c8320" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/schedules/myAutoShutdownSchedule", + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "location": "westcentralus" + }, + "labVmsStartup": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1000" + }, + "dailyRecurrence": { + "time": "0900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2020-12-29T21:46:37.0473976+00:00", + "targetResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/virtualmachines/vmName001", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/exampleLab/schedules/myAutoStartSchedule", + "name": "LabVmAutoStart", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "location": "westcentralus" + } + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Redeploy.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Redeploy.json new file mode 100644 index 000000000000..bfb45b39163e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Redeploy.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001", + "monitor": "true" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Resize.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Resize.json new file mode 100644 index 000000000000..2ebd8a5a80e4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Resize.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001", + "monitor": "true", + "resizeLabVirtualMachineProperties": { + "size": "Standard_A4_v2" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Restart.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Restart.json new file mode 100644 index 000000000000..bfb45b39163e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Restart.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001", + "monitor": "true" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Start.json new file mode 100644 index 000000000000..bfb45b39163e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Start.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001", + "monitor": "true" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Stop.json new file mode 100644 index 000000000000..81255c670e43 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Stop.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_TransferDisks.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_TransferDisks.json new file mode 100644 index 000000000000..268bcb8a16a4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_TransferDisks.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "{virtualmachineName}" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_UnClaim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_UnClaim.json new file mode 100644 index 000000000000..bfb45b39163e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_UnClaim.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001", + "monitor": "true" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Update.json new file mode 100644 index 000000000000..ed8af5249fdc --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualMachines_Update.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "vmName001", + "labVirtualMachine": {} + }, + "responses": { + "200": { + "body": { + "properties": { + "ownerObjectId": "", + "ownerUserPrincipalName": "", + "createdByUserId": "", + "createdByUser": "", + "createdDate": "2018-10-01T16:53:02.4830866-07:00", + "computeId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/exampleLab-vmName001-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/vmName001", + "osType": "Linux", + "size": "Standard_A2_v2", + "userName": "UserName001", + "labSubnetName": "dtlexampleLabSubnet", + "labVirtualNetworkId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "disallowPublicIpAddress": true, + "artifactDeploymentStatus": { + "artifactsApplied": 0, + "totalArtifacts": 0 + }, + "galleryImageReference": { + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04-LTS", + "osType": "Linux", + "version": "Latest" + }, + "networkInterface": {}, + "allowClaim": true, + "storageType": "Standard", + "virtualMachineCreationSource": "FromGalleryImage", + "dataDiskParameters": [], + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualmachines/vmName001", + "name": "vmName001", + "type": "Microsoft.DevTestLab/labs/virtualMachines", + "location": "westcentralus", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_CreateOrUpdate.json new file mode 100644 index 000000000000..860dfe2e04b6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_CreateOrUpdate.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "dtlexampleLab", + "virtualNetwork": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "properties": { + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "name": "dtlexampleLab", + "type": "Microsoft.DevTestLab/labs/virtualNetworks" + } + }, + "201": { + "body": { + "properties": { + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "name": "dtlexampleLab", + "type": "Microsoft.DevTestLab/labs/virtualNetworks" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Delete.json new file mode 100644 index 000000000000..0d19b420ff4b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "dtlexampleLab" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Get.json new file mode 100644 index 000000000000..2fbbce648e66 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Get.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "dtlexampleLab" + }, + "responses": { + "200": { + "body": { + "properties": { + "allowedSubnets": [ + { + "resourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/dtlexampleLab/subnets/dtlexampleLabSubnet", + "labSubnetName": "dtlexampleLabSubnet", + "allowPublicIp": "Allow" + } + ], + "externalProviderResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/dtlexampleLab", + "subnetOverrides": [ + { + "resourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/dtlexampleLab/subnets/dtlexampleLabSubnet", + "labSubnetName": "dtlexampleLabSubnet", + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow", + "sharedPublicIpAddressConfiguration": { + "allowedPorts": [ + { + "transportProtocol": "Tcp", + "backendPort": 3389 + }, + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + } + ], + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "name": "dtlexampleLab", + "type": "Microsoft.DevTestLab/labs/virtualNetworks" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_List.json new file mode 100644 index 000000000000..c70d510876f4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_List.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowedSubnets": [ + { + "resourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/dtlexampleLab/subnets/dtlexampleLabSubnet", + "labSubnetName": "dtlexampleLabSubnet", + "allowPublicIp": "Allow" + } + ], + "externalProviderResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/dtlexampleLab", + "subnetOverrides": [ + { + "resourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/dtlexampleLab/subnets/dtlexampleLabSubnet", + "labSubnetName": "dtlexampleLabSubnet", + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow", + "sharedPublicIpAddressConfiguration": { + "allowedPorts": [ + { + "transportProtocol": "Tcp", + "backendPort": 3389 + }, + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + } + ], + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "name": "dtlexampleLab", + "type": "Microsoft.DevTestLab/labs/virtualNetworks" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Update.json new file mode 100644 index 000000000000..ec4b214155fc --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/examples/VirtualNetworks_Update.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-09-01", + "subscriptionId": "e605a3bc-ee4e-4c7a-9709-1868a28b1d4d", + "resourceGroupName": "resourceGroupName", + "labName": "exampleLab", + "name": "dtlexampleLab", + "virtualNetwork": {} + }, + "responses": { + "200": { + "body": { + "properties": { + "externalProviderResourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/dtlexampleLab", + "subnetOverrides": [ + { + "resourceId": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/dtlexampleLab/subnets/dtlexampleLabSubnet", + "labSubnetName": "dtlexampleLabSubnet", + "useInVmCreationPermission": "Allow", + "usePublicIpAddressPermission": "Allow", + "sharedPublicIpAddressConfiguration": { + "allowedPorts": [ + { + "transportProtocol": "Tcp", + "backendPort": 3389 + }, + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + } + ], + "createdDate": "2018-10-01T13:01:44.6005134-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/e605a3bc-ee4e-4c7a-9709-1868a28b1d4d/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/exampleLab/virtualnetworks/dtlexampleLab", + "name": "dtlexampleLab", + "type": "Microsoft.DevTestLab/labs/virtualNetworks" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/ArtifactScenarios.yaml b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/ArtifactScenarios.yaml new file mode 100644 index 000000000000..3fca3c28cbbd --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/ArtifactScenarios.yaml @@ -0,0 +1,72 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json +scope: ResourceGroup +variables: + labName: + type: string + prefix: lab + artifactSourceName: + type: string + prefix: artifactSource +prepareSteps: + - step: Create_a_lab + operationId: Labs_CreateOrUpdate + exampleFile: ..\examples\Labs_CreateOrUpdate.json + variables: + name: + type: string + value: $(labName) +cleanUpSteps: + - step: Delete_Lab + operationId: Labs_Delete + exampleFile: ..\examples\Labs_Delete.json + variables: + name: + type: string + value: $(labName) +scenarios: + - scenario: ArtifactSource_AddCustomSource + steps: + - step: Create_ArtifactSource + operationId: ArtifactSources_CreateOrUpdate + exampleFile: ../examples/ArtifactSources_CreateOrUpdate.json + variables: + labName: + type: string + value: $(labName) + name: + type: string + value: $(artifactSourceName) + requestUpdate: + - replace: /artifactSource/properties/displayName + value: 'ApiTest artifact source' + - replace: /artifactSource/properties/uri + value: $(repo_cloneuri) + - replace: /artifactSource/properties/sourceType + value: $(repo_type) + - replace: /artifactSource/properties/folderPath + value: $(repo_folderPath) + - replace: /artifactSource/properties/armTemplateFolderPath + value: null + - replace: /artifactSource/properties/branchRef + value: $(repo_branchref) + - replace: /artifactSource/properties/securityToken + value: $(repo_pat) + - replace: /artifactSource/properties/status + value: 'Enabled' + - step: Get_ArtifactSource + operationId: ArtifactSources_Get + exampleFile: ../examples/ArtifactSources_Get.json + variables: + labName: + type: string + value: $(labName) + name: + type: string + value: $(artifactSourceName) + - step: List_ArtifactSource + operationId: ArtifactSources_List + exampleFile: ../examples/ArtifactSources_List.json + variables: + labName: + type: string + value: $(labName) \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabScenarios.yaml b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabScenarios.yaml new file mode 100644 index 000000000000..41c5d939dd21 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabScenarios.yaml @@ -0,0 +1,49 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json +scope: ResourceGroup +variables: + labName: + type: string + prefix: lab +prepareSteps: + - step: Create_a_lab + operationId: Labs_CreateOrUpdate + exampleFile: ..\examples\Labs_CreateOrUpdate.json + variables: + name: + type: string + value: $(labName) +cleanUpSteps: + - step: Delete_Lab + operationId: Labs_Delete + exampleFile: ..\examples\Labs_Delete.json + variables: + name: + type: string + value: $(labName) +scenarios: + - scenario: Lab_Scenarios + steps: + - step: Get_Lab + operationId: Labs_Get + exampleFile: ../examples/Labs_Get.json + variables: + name: + type: string + value: $(labName) + - step: Labs_GenerateUploadUri + operationId: Labs_GenerateUploadUri + exampleFile: ../examples/Labs_GenerateUploadUri.json + variables: + name: + type: string + value: $(labName) + blob-name: + type: string + prefix: blob + - step: Labs_EnsureCurrentUserProfile + operationId: Labs_EnsureCurrentUserProfile + exampleFile: ../examples/Labs_EnsureCurrentUserProfile.json + variables: + name: + type: string + value: $(labName) \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabSecretScenarios.yaml b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabSecretScenarios.yaml new file mode 100644 index 000000000000..b6377e5655b1 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabSecretScenarios.yaml @@ -0,0 +1,59 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json +scope: ResourceGroup +variables: + labName: + type: string + prefix: lab + secretName: + type: string + prefix: labSecret +prepareSteps: + - step: Create_a_lab + operationId: Labs_CreateOrUpdate + exampleFile: ..\examples\Labs_CreateOrUpdate.json + variables: + name: + type: string + value: $(labName) +cleanUpSteps: + - step: Delete_Lab + operationId: Labs_Delete + exampleFile: ..\examples\Labs_Delete.json + variables: + name: + type: string + value: $(labName) +scenarios: + - scenario: LabSecret_Scenarios + steps: + - step: CreateLabSecret + operationId: LabSecrets_CreateOrUpdate + exampleFile: ../examples/LabSecrets_CreateOrUpdate.json + variables: + name: + type: string + value: $(secretName) + - step: Get_LabSecret + operationId: LabSecrets_Get + exampleFile: ../examples/LabSecrets_Get.json + variables: + name: + type: string + value: $(secretName) + - step: Update_LabSecret + operationId: LabSecrets_Update + exampleFile: ../examples/LabSecrets_Update.json + variables: + secretValue: + type: secureString + value: foobar + name: + type: string + value: $(secretName) + - step: Delete_LabSecret + operationId: LabSecrets_Delete + exampleFile: ../examples/LabSecrets_Delete.json + variables: + name: + type: string + value: $(secretName) \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabUserScenarios.yaml b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabUserScenarios.yaml new file mode 100644 index 000000000000..1a9efdb393ee --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/LabUserScenarios.yaml @@ -0,0 +1,55 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json +scope: ResourceGroup +variables: + labName: + type: string + prefix: lab +prepareSteps: + - step: Create_a_lab + operationId: Labs_CreateOrUpdate + exampleFile: ..\examples\Labs_CreateOrUpdate.json + variables: + name: + type: string + value: $(labName) +cleanUpSteps: + - step: Delete_Lab + operationId: Labs_Delete + exampleFile: ..\examples\Labs_Delete.json + variables: + name: + type: string + value: $(labName) +scenarios: + - scenario: LabUser_Scenarios + steps: + - step: Create_LabUser + operationId: Users_CreateOrUpdate + exampleFile: ../examples/Users_CreateOrUpdate.json + variables: + labName: + type: string + value: $(labName) + name: + type: string + value: $(client_id) + tenantId: + type: string + value: $(tenantId) + - step: Get_LabUser + operationId: Users_Get + exampleFile: ../examples/Users_Get.json + variables: + labName: + type: string + value: $(labName) + name: + type: string + value: $(client_id) + - step: List_LabUser + operationId: Users_List + exampleFile: ../examples/Users_List.json + variables: + labName: + type: string + value: $(labName) \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/UserSecretScenarios.yaml b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/UserSecretScenarios.yaml new file mode 100644 index 000000000000..f2b67f8b5bc7 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/UserSecretScenarios.yaml @@ -0,0 +1,67 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json +scope: ResourceGroup +variables: + labName: + type: string + prefix: lab + secretName: + type: string + prefix: secret +prepareSteps: + - step: Create_a_lab + operationId: Labs_CreateOrUpdate + exampleFile: ..\examples\Labs_CreateOrUpdate.json + variables: + name: + type: string + value: $(labName) +cleanUpSteps: + - step: Delete_Lab + operationId: Labs_Delete + exampleFile: ..\examples\Labs_Delete.json + variables: + name: + type: string + value: $(labName) +scenarios: + - scenario: UserSecret_Scenarios + steps: + - step: Create_LabUser + operationId: Users_CreateOrUpdate + exampleFile: ../examples/Users_CreateOrUpdate.json + variables: + labName: + type: string + value: $(labName) + name: + type: string + value: $(client_id) + tenantId: + type: string + value: $(tenantId) + - step: Create_UserSecret + operationId: Secrets_CreateOrUpdate + exampleFile: ../examples/Secrets_CreateOrUpdate.json + variables: + labName: + type: string + value: $(labName) + userName: + type: string + value: $(client_id) + name: + type: string + value: $(secretName) + secret: + type: secureString + value: foobar + - step: List_UserSecret + operationId: Secrets_List + exampleFile: ../examples/Secrets_List.json + variables: + labName: + type: string + value: $(labName) + userName: + type: string + value: $(client_id) \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/VirtualMachineScenarios.yaml b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/VirtualMachineScenarios.yaml new file mode 100644 index 000000000000..25f4ea3723aa --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/VirtualMachineScenarios.yaml @@ -0,0 +1,113 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json +scope: ResourceGroup +variables: + labName: + type: string + prefix: lab + virtualNetworkName: + type: string + prefix: vnet + virtualMachineName: + type: string + prefix: vm +prepareSteps: + - step: Create_a_lab + operationId: Labs_CreateOrUpdate + exampleFile: ..\examples\Labs_CreateOrUpdate.json + variables: + name: + type: string + value: $(labName) + - step: Create_VirtualNetwork + operationId: VirtualNetworks_CreateOrUpdate + exampleFile: ..\examples\VirtualNetworks_CreateOrUpdate.json + variables: + name: + type: string + value: $(virtualNetworkName) +cleanUpSteps: + - step: Delete_Lab + operationId: Labs_Delete + exampleFile: ..\examples\Labs_Delete.json + variables: + name: + type: string + value: $(labName) +scenarios: + - scenario: VirtualMachine_Scenarios + steps: + - step: Create_a_virtual_machine + operationId: VirtualMachines_CreateOrUpdate + exampleFile: ../examples/VirtualMachines_CreateOrUpdate.json + variables: + name: + type: string + value: $(virtualMachineName) + username: + type: string + prefix: user + virtualNetworkName: + type: string + value: $(virtualNetworkName) + - step: Get_A_VirtualMachine + operationId: VirtualMachines_Get + exampleFile: ../examples/VirtualMachines_Get.json + variables: + name: + type: string + value: $(virtualMachineName) + - step: Stop_The_Virtual_Machine + operationId: VirtualMachines_Stop + exampleFile: ../examples/VirtualMachines_Stop.json + variables: + name: + type: string + value: $(virtualMachineName) + - step: Start_The_Virtual_Machine + operationId: VirtualMachines_Start + exampleFile: ../examples/VirtualMachines_Start.json + variables: + name: + type: string + value: $(virtualMachineName) + - step: Restart_The_Virtual_Machine + operationId: VirtualMachines_Restart + exampleFile: ../examples/VirtualMachines_Restart.json + variables: + name: + type: string + value: $(virtualMachineName) + - step: Resize_The_Virtual_Machine + operationId: VirtualMachines_Resize + exampleFile: ../examples/VirtualMachines_Resize.json + variables: + name: + type: string + value: $(virtualMachineName) + - step: Redeploy_The_Virtual_Machine + operationId: VirtualMachines_Redeploy + exampleFile: ../examples/VirtualMachines_Redeploy.json + variables: + name: + type: string + value: $(virtualMachineName) + - step: Add_Data_Disk + operationId: VirtualMachines_AddDataDisk + exampleFile: ../examples/VirtualMachines_AddDataDisk.json + variables: + name: + type: string + value: $(virtualMachineName) + diskName: + type: string + prefix: data + diskType: + type: string + value: Premium + - step: Delete_The_Virtual_Machine + operationId: VirtualMachines_Delete + exampleFile: ../examples/VirtualMachines_Delete.json + variables: + name: + type: string + value: $(virtualMachineName) \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/VirtualNetworkScenarios.yaml b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/VirtualNetworkScenarios.yaml new file mode 100644 index 000000000000..57a97022330c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2021-09-01/scenarios/VirtualNetworkScenarios.yaml @@ -0,0 +1,63 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json +scope: ResourceGroup +variables: + labName: + type: string + prefix: lab + virtualNetworkName: + type: string + prefix: vnet +prepareSteps: + - step: Create_a_lab + operationId: Labs_CreateOrUpdate + exampleFile: ..\examples\Labs_CreateOrUpdate.json + variables: + name: + type: string + value: $(labName) +cleanUpSteps: + - step: Delete_Lab + operationId: Labs_Delete + exampleFile: ..\examples\Labs_Delete.json + variables: + name: + type: string + value: $(labName) +scenarios: + - scenario: VirtualMachine_Scenarios + steps: + - step: Create_VirtualNetwork + operationId: VirtualNetworks_CreateOrUpdate + exampleFile: ..\examples\VirtualNetworks_CreateOrUpdate.json + variables: + name: + type: string + value: $(virtualNetworkName) + - step: Get_VirtualNetwork + operationId: VirtualNetworks_Get + exampleFile: ../examples/VirtualNetworks_Get.json + variables: + name: + type: string + value: $(virtualNetworkName) + - step: Update_VirtualNetwork + operationId: VirtualNetworks_Update + exampleFile: ../examples/VirtualNetworks_Update.json + variables: + name: + type: string + value: $(virtualNetworkName) + - step: List_VirtualNetwork + operationId: VirtualNetworks_List + exampleFile: ../examples/VirtualNetworks_List.json + variables: + name: + type: string + value: $(labName) + - step: Delete_VirtualNetwork + operationId: VirtualNetworks_Delete + exampleFile: ../examples/VirtualNetworks_Delete.json + variables: + name: + type: string + value: $(virtualNetworkName) \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index d5b3c2239f82..3f77faeeee22 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -4,10 +4,10 @@ This is the AutoRest configuration file for DevTestLab. - - --- + ## Getting Started + To build the SDK for DevTestLab, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,20 +15,28 @@ To build the SDK for DevTestLab, simply [Install AutoRest](https://aka.ms/autore To see additional help and options, run: > `autorest --help` + --- ## Configuration - - ### Basic Information + These are the global settings for the DevTestLab API. ``` yaml openapi-type: arm -tag: package-2018-09 +tag: package-2021-09 ``` +### Tag: package-2021-09 + +These settings apply only when `--tag=package-2021-09` is specified on the command line. + +``` yaml $(tag) == 'package-2021-09' +input-file: + - Microsoft.DevTestLab/stable/2021-09-01/DTL.json +``` ### Tag: package-2018-09 @@ -57,10 +65,9 @@ input-file: - Microsoft.DevTestLab/preview/2015-05-21-preview/DTL.json ``` - --- -# Code Generation +# Code Generation ## Swagger to SDK @@ -69,11 +76,12 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-net-track2 + - repo: azure-sdk-for-net - repo: azure-sdk-for-python - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go + - repo: azure-sdk-for-go-track2 - repo: azure-sdk-for-js - repo: azure-sdk-for-node - repo: azure-sdk-for-ruby @@ -83,7 +91,6 @@ swagger-to-sdk: - repo: azure-powershell ``` - ## C# These settings apply only when `--csharp` is specified on the command line. @@ -110,5 +117,188 @@ See configuration in [readme.go.md](./readme.go.md) See configuration in [readme.java.md](./readme.java.md) +## Suppression - +``` yaml +directive: + - from: DTL.json + suppress: R3006 # BodyTopLevelProperties + where: + - $.definitions.Lab.properties + - $.definitions.ArtifactSource.properties + - $.definitions.LabCost.properties + - $.definitions.CustomImage.properties + - $.definitions.Formula.properties + - $.definitions.NotificationChannel.properties + - $.definitions.Policy.properties + - $.definitions.Schedule.properties + - $.definitions.LabSecret.properties + - $.definitions.ServiceRunner.properties + - $.definitions.SharedGallery.properties + - $.definitions.SharedImage.properties + - $.definitions.User.properties + - $.definitions.Disk.properties + - $.definitions.DtlEnvironment.properties + - $.definitions.Secret.properties + - $.definitions.ServiceFabric.properties + - $.definitions.LabVirtualMachine.properties + - $.definitions.VirtualNetwork.properties + - $.definitions.BastionHost.properties + - $.definitions.ArmTemplate.properties + - $.definitions.Artifact.properties + - $.definitions.Cost.properties + - $.definitions.GalleryImage.properties + - $.definitions.PolicySet.properties + reason: Currently systemData is not allowed. + - suppress: TrackedResourceListByResourceGroup + from: DTL.json + where: + - $.definitions.ArtifactSource + - $.definitions.Formula + - $.definitions.CustomImage + - $.definitions.NotificationChannel + - $.definitions.Policy + - $.definitions.Schedule + - $.definitions.LabSecret + - $.definitions.ServiceRunner + - $.definitions.SharedGallery + - $.definitions.SharedImage + - $.definitions.User + - $.definitions.Disk + - $.definitions.DtlEnvironment + - $.definitions.Secret + - $.definitions.ServiceFabric + - $.definitions.LabVirtualMachine + - $.definitions.VirtualNetwork + - $.definitions.BastionHost + reason: Tooling issue + - suppress: R3010 # TrackedResourceListByImmediateParent + from: DTL.json + where: + - $.definitions.ArmTemplate + - $.definitions.Artifact + - $.definitions.ArtifactSource + - $.definitions.CustomImage + - $.definitions.Formula + - $.definitions.GalleryImage + - $.definitions.NotificationChannel + - $.definitions.Schedule + - $.definitions.LabSecret + - $.definitions.ServiceRunner + - $.definitions.SharedGallery + - $.definitions.SharedImage + - $.definitions.User + - $.definitions.Disk + - $.definitions.DtlEnvironment + - $.definitions.Secret + - $.definitions.ServiceFabric + - $.definitions.Schedule + - $.definitions.LabCost + - $.definitions.LabVirtualMachine + - $.definitions.VirtualNetwork + - $.definitions.BastionHost + reason: These have never been supported. + - suppress: R3018 # EnumInsteadOfBoolean + from: DTL.json + where: + - $.definitions.LabSecretProperties.properties.enabledForArmEnvironments + - $.definitions.LabSecretProperties.properties.enabledForVmCreation + - $.definitions.LabSecretProperties.properties.enabledForArtifacts + - $.definitions.GalleryImageProperties.properties.enabled + - $.definitions.ArmTemplateProperties.properties.enabled + - $.definitions.CustomImageProperties.properties.isPlanAuthorized + - $.definitions.CustomImagePropertiesCustom.properties.sysPrep + - $.definitions.GalleryImageProperties.properties.isPlanAuthorized + - $.definitions.LabAnnouncementProperties.properties.expired + - $.definitions.LabProperties.properties.disableAutoUpgradeCseMinorVersion + - $.definitions.LabVirtualMachineCreationParameterProperties.properties.isAuthenticationWithSshKey + - $.definitions.LabVirtualMachineCreationParameterProperties.properties.disallowPublicIpAddress + - $.definitions.LabVirtualMachineCreationParameterProperties.properties.allowClaim + - $.definitions.LabVirtualMachineCreationParameterProperties.properties.canApplyArtifacts + - $.definitions.LabVirtualMachineProperties.properties.isAuthenticationWithSshKey + - $.definitions.LabVirtualMachineProperties.properties.disallowPublicIpAddress + - $.definitions.LabVirtualMachineProperties.properties.allowClaim + - $.definitions.LabVirtualMachineProperties.properties.canApplyArtifacts + - $.definitions.PolicySetResult.properties.hasError + reason: Booleans are used to indicate binary states of the property, enum is not appropriate. + - suppress: R3018 # EnumInsteadOfBoolean + from: types.json + where: + - $.definitions.ResourceModelWithAllowedPropertySet.properties.identity + - $.definitions.ResourceModelWithAllowedPropertySet.properties.sku + - $.definitions.ResourceModelWithAllowedPropertySet.properties.plan + - $.definitions.CheckNameAvailabilityResponse.properties.nameAvailable + - $.definitions.Operation.properties.isDataAction + reason: This is a copy of the common types from ARM. + - suppress: R3026 # EnumInsteadOfBoolean + from: DTL.json + where: + - $.definitions.ServiceRunner + reason: Booleans are used to indicate binary states of the property, enum is not appropriate. + - suppress: TrackedResourceListByImmediateParent + from: DTL.json + where: $.definitions + reason: Tooling issue - the listed resources do have a list by immediate parent. + - suppress: R1003 # ListInOperationName + from: DTL.json + where: + - $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{location}/operations/{name}"].get.operationId + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policySets/{name}/evaluatePolicies"] + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies"].post.operationId + reason: This action is also named this way in previous SDK versions. Changing it would be a breaking change. + - suppress: R4000 # SDKViolation + from: types.json + where: + - $.definitions.KeyVaultProperties + - $.definitions.ResourceModelWithAllowedPropertySet.properties.identity + - $.definitions.ResourceModelWithAllowedPropertySet.properties.plan + - $.definitions.ResourceModelWithAllowedPropertySet.properties.sku + reason: This is a copy of the common types from ARM. + - suppress: R4014 # AllResourcesMustHaveGetOperation + from: DTL.json + where: $.definitions.PolicySet + reason: This operation doesn't make sense in the context of policysets and has never been supported. + - suppress: R4015 # NestedResourcesMustHaveListOperation + from: types.json + where: + - $.definitions.LabCost + - $.definitions.KeyVaultProperties + - $.definitions.Operation.properties.isDataAction + - $.definitions.ResourceModelWithAllowedPropertySet.properties.identity + - $.definitions.ResourceModelWithAllowedPropertySet.properties.sku + - $.definitions.ResourceModelWithAllowedPropertySet.properties.plan + reason: This is a copy of the common types from ARM. + - suppress: R4021 # DescriptionAndTitleMissing + from: types.json + where: + - $.definitions.KeyVaultProperties + - $.definitions.Operation.properties.isDataAction + - $.definitions.ResourceModelWithAllowedPropertySet.properties.identity + - $.definitions.ResourceModelWithAllowedPropertySet.properties.sku + - $.definitions.ResourceModelWithAllowedPropertySet.properties.plan + reason: This is a copy of the common types from ARM. + - suppress: R4041 # XmsIdentifierValidation + from: DTL.json + where: + - $.definitions.ComputeVmProperties.properties.statuses + - $.definitions.SharedImageProperties.properties.versions + reason: No natural id property + - suppress: R4041 # XmsIdentifierValidation + from: types.json + where: + - $.definitions.ErrorDetail.properties.details + - $.definitions.ErrorDetail.properties.additionalInfo + - $.definitions.OperationListResult.properties.value + - $.definitions.ErrorDetail.properties.details + - $.definitions.ErrorDetail.properties.additionalInfo + - $.definitions.OperationListResult.properties.value + reason: This is a copy of the common types from ARM. + - suppress: R2054 # SecurityDefinitionsStructure + from: types.json + where: $ + reason: This is a copy of the common types from ARM. + - suppress: PatchIdentityProperty + from: types.json + where: $ + reason: Patch in DTL only supports updating tags. +``` \ No newline at end of file