Microsoft Azure Shared Image Gallery Service Client

Microsoft Azure Shared Image Gallery Service Client is a tool that allows users to efficiently create, manage, and share custom virtual machine images across their organization. With this service, users can easily capture and deploy images of their virtual machines, ensuring consistency and reliability across all instances.

OpenAPI Specification

sharedimagegalleryserviceclient-openapi-original.yml Raw ↑
swagger: '2.0'
info:
  title: Microsoft Azure SharedImageGalleryServiceClient
  description: Shared Image Gallery Service Client.
  version: '2020-09-30'
host: management.azure.com
schemes:
  - https
consumes:
  - application/json
produces:
  - application/json
security:
  - azure_auth:
      - user_impersonation
securityDefinitions:
  azure_auth:
    type: oauth2
    authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
    flow: implicit
    description: Azure Active Directory OAuth2 Flow
    scopes:
      user_impersonation: impersonate your user account
paths:
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}:
    put:
      tags:
        - Galleries
      operationId: microsoftAzureGalleriesCreateorupdate
      description: Create or update a Shared Image Gallery.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery. The allowed characters are
            alphabets and numbers with dots and periods allowed in the middle.
            The maximum length is 80 characters.
        - $ref: '#/parameters/ApiVersionParameter'
        - name: gallery
          in: body
          required: true
          schema:
            $ref: '#/definitions/Gallery'
          description: >-
            Parameters supplied to the create or update Shared Image Gallery
            operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/Gallery'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/Gallery'
        '202':
          description: Accepted
          schema:
            $ref: '#/definitions/Gallery'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Create or update a simple gallery.:
          $ref: ./examples/CreateOrUpdateASimpleGallery.json
        Create or update a simple gallery with sharing profile.:
          $ref: ./examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json
      summary: >-
        Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname
    patch:
      tags:
        - Galleries
      operationId: microsoftAzureGalleriesUpdate
      description: Update a Shared Image Gallery.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery. The allowed characters are
            alphabets and numbers with dots and periods allowed in the middle.
            The maximum length is 80 characters.
        - $ref: '#/parameters/ApiVersionParameter'
        - name: gallery
          in: body
          required: true
          schema:
            $ref: '#/definitions/GalleryUpdate'
          description: Parameters supplied to the update Shared Image Gallery operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/Gallery'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Update a simple gallery.:
          $ref: ./examples/UpdateASimpleGallery.json
      summary: >-
        Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname
    get:
      tags:
        - Galleries
      operationId: microsoftAzureGalleriesGet
      description: Retrieves information about a Shared Image Gallery.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: The name of the Shared Image Gallery.
        - $ref: '#/parameters/ApiVersionParameter'
        - name: $select
          in: query
          required: false
          type: string
          description: The select expression to apply on the operation.
          enum:
            - Permissions
          x-ms-enum:
            name: SelectPermissions
            modelAsString: true
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/Gallery'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-examples:
        Get a gallery.:
          $ref: ./examples/GetAGallery.json
        Get a gallery with select permissions.:
          $ref: ./examples/GetAGalleryWithSelectPermissions.json
      summary: >-
        Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname
    delete:
      tags:
        - Galleries
      operationId: microsoftAzureGalleriesDelete
      description: Delete a Shared Image Gallery.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: The name of the Shared Image Gallery to be deleted.
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        '202':
          description: Accepted
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Delete a gallery.:
          $ref: ./examples/DeleteAGallery.json
      summary: >-
        Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}
  : put:
      tags:
        - GalleryImages
      operationId: microsoftAzureGalleryimagesCreateorupdate
      description: Create or update a gallery image definition.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery in which the Image Definition
            is to be created.
        - name: galleryImageName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery image definition to be created or updated.
            The allowed characters are alphabets and numbers with dots, dashes,
            and periods allowed in the middle. The maximum length is 80
            characters.
        - $ref: '#/parameters/ApiVersionParameter'
        - name: galleryImage
          in: body
          required: true
          schema:
            $ref: '#/definitions/GalleryImage'
          description: Parameters supplied to the create or update gallery image operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryImage'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/GalleryImage'
        '202':
          description: Accepted
          schema:
            $ref: '#/definitions/GalleryImage'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Create or update a simple gallery image.:
          $ref: ./examples/CreateOrUpdateASimpleGalleryImage.json
      summary: >-
        Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Images Galleryimagename
    patch:
      tags:
        - GalleryImages
      operationId: microsoftAzureGalleryimagesUpdate
      description: Update a gallery image definition.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery in which the Image Definition
            is to be updated.
        - name: galleryImageName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery image definition to be updated. The allowed
            characters are alphabets and numbers with dots, dashes, and periods
            allowed in the middle. The maximum length is 80 characters.
        - $ref: '#/parameters/ApiVersionParameter'
        - name: galleryImage
          in: body
          required: true
          schema:
            $ref: '#/definitions/GalleryImageUpdate'
          description: Parameters supplied to the update gallery image operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryImage'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Update a simple gallery image.:
          $ref: ./examples/UpdateASimpleGalleryImage.json
      summary: >-
        Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Images Galleryimagename
    get:
      tags:
        - GalleryImages
      operationId: microsoftAzureGalleryimagesGet
      description: Retrieves information about a gallery image definition.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery from which the Image
            Definitions are to be retrieved.
        - name: galleryImageName
          in: path
          required: true
          type: string
          description: The name of the gallery image definition to be retrieved.
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryImage'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-examples:
        Get a gallery image.:
          $ref: ./examples/GetAGalleryImage.json
      summary: >-
        Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Images Galleryimagename
    delete:
      tags:
        - GalleryImages
      operationId: microsoftAzureGalleryimagesDelete
      description: Delete a gallery image.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery in which the Image Definition
            is to be deleted.
        - name: galleryImageName
          in: path
          required: true
          type: string
          description: The name of the gallery image definition to be deleted.
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        '202':
          description: Accepted
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Delete a gallery image.:
          $ref: ./examples/DeleteAGalleryImage.json
      summary: >-
        Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Images Galleryimagename
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}
  : put:
      tags:
        - GalleryImageVersions
      operationId: microsoftAzureGalleryimageversionsCreateorupdate
      description: Create or update a gallery image version.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery in which the Image Definition
            resides.
        - name: galleryImageName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery image definition in which the Image Version
            is to be created.
        - name: galleryImageVersionName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery image version to be created. Needs to follow
            semantic version name pattern: The allowed characters are digit and
            period. Digits must be within the range of a 32-bit integer. Format:
            <MajorVersion>.<MinorVersion>.<Patch>
        - $ref: '#/parameters/ApiVersionParameter'
        - name: galleryImageVersion
          in: body
          required: true
          schema:
            $ref: '#/definitions/GalleryImageVersion'
          description: >-
            Parameters supplied to the create or update gallery image version
            operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryImageVersion'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/GalleryImageVersion'
        '202':
          description: Accepted
          schema:
            $ref: '#/definitions/GalleryImageVersion'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Create or update a simple Gallery Image Version (Managed Image as source).:
          $ref: ./examples/CreateOrUpdateASimpleGalleryImageVersion.json
        Create or update a simple Gallery Image Version using snapshots as a source.:
          $ref: >-
            ./examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json
        Create or update a simple Gallery Image Version using vhd as a source.:
          $ref: ./examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json
      summary: >-
        Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Images Galleryimagename Versions Galleryimageversionname
    patch:
      tags:
        - GalleryImageVersions
      operationId: microsoftAzureGalleryimageversionsUpdate
      description: Update a gallery image version.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery in which the Image Definition
            resides.
        - name: galleryImageName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery image definition in which the Image Version
            is to be updated.
        - name: galleryImageVersionName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery image version to be updated. Needs to follow
            semantic version name pattern: The allowed characters are digit and
            period. Digits must be within the range of a 32-bit integer. Format:
            <MajorVersion>.<MinorVersion>.<Patch>
        - $ref: '#/parameters/ApiVersionParameter'
        - name: galleryImageVersion
          in: body
          required: true
          schema:
            $ref: '#/definitions/GalleryImageVersionUpdate'
          description: Parameters supplied to the update gallery image version operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryImageVersion'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Update a simple Gallery Image Version (Managed Image as source).:
          $ref: ./examples/UpdateASimpleGalleryImageVersion.json
      summary: >-
        Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Images Galleryimagename Versions Galleryimageversionname
    get:
      tags:
        - GalleryImageVersions
      operationId: microsoftAzureGalleryimageversionsGet
      description: Retrieves information about a gallery image version.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery in which the Image Definition
            resides.
        - name: galleryImageName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery image definition in which the Image Version
            resides.
        - name: galleryImageVersionName
          in: path
          required: true
          type: string
          description: The name of the gallery image version to be retrieved.
        - name: $expand
          in: query
          required: false
          type: string
          description: The expand expression to apply on the operation.
          enum:
            - ReplicationStatus
          x-ms-enum:
            name: ReplicationStatusTypes
            modelAsString: true
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryImageVersion'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-examples:
        Get a gallery image version.:
          $ref: ./examples/GetAGalleryImageVersion.json
        Get a gallery image version with replication status.:
          $ref: ./examples/GetAGalleryImageVersionWithReplicationStatus.json
        Get a gallery image version with snapshots as a source.:
          $ref: ./examples/GetAGalleryImageVersionWithSnapshotsAsSource.json
        Get a gallery image version with vhd as a source.:
          $ref: ./examples/GetAGalleryImageVersionWithVhdAsSource.json
      summary: >-
        Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Images Galleryimagename Versions Galleryimageversionname
    delete:
      tags:
        - GalleryImageVersions
      operationId: microsoftAzureGalleryimageversionsDelete
      description: Delete a gallery image version.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Image Gallery in which the Image Definition
            resides.
        - name: galleryImageName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery image definition in which the Image Version
            resides.
        - name: galleryImageVersionName
          in: path
          required: true
          type: string
          description: The name of the gallery image version to be deleted.
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        '202':
          description: Accepted
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Delete a gallery image version.:
          $ref: ./examples/DeleteAGalleryImageVersion.json
      summary: >-
        Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Images Galleryimagename Versions Galleryimageversionname
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}
  : put:
      tags:
        - GalleryApplications
      operationId: microsoftAzureGalleryapplicationsCreateorupdate
      description: Create or update a gallery Application Definition.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Application Gallery in which the Application
            Definition is to be created.
        - name: galleryApplicationName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery Application Definition to be created or
            updated. The allowed characters are alphabets and numbers with dots,
            dashes, and periods allowed in the middle. The maximum length is 80
            characters.
        - $ref: '#/parameters/ApiVersionParameter'
        - name: galleryApplication
          in: body
          required: true
          schema:
            $ref: '#/definitions/GalleryApplication'
          description: >-
            Parameters supplied to the create or update gallery Application
            operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryApplication'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/GalleryApplication'
        '202':
          description: Accepted
          schema:
            $ref: '#/definitions/GalleryApplication'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Create or update a simple gallery Application.:
          $ref: ./examples/CreateOrUpdateASimpleGalleryApplication.json
      summary: >-
        Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Applications Galleryapplicationname
    patch:
      tags:
        - GalleryApplications
      operationId: microsoftAzureGalleryapplicationsUpdate
      description: Update a gallery Application Definition.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Application Gallery in which the Application
            Definition is to be updated.
        - name: galleryApplicationName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery Application Definition to be updated. The
            allowed characters are alphabets and numbers with dots, dashes, and
            periods allowed in the middle. The maximum length is 80 characters.
        - $ref: '#/parameters/ApiVersionParameter'
        - name: galleryApplication
          in: body
          required: true
          schema:
            $ref: '#/definitions/GalleryApplicationUpdate'
          description: Parameters supplied to the update gallery Application operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryApplication'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Update a simple gallery Application.:
          $ref: ./examples/UpdateASimpleGalleryApplication.json
      summary: >-
        Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Applications Galleryapplicationname
    get:
      tags:
        - GalleryApplications
      operationId: microsoftAzureGalleryapplicationsGet
      description: Retrieves information about a gallery Application Definition.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Application Gallery from which the
            Application Definitions are to be retrieved.
        - name: galleryApplicationName
          in: path
          required: true
          type: string
          description: The name of the gallery Application Definition to be retrieved.
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryApplication'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-examples:
        Get a gallery Application.:
          $ref: ./examples/GetAGalleryApplication.json
      summary: >-
        Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Applications Galleryapplicationname
    delete:
      tags:
        - GalleryApplications
      operationId: microsoftAzureGalleryapplicationsDelete
      description: Delete a gallery Application.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Application Gallery in which the Application
            Definition is to be deleted.
        - name: galleryApplicationName
          in: path
          required: true
          type: string
          description: The name of the gallery Application Definition to be deleted.
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        '202':
          description: Accepted
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Delete a gallery Application.:
          $ref: ./examples/DeleteAGalleryApplication.json
      summary: >-
        Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Applications Galleryapplicationname
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}
  : put:
      tags:
        - GalleryApplicationVersions
      operationId: microsoftAzureGalleryapplicationversionsCreateorupdate
      description: Create or update a gallery Application Version.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Application Gallery in which the Application
            Definition resides.
        - name: galleryApplicationName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery Application Definition in which the
            Application Version is to be created.
        - name: galleryApplicationVersionName
          in: path
          required: true
          type: string
          description: >-
            The name of the gallery Application Version to be created. Needs to
            follow semantic version name pattern: The allowed characters are
            digit and period. Digits must be within the range of a 32-bit
            integer. Format: <MajorVersion>.<MinorVersion>.<Patch>
        - $ref: '#/parameters/ApiVersionParameter'
        - name: galleryApplicationVersion
          in: body
          required: true
          schema:
            $ref: '#/definitions/GalleryApplicationVersion'
          description: >-
            Parameters supplied to the create or update gallery Application
            Version operation.
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/GalleryApplicationVersion'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/GalleryApplicationVersion'
        '202':
          description: Accepted
          schema:
            $ref: '#/definitions/GalleryApplicationVersion'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Create or update a simple gallery Application Version.:
          $ref: ./examples/CreateOrUpdateASimpleGalleryApplicationVersion.json
      summary: >-
        Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Compute Galleries Galleryname Applications Galleryapplicationname Versions Galleryapplicationversionname
    patch:
      tags:
        - GalleryApplicationVersions
      operationId: microsoftAzureGalleryapplicationversionsUpdate
      description: Update a gallery Application Version.
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ResourceGroupNameParameter'
        - name: galleryName
          in: path
          required: true
          type: string
          description: >-
            The name of the Shared Application Gallery in which the 

# --- truncated at 32 KB (76 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-azure/refs/heads/main/openapi/sharedimagegalleryserviceclient-openapi-original.yml