UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 42.9 kB
{"openapi":"3.0.0","info":{"description":"Virtual Machine Image Template","title":"VirtualMachineImageTemplate","version":"2019-05-01-preview","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/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/preview/2019-05-01-preview/imagebuilder.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"imagebuilder","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/providers/Microsoft.VirtualMachineImages/operations":{"get":{"description":"Lists available operations for the Microsoft.VirtualMachineImages provider","operationId":"Operations_List","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"The operation was successful. The response contains the list of available operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationListResult"}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["Operations"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.VirtualMachineImages/imageTemplates":{"get":{"description":"Gets information about the VM image templates associated with the subscription.","operationId":"VirtualMachineImageTemplates_List","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageTemplateListResult"},"examples":{"List images by subscription.":{"$ref":"#/components/examples/List_images_by_subscription."}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates":{"get":{"description":"Gets information about the VM image templates associated with the specified resource group.","operationId":"VirtualMachineImageTemplates_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageTemplateListResult"},"examples":{"List images by resource group":{"$ref":"#/components/examples/List_images_by_resource_group"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}":{"delete":{"description":"Delete a virtual machine image template","operationId":"VirtualMachineImageTemplates_Delete","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ImageTemplateNameParameter"}],"responses":{"200":{"description":"The operation was successful."},"202":{"description":"The operation will be completed asynchronously."},"204":{"description":"NoContent -- VM image template does not exist in the subscription."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"],"x-ms-long-running-operation":true,"x-ms-long-running-operation-options":{"final-state-via":"azure-async-operation"}},"get":{"description":"Get information about a virtual machine image template","operationId":"VirtualMachineImageTemplates_Get","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ImageTemplateNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageTemplate"},"examples":{"Retrieve an Image Template.":{"$ref":"#/components/examples/Retrieve_an_Image_Template."}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"]},"patch":{"description":"Update the tags for this Virtual Machine Image Template","operationId":"VirtualMachineImageTemplates_Update","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ImageTemplateNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageTemplateUpdateParameters"}}},"description":"Additional parameters for Image Template update.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageTemplate"},"examples":{"Remove identities for an Image Template.":{"$ref":"#/components/examples/Remove_identities_for_an_Image_Template."},"Update the tags for an Image Template.":{"$ref":"#/components/examples/Update_the_tags_for_an_Image_Template."}}}}},"202":{"description":"The operation will be completed asynchronously."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"],"x-ms-long-running-operation":true,"x-ms-long-running-operation-options":{"final-state-via":"azure-async-operation"}},"put":{"description":"Create or update a virtual machine image template","operationId":"VirtualMachineImageTemplates_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ImageTemplateNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageTemplate"}}},"description":"Parameters supplied to the CreateImageTemplate operation","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageTemplate"},"examples":{"Create an Image Template with a user assigned identity configured":{"$ref":"#/components/examples/Create_an_Image_Template_with_a_user_assigned_identity_configured"},"Create an Image Template.":{"$ref":"#/components/examples/Create_an_Image_Template."}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageTemplate"},"examples":{"Create an Image Template with a user assigned identity configured":{"$ref":"#/components/examples/Create_an_Image_Template_with_a_user_assigned_identity_configured"},"Create an Image Template.":{"$ref":"#/components/examples/Create_an_Image_Template."}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"],"x-ms-long-running-operation":true,"x-ms-long-running-operation-options":{"final-state-via":"azure-async-operation"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run":{"post":{"description":"Create artifacts from a existing image template","operationId":"VirtualMachineImageTemplates_Run","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ImageTemplateNameParameter"}],"responses":{"202":{"description":"The operation will be completed asynchronously."},"204":{"description":"The operation was successful."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"],"x-ms-long-running-operation":true,"x-ms-long-running-operation-options":{"final-state-via":"azure-async-operation"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs":{"get":{"description":"List all run outputs for the specified Image Template resource","operationId":"VirtualMachineImageTemplates_ListRunOutputs","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ImageTemplateNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOutputCollection"},"examples":{"Retrieve a list of all outputs created by the last run of an Image Template":{"$ref":"#/components/examples/Retrieve_a_list_of_all_outputs_created_by_the_last_run_of_an_Image_Template"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs/{runOutputName}":{"get":{"description":"Get the specified run output for the specified image template resource","operationId":"VirtualMachineImageTemplates_GetRunOutput","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ImageTemplateNameParameter"},{"$ref":"#/components/parameters/RunOutputNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOutput"},"examples":{"Retrieve single runOutput":{"$ref":"#/components/examples/Retrieve_single_runOutput"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"tags":["VirtualMachineImageTemplate"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"List_images_by_subscription.":{"value":{"nextLink":"/subscriptions/{subscription-id}/providers/Microsoft.VirtualMachineImages/imageTemplates?api-version=2018-02-01-preview&skip-token=2","value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate","location":"westus","name":"myImageTemplate","properties":{"customize":[{"name":"Shell customization example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"artifactTags":{"tagName":"value"},"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1","location":"1_location","runOutputName":"image_it_pir_1","type":"ManagedImage"}],"source":{"sha256Checksum":"120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f","sourceUri":"http://redhat.com/path/to/installation.iso","type":"ISO"},"vmProfile":{"vmSize":"Standard_D2s_v3"}},"type":"Microsoft.VirtualMachineImages/imageTemplate"},{"id":"/subscriptions/{subscription-id}/resourceGroups/myOtherResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/mySecondImageTemplate","location":"westus","name":"mySecondImageTemplate","properties":{"customize":[{"name":"Shell customization example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"artifactTags":{"stage":"development"},"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/mySecondImage-eus","location":"eastus","runOutputName":"eus","type":"ManagedImage"}],"source":{"offer":"UbuntuServer","publisher":"Canonical","sku":"18.04-LTS","type":"PlatformImage","version":"18.04.201902121"},"vmProfile":{"vmSize":"Standard_D8s_v3"}},"type":"Microsoft.VirtualMachineImages/imageTemplate"}]}},"List_images_by_resource_group":{"value":{"nextLink":"/subscriptions/{subscription-id}/resourceGroup/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates?api-version=2019-05-01-preview&skip-token=2","value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate","location":"westus","name":"myImageTemplate","properties":{"customize":[{"name":"Shell customization example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"artifactTags":{"tagName":"value"},"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1","location":"1_location","runOutputName":"image_it_pir_1","type":"ManagedImage"}],"source":{"sha256Checksum":"120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f","sourceUri":"http://redhat.com/path/to/installation.iso","type":"ISO"},"vmProfile":{"vmSize":"Standard_D2s_v3"}},"type":"Microsoft.VirtualMachineImages/imageTemplate"},{"id":"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myOtherImageTemplate","location":"eastus","name":"myOtherImageTemplate","properties":{"customize":[{"name":"Shell customization example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/baseimage-cus","location":"centralus","runOutputName":"singleImage","type":"ManagedImage"},{"galleryImageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/gallery/baseimages/images/baseimage","replicationRegions":["eastus","westus"],"runOutputName":"gallery","type":"SharedImage"}],"source":{"offer":"UbuntuServer","publisher":"Canonical","sku":"18.04-LTS","type":"PlatformImage","version":"18.04.201902121"},"vmProfile":{"vmSize":"Standard_D8s_v3"}},"type":"Microsoft.VirtualMachineImages/imageTemplate"}]}},"Retrieve_an_Image_Template.":{"value":{"id":"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate","location":"westus","name":"myImageTemplate","properties":{"customize":[{"name":"Shell Customizer Example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"artifactTags":{"tagName":"value"},"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1","location":"1_location","runOutputName":"image_it_pir_1","type":"ManagedImage"}],"source":{"sha256Checksum":"120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f","sourceUri":"http://redhat.com/path/to/installation.iso","type":"ISO"},"vmProfile":{"vmSize":"Standard_D2s_v3"}},"type":"Microsoft.VirtualMachineImages/imageTemplate"}},"Remove_identities_for_an_Image_Template.":{"value":{"id":"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate","identity":{"type":"None"},"location":"westus","name":"myImageTemplate","properties":{"customize":[{"name":"Shell customization example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"artifactTags":{"tagName":"value"},"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1","location":"1_location","runOutputName":"image_it_pir_1","type":"ManagedImage"}],"source":{"sha256Checksum":"120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f","sourceUri":"http://redhat.com/path/to/installation.iso","type":"ISO"},"vmProfile":{"vmSize":"Standard_D2s_v3"}},"tags":{"new-tag":"new-value"},"type":"Microsoft.VirtualMachineImages/imageTemplate"}},"Update_the_tags_for_an_Image_Template.":{"value":{"id":"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate","location":"westus","name":"myImageTemplate","properties":{"customize":[{"name":"Shell customization example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"artifactTags":{"tagName":"value"},"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1","location":"1_location","runOutputName":"image_it_pir_1","type":"ManagedImage"}],"source":{"sha256Checksum":"120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f","sourceUri":"http://redhat.com/path/to/installation.iso","type":"ISO"},"vmProfile":{"vmSize":"Standard_D2s_v3"}},"tags":{"new-tag":"new-value"},"type":"Microsoft.VirtualMachineImages/imageTemplate"}},"Create_an_Image_Template_with_a_user_assigned_identity_configured":{"value":{"id":"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate","identity":{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1":{"clientId":"00000000-0000-0000-0000-000000000000","principalId":"00000000-0000-0000-0000-000000000000"}}},"location":"westus","name":"myImageTemplate","properties":{"customize":[{"name":"Shell Customizer Example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"artifactTags":{"tagName":"value"},"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1","location":"1_location","runOutputName":"image_it_pir_1","type":"ManagedImage"}],"source":{"imageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image","type":"ManagedImage"},"vmProfile":{"vmSize":"Standard_D2s_v3"}},"type":"Microsoft.VirtualMachineImages/imageTemplate"}},"Create_an_Image_Template.":{"value":{"id":"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate","location":"westus","name":"myImageTemplate","properties":{"customize":[{"name":"Shell Customizer Example","scriptUri":"https://example.com/path/to/script.sh","type":"Shell"}],"distribute":[{"artifactTags":{"tagName":"value"},"imageId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1","location":"1_location","runOutputName":"image_it_pir_1","type":"ManagedImage"}],"source":{"imageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image","type":"ManagedImage"},"vmProfile":{"vmSize":"Standard_D2s_v3"}},"type":"Microsoft.VirtualMachineImages/imageTemplate"}},"Retrieve_a_list_of_all_outputs_created_by_the_last_run_of_an_Image_Template":{"value":{"nextLink":"/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs?api-version=2018-02-01-preview&$skipToken=3","value":[{"id":"/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs/myManagedImageOutput","name":"myManagedImageOutput","properties":{"artifactId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/output_managed_image","provisioningState":"Succeeded"},"type":"Microsoft.VirtualMachineImages/imageTemplates/runOutputs"},{"id":"/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs/mySharedImageOutput","name":"mySharedImageOutput","properties":{"artifactId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/galleries/Gallery1/images/SharedImageOutput/imageversions/1.2.3","provisioningState":"Succeeded"},"type":"Microsoft.VirtualMachineImages/imageTemplates/runOutputs"}]}},"Retrieve_single_runOutput":{"value":{"id":"/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs/myManagedImageOutput","name":"myManagedImageOutput","properties":{"artifactId":"/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/output_managed_image","provisioningState":"Succeeded"},"type":"Microsoft.VirtualMachineImages/imageTemplates/runOutputs"}}},"parameters":{"ApiVersionParameter":{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"List images by subscription.":{"value":"2019-05-01-preview"},"List images by resource group":{"value":"2019-05-01-preview"},"Delete an Image Template.":{"value":"2019-05-01-preview"},"Retrieve an Image Template.":{"value":"2019-05-01-preview"},"Remove identities for an Image Template.":{"value":"2019-05-01-preview"},"Update the tags for an Image Template.":{"value":"2019-05-01-preview"},"Create an Image Template with a user assigned identity configured":{"value":"2019-05-01-preview"},"Create an Image Template.":{"value":"2019-05-01-preview"},"Create image(s) from existing imageTemplate.":{"value":"2019-05-01-preview"},"Retrieve a list of all outputs created by the last run of an Image Template":{"value":"2019-05-01-preview"},"Retrieve single runOutput":{"value":"2019-05-01-preview"}}},"ImageTemplateNameParameter":{"description":"The name of the image Template","in":"path","name":"imageTemplateName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","pattern":"^[A-Za-z0-9-_.]{1,64}$"},"examples":{"Delete an Image Template.":{"value":"myImageTemplate"},"Retrieve an Image Template.":{"value":"myImageTemplate"},"Remove identities for an Image Template.":{"value":"myImageTemplate"},"Update the tags for an Image Template.":{"value":"myImageTemplate"},"Create an Image Template with a user assigned identity configured":{"value":"myImageTemplate"},"Create an Image Template.":{"value":"myImageTemplate"},"Create image(s) from existing imageTemplate.":{"value":"myImageTemplate"},"Retrieve a list of all outputs created by the last run of an Image Template":{"value":"myImageTemplate"},"Retrieve single runOutput":{"value":"myImageTemplate"}}},"LocationParameter":{"description":"Location of the service.","in":"path","name":"location","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"ResourceGroupNameParameter":{"description":"The name of the resource group.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"List images by resource group":{"value":"myResourceGroup"},"Delete an Image Template.":{"value":"myResourceGroup"},"Retrieve an Image Template.":{"value":"myResourceGroup"},"Remove identities for an Image Template.":{"value":"myResourceGroup"},"Update the tags for an Image Template.":{"value":"myResourceGroup"},"Create an Image Template with a user assigned identity configured":{"value":"myResourceGroup"},"Create an Image Template.":{"value":"myResourceGroup"},"Create image(s) from existing imageTemplate.":{"value":"myResourceGroup"},"Retrieve a list of all outputs created by the last run of an Image Template":{"value":"myResourceGroup"},"Retrieve single runOutput":{"value":"myResourceGroup"}}},"RunOutputNameParameter":{"description":"The name of the run output","in":"path","name":"runOutputName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","pattern":"^[A-Za-z0-9-_.]{1,64}$"},"examples":{"Retrieve single runOutput":{"value":"myManagedImageOutput"}}},"SubscriptionIdParameter":{"description":"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription Id forms part of the URI for every service call.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"List images by subscription.":{"value":"{subscription-id}"},"List images by resource group":{"value":"{subscription-id}"},"Delete an Image Template.":{"value":"{subscription-id}"},"Retrieve an Image Template.":{"value":"{subscription-id}"},"Remove identities for an Image Template.":{"value":"{subscription-id}"},"Update the tags for an Image Template.":{"value":"{subscription-id}"},"Create an Image Template with a user assigned identity configured":{"value":"{subscription-id}"},"Create an Image Template.":{"value":"{subscription-id}"},"Create image(s) from existing imageTemplate.":{"value":"{subscription-id}"},"Retrieve a list of all outputs created by the last run of an Image Template":{"value":"{subscription-id}"},"Retrieve single runOutput":{"value":"{subscription-id}"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"ApiError":{"description":"Api error.","properties":{"code":{"description":"The error code.","type":"string"},"details":{"description":"The Api error details","items":{"$ref":"#/components/schemas/ApiErrorBase"},"type":"array"},"innerError":{"$ref":"#/components/schemas/InnerError"},"message":{"description":"The error message.","type":"string"},"target":{"description":"The target of the particular error.","type":"string"}}},"ApiErrorBase":{"description":"Api error base.","properties":{"code":{"description":"The error code.","type":"string"},"message":{"description":"The error message.","type":"string"},"target":{"description":"The target of the particular error.","type":"string"}}},"ImageTemplate":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider","properties":{"identity":{"$ref":"#/components/schemas/ImageTemplateIdentity"},"properties":{"$ref":"#/components/schemas/ImageTemplateProperties"}}},"ImageTemplateCustomizer":{"description":"Describes a unit of image customization","discriminator":{"propertyName":"type"},"properties":{"name":{"description":"Friendly Name to provide context on what this customization step does","type":"string"},"type":{"description":"The type of customization tool you want to use on the Image. For example, \"Shell\" can be shell customizer","type":"string"}},"required":["type"]},"ImageTemplateDistributor":{"description":"Generic distribution object","discriminator":{"propertyName":"type"},"properties":{"artifactTags":{"additionalProperties":{"type":"string"},"description":"Tags that will be applied to the artifact once it has been created/updated by the distributor.","type":"object"},"runOutputName":{"description":"The name to be used for the associated RunOutput.","pattern":"^[A-Za-z0-9-_.]{1,64}$","type":"string"},"type":{"description":"Type of distribution.","type":"string"}},"required":["type","runOutputName"],"type":"object"},"ImageTemplateFileCustomizer":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateCustomizer"}],"description":"Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner","properties":{"destination":{"description":"The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM","type":"string"},"sha256Checksum":{"description":"SHA256 checksum of the file provided in the sourceUri field above","type":"string"},"sourceUri":{"description":"The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc","type":"string"}},"x-ms-discriminator-value":"File"},"ImageTemplateIdentity":{"description":"Identity for the image template.","properties":{"type":{"description":"The type of identity used for the image template. The type 'None' will remove any identities from the image template.","enum":["UserAssigned","None"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"ResourceIdentityType"}},"userAssignedIdentities":{"additionalProperties":{"properties":{"clientId":{"description":"The client id of user assigned identity.","readOnly":true,"type":"string"},"principalId":{"description":"The principal id of user assigned identity.","readOnly":true,"type":"string"}},"type":"object"},"description":"The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.","type":"object"}}},"ImageTemplateIsoSource":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateSource"}],"description":"Describes an image source that is an installation ISO. Currently only supports Red Hat Enterprise Linux 7.2-7.5 ISO's.","properties":{"sha256Checksum":{"description":"SHA256 Checksum of the ISO image.","type":"string"},"sourceUri":{"description":"URI to get the ISO image. This URI has to be accessible to the resource provider at the time of the image template creation.","type":"string"}},"required":["sourceUri","sha256Checksum"],"x-ms-discriminator-value":"ISO"},"ImageTemplateLastRunStatus":{"description":"Describes the latest status of running an image template","properties":{"endTime":{"description":"End time of the last run (UTC)","format":"date-time","type":"string"},"message":{"description":"Verbose information about the last run state","type":"string"},"runState":{"description":"State of the last run","enum":["Running","Succeeded","PartiallySucceeded","Failed"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"RunState"}},"runSubState":{"description":"Sub-state of the last run","enum":["Queued","Building","Customizing","Distributing"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"RunSubState"}},"startTime":{"description":"Start time of the last run (UTC)","format":"date-time","type":"string"}}},"ImageTemplateListResult":{"description":"The result of List image templates operation","properties":{"nextLink":{"description":"The continuation token.","type":"string"},"value":{"description":"An array of image templates","items":{"$ref":"#/components/schemas/ImageTemplate"},"type":"array"}}},"ImageTemplateManagedImageDistributor":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateDistributor"}],"description":"Distribute as a Managed Disk Image.","properties":{"imageId":{"description":"Resource Id of the Managed Disk Image","type":"string"},"location":{"description":"Azure location for the image, should match if image already exists","type":"string"}},"required":["imageId","location"],"type":"object","x-ms-discriminator-value":"ManagedImage"},"ImageTemplateManagedImageSource":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateSource"}],"description":"Describes an image source that is a managed image in customer subscription.","properties":{"imageId":{"description":"ARM resource id of the managed image in customer subscription","type":"string"}},"required":["imageId"],"x-ms-discriminator-value":"ManagedImage"},"ImageTemplatePlatformImageSource":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateSource"}],"description":"Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).","properties":{"offer":{"description":"Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).","type":"string"},"publisher":{"description":"Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).","type":"string"},"sku":{"description":"Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).","type":"string"},"version":{"description":"Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).","type":"string"}},"x-ms-discriminator-value":"PlatformImage"},"ImageTemplatePowerShellCustomizer":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateCustomizer"}],"description":"Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.","properties":{"inline":{"description":"Array of PowerShell commands to execute","items":{"type":"string"},"type":"array"},"runElevated":{"description":"If specified, the PowerShell script will be run with elevated privileges","type":"boolean"},"scriptUri":{"description":"URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc","type":"string"},"sha256Checksum":{"description":"SHA256 checksum of the power shell script provided in the scriptUri field above","type":"string"},"validExitCodes":{"description":"Valid exit codes for the PowerShell script. [Default: 0]","items":{"type":"integer"},"type":"array"}},"x-ms-discriminator-value":"PowerShell"},"ImageTemplateProperties":{"description":"Describes the properties of an image template","properties":{"buildTimeoutInMinutes":{"description":"Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).","maximum":960,"minimum":0,"type":"integer"},"customize":{"description":"Specifies the properties used to describe the customization steps of the image, like Image source etc","items":{"$ref":"#/components/schemas/ImageTemplateCustomizer"},"type":"array"},"distribute":{"description":"The distribution targets where the image output needs to go to.","items":{"$ref":"#/components/schemas/ImageTemplateDistributor"},"type":"array"},"lastRunStatus":{"$ref":"#/components/schemas/ImageTemplateLastRunStatus"},"provisioningError":{"$ref":"#/components/schemas/ProvisioningError"},"provisioningState":{"$ref":"#/components/schemas/ProvisioningState"},"source":{"$ref":"#/components/schemas/ImageTemplateSource"},"vmProfile":{"$ref":"#/components/schemas/ImageTemplateVmProfile"}},"required":["source","distribute"]},"ImageTemplateRestartCustomizer":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateCustomizer"}],"description":"Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner","properties":{"restartCheckCommand":{"description":"Command to check if restart succeeded [Default: '']","type":"string"},"restartCommand":{"description":"Command to execute the restart [Default: 'shutdown /r /f /t 0 /c \"packer restart\"']","type":"string"},"restartTimeout":{"description":"Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']","type":"string"}},"x-ms-discriminator-value":"WindowsRestart"},"ImageTemplateSharedImageDistributor":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateDistributor"}],"description":"Distribute via Shared Image Gallery.","properties":{"galleryImageId":{"description":"Resource Id of the Shared Image Gallery image","type":"string"},"replicationRegions":{"description":"A list of regions that the image will be replicated to","items":{"type":"string"},"type":"array"}},"required":["galleryImageId","replicationRegions"],"type":"object","x-ms-discriminator-value":"SharedImage"},"ImageTemplateSharedImageVersionSource":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateSource"}],"description":"Describes an image source that is an image version in a shared image gallery.","properties":{"imageVersionId":{"description":"ARM resource id of the image version in the shared image gallery","type":"string"}},"required":["imageVersionId"],"x-ms-discriminator-value":"SharedImageVersion"},"ImageTemplateShellCustomizer":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateCustomizer"}],"description":"Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.","properties":{"inline":{"description":"Array of shell commands to execute","items":{"type":"string"},"type":"array"},"scriptUri":{"description":"URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc","type":"string"},"sha256Checksum":{"description":"SHA256 checksum of the shell script provided in the scriptUri field","type":"string"}},"x-ms-discriminator-value":"Shell"},"ImageTemplateSource":{"description":"Describes a virtual machine image source for building, customizing and distributing","discriminator":{"propertyName":"type"},"properties":{"type":{"description":"Specifies the type of source image you want to start with.","type":"string"}},"required":["type"]},"ImageTemplateUpdateParameters":{"description":"Parameters for updating an image template.","properties":{"identity":{"$ref":"#/components/schemas/ImageTemplateIdentity"},"tags":{"additionalProperties":{"type":"string"},"description":"The user-specified tags associated with the image template.","type":"object"}}},"ImageTemplateVhdDistributor":{"allOf":[{"$ref":"#/components/schemas/ImageTemplateDistributor"}],"description":"Distribute via VHD in a storage account.","type":"object","x-ms-discriminator-value":"VHD"},"ImageTemplateVmProfile":{"description":"Describes the virtual machine used to build, customize and capture images","properties":{"vmSize":{"description":"Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2).","type":"string"}}},"InnerError":{"description":"Inner error details.","properties":{"errorDetail":{"description":"The internal error message or exception dump.","type":"string"},"exceptionType":{"description":"The exception type.","type":"string"}}},"Operation":{"properties":{"display":{"properties":{"description":{"title":"The friendly name of the operation","type":"string"},"operation":{"description":"For example: read, write, delete, or listKeys/action","title":"The operation type.","type":"string"},"provider":{"title":"Friendly name of the resource provider.","type":"string"},"resource":{"title":"The resource type on which the operation is performed.","type":"string"}},"title":"The object that describes the operation."},"name":{"description":"This is of the format {provider}/{resource}/{operation}","title":"The operation name.","type":"string"},"origin":{"title":"The intended executor of the operation.","type":"string"},"properties":{"title":"Properties of the operation.","type":"object"}},"title":"A REST API operation","type":"object"},"OperationListResult":{"properties":{"nextLink":{"title":"The URL to get the next set of operation list results if there are any.","type":"string"},"value":{"items":{"$ref":"#/components/schemas/Operation"},"title":"The list of operations supported by the resource provider.","type":"array"}},"title":"Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results."},"ProvisioningError":{"description":"Describes the error happened when create or update an image template","properties":{"message":{"description":"Verbose error message about the provisioning failure","type":"string"},"provisioningErrorCode":{"description":"Error code of the provisioning failure","enum":["BadSourceType","BadPIRSource","BadISOSource","BadManagedImageSource","BadSharedImageVersionSource","BadCustomizerType","UnsupportedCustomizerType","NoCustomizerScript","BadDistributeType","BadSharedImageDistribute","ServerError","Other"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ProvisioningErrorCode"}}}},"ProvisioningState":{"description":"Provisioning state of the resource","enum":["Creating","Updating","Succeeded","Failed","Deleting"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"ProvisioningState"}},"Resource":{"description":"The Resource model definition.","properties":{"id":{"description":"Resource Id","readOnly":true,"type":"string"},"location":{"description":"Resource location","type":"string","x-ms-mutability":["create","read"]},"name":{"description":"Resource name","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags","type":"object"},"type":{"description":"Resource type","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true},"RunOutput":{"allOf":[{"$ref":"#/components/schemas/SubResource"}],"description":"Represents an output that was created by running an image template.","properties":{"properties":{"$ref":"#/components/schemas/RunOutputProperties"}}},"RunOutputCollection":{"description":"The result of List run outputs operation","properties":{"nextLink":{"description":"The continuation token.","type":"string"},"value":{"description":"An array of run outputs","items":{"$ref":"#/components/schemas/RunOutput"},"type":"array"}}},"RunOutputProperties":{"description":"Describes the properties of a run output","properties":{"artifactId":{"description":"The resource id of the artifact.","type":"string"},"artifactUri":{"description":"The location URI of the artifact.","type":"string"},"provisioningState":{"$ref":"#/components/schemas/ProvisioningState"}}},"SubResource":{"description":"The Sub Resource model definition.","properties":{"id":{"description":"Resource Id","readOnly":true,"type":"string"},"name":{"description":"Resource name","type":"string"},"type":{"description":"Resource type","readOnly":true,"type":"string"}},"required":["name"]}}}}