openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 306 kB
JSON
{"openapi":"3.0.0","info":{"description":"The DevTest Labs Client.","title":"DevTestLabsClient","version":"2018-09-15","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"devtestlabs-DTL","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/providers/Microsoft.DevTestLab/operations":{"get":{"description":"Result of the request to list REST API operations","operationId":"ProviderOperations_List","parameters":[{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOperationResult"},"examples":{"ProviderOperations_List":{"$ref":"#/components/examples/ProviderOperations_List"}}}}}},"tags":["ProviderOperations"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs":{"get":{"description":"List labs in a subscription.","operationId":"Labs_ListBySubscription","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"description":"Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabList"},"examples":{"Labs_ListBySubscription":{"$ref":"#/components/examples/Labs_ListBySubscription"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Labs"],"x-ms-odata":"#/components/schemas/Lab","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}":{"get":{"description":"Get operation.","operationId":"Operations_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/locationName"},{"description":"The name of the operation.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Operations"]}},"/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/schedules":{"get":{"description":"List schedules in a subscription.","operationId":"GlobalSchedules_ListBySubscription","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"description":"Specify the $expand query. Example: 'properties($select=status)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["GlobalSchedules"],"x-ms-odata":"#/components/schemas/Schedule","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs":{"get":{"description":"List labs in a resource group.","operationId":"Labs_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabList"},"examples":{"Labs_ListByResourceGroup":{"$ref":"#/components/examples/Labs_ListByResourceGroup"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Labs"],"x-ms-odata":"#/components/schemas/Lab","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources":{"get":{"description":"List artifact sources in a given lab.","operationId":"ArtifactSources_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=displayName)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactSourceList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ArtifactSources"],"x-ms-odata":"#/components/schemas/ArtifactSource","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates":{"get":{"description":"List azure resource manager templates in a given artifact source.","operationId":"ArmTemplates_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"artifactSourceName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=displayName)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArmTemplateList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ArmTemplates"],"x-ms-odata":"#/components/schemas/ArmTemplate","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}":{"get":{"description":"Get azure resource manager template.","operationId":"ArmTemplates_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"artifactSourceName","required":true,"schema":{"type":"string"}},{"description":"The name of the azure resource manager template.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=displayName)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArmTemplate"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ArmTemplates"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts":{"get":{"description":"List artifacts in a given artifact source.","operationId":"Artifacts_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"artifactSourceName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=title)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Artifacts"],"x-ms-odata":"#/components/schemas/Artifact","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}":{"get":{"description":"Get artifact.","operationId":"Artifacts_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"artifactSourceName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=title)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Artifacts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate":{"post":{"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":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"artifactSourceName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateArmTemplateRequest"}}},"description":"Parameters for generating an ARM template for deploying artifacts.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArmTemplateInfo"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Artifacts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}":{"delete":{"description":"Delete artifact source.","operationId":"ArtifactSources_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ArtifactSources"]},"get":{"description":"Get artifact source.","operationId":"ArtifactSources_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=displayName)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactSource"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ArtifactSources"]},"patch":{"description":"Allows modifying tags of artifact sources. All other properties will be ignored.","operationId":"ArtifactSources_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactSourceFragment"}}},"description":"Properties of an artifact source.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactSource"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ArtifactSources"]},"put":{"description":"Create or replace an existing artifact source.","operationId":"ArtifactSources_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the artifact source.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactSource"}}},"description":"Properties of an artifact source.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactSource"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactSource"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ArtifactSources"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}":{"get":{"description":"Get cost.","operationId":"Costs_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the cost.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($expand=labCostDetails)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabCost"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Costs"]},"put":{"description":"Create or replace an existing cost.","operationId":"Costs_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the cost.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabCost"}}},"description":"A cost item.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabCost"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabCost"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Costs"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages":{"get":{"description":"List custom images in a given lab.","operationId":"CustomImages_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=vm)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["CustomImages"],"x-ms-odata":"#/components/schemas/CustomImage","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}":{"delete":{"description":"Delete custom image. This operation can take a while to complete.","operationId":"CustomImages_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the custom image.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["CustomImages"],"x-ms-long-running-operation":true},"get":{"description":"Get custom image.","operationId":"CustomImages_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the custom image.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=vm)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImage"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["CustomImages"]},"patch":{"description":"Allows modifying tags of custom images. All other properties will be ignored.","operationId":"CustomImages_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the custom image.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageFragment"}}},"description":"A custom image.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImage"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["CustomImages"]},"put":{"description":"Create or replace an existing custom image. This operation can take a while to complete.","operationId":"CustomImages_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the custom image.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImage"}}},"description":"A custom image.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImage"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["CustomImages"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas":{"get":{"description":"List formulas in a given lab.","operationId":"Formulas_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=description)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormulaList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Formulas"],"x-ms-odata":"#/components/schemas/Formula","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}":{"delete":{"description":"Delete formula.","operationId":"Formulas_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the formula.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Formulas"]},"get":{"description":"Get formula.","operationId":"Formulas_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the formula.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=description)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Formula"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Formulas"]},"patch":{"description":"Allows modifying tags of formulas. All other properties will be ignored.","operationId":"Formulas_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the formula.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormulaFragment"}}},"description":"A formula for creating a VM, specifying an image base and other parameters","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Formula"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Formulas"]},"put":{"description":"Create or replace an existing formula. This operation can take a while to complete.","operationId":"Formulas_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the formula.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Formula"}}},"description":"A formula for creating a VM, specifying an image base and other parameters","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Formula"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Formula"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Formulas"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages":{"get":{"description":"List gallery images in a given lab.","operationId":"GalleryImages_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=author)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImageList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["GalleryImages"],"x-ms-odata":"#/components/schemas/GalleryImage","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels":{"get":{"description":"List notification channels in a given lab.","operationId":"NotificationChannels_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=webHookUrl)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["NotificationChannels"],"x-ms-odata":"#/components/schemas/NotificationChannel","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}":{"delete":{"description":"Delete notification channel.","operationId":"NotificationChannels_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the notification channel.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["NotificationChannels"]},"get":{"description":"Get notification channel.","operationId":"NotificationChannels_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the notification channel.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=webHookUrl)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannel"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["NotificationChannels"]},"patch":{"description":"Allows modifying tags of notification channels. All other properties will be ignored.","operationId":"NotificationChannels_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the notification channel.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelFragment"}}},"description":"A notification.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannel"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["NotificationChannels"]},"put":{"description":"Create or replace an existing notification channel.","operationId":"NotificationChannels_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the notification channel.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannel"}}},"description":"A notification.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannel"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannel"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["NotificationChannels"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}/notify":{"post":{"description":"Send notification to provided channel.","operationId":"NotificationChannels_Notify","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the notification channel.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyParameters"}}},"description":"Properties for generating a Notification.","required":true},"responses":{"200":{"description":"OK"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["NotificationChannels"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies":{"post":{"description":"Evaluates lab policy.","operationId":"PolicySets_EvaluatePolicies","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy set.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluatePoliciesRequest"}}},"description":"Request body for evaluating a policy set.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluatePoliciesResponse"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["PolicySets"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies":{"get":{"description":"List policies in a given policy set.","operationId":"Policies_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy set.","in":"path","name":"policySetName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=description)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Policies"],"x-ms-odata":"#/components/schemas/Policy","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}":{"delete":{"description":"Delete policy.","operationId":"Policies_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy set.","in":"path","name":"policySetName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Policies"]},"get":{"description":"Get policy.","operationId":"Policies_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy set.","in":"path","name":"policySetName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=description)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Policies"]},"patch":{"description":"Allows modifying tags of policies. All other properties will be ignored.","operationId":"Policies_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy set.","in":"path","name":"policySetName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyFragment"}}},"description":"A Policy.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Policies"]},"put":{"description":"Create or replace an existing policy.","operationId":"Policies_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy set.","in":"path","name":"policySetName","required":true,"schema":{"type":"string"}},{"description":"The name of the policy.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"description":"A Policy.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Policies"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules":{"get":{"description":"List schedules in a given lab.","operationId":"Schedules_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=status)'","in":"query","name":"$expand","schema":{"type":"string"}},{"description":"The filter to apply to the operation. Example: '$filter=contains(name,'myName')","in":"query","name":"$filter","schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation. Example: '$top=10'","in":"query","name":"$top","schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation. Example: '$orderby=name desc'","in":"query","name":"$orderby","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleList"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Schedules"],"x-ms-odata":"#/components/schemas/Schedule","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}":{"delete":{"description":"Delete schedule.","operationId":"Schedules_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the schedule.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Schedules"]},"get":{"description":"Get schedule.","operationId":"Schedules_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the schedule.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=status)'","in":"query","name":"$expand","schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["Schedules"]},"patch":{"description":"Allows modifying tags of schedules. All other properties will be ignored.","operationId":"Schedules_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the schedule.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"$r