Microsoft Azure Galleries API

The Galleries API from Microsoft Azure, for galleries.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName} Create or update a Shared Image Gallery · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create a Shared Image Gallery for my VM images?”
“Which region does a new image gallery need?”
Tell an agent
Create gallery {galleryName} in resource group {resourceGroupName}, subscription {subscriptionId}, in {location}.
Create or replace gallery {galleryName} with properties {properties}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName} Patch a Shared Image Gallery · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change the description or tags on an existing gallery?”
“How do I update a gallery without recreating it?”
Tell an agent
Update gallery {galleryName} in resource group {resourceGroupName}, subscription {subscriptionId}.
Set tags {tags} on gallery {galleryName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName} Get a Shared Image Gallery · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I look up one Shared Image Gallery's details?”
“Can I ask for sharing profile info when reading a gallery?”
Tell an agent
Get gallery {galleryName} in resource group {resourceGroupName}, subscription {subscriptionId}.
Show gallery {galleryName} with select {select}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName} Delete a Shared Image Gallery · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete an image gallery I'm not using anymore?”
“What does removing a Shared Image Gallery affect?”
Tell an agent destructive · confirm first
Delete gallery {galleryName} from resource group {resourceGroupName}, subscription {subscriptionId}.
Remove Shared Image Gallery {galleryName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries List galleries in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which image galleries are in a given resource group?”
“Can I list Shared Image Galleries for just one resource group?”
Tell an agent
List galleries in resource group {resourceGroupName}, subscription {subscriptionId}.
Show the Shared Image Galleries in {resourceGroupName}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries List galleries in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Compute… #
Ask an LLM
“How do I see every Shared Image Gallery in my subscription?”
“Is there a subscription-wide list of image galleries?”
Tell an agent
List all galleries in subscription {subscriptionId}.
Show every image gallery in my subscription using API version {apiVersion}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-galleries-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-galleries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure SharedImageGalleryServiceClient Galleries…
  description: Shared Image Gallery Service Client.
  version: '2020-09-30'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Galleries
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: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: galleryName
        in: path
        required: true
        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.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gallery'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gallery'
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gallery'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/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…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Gallery'
        description: Parameters supplied to the create or update Shared Image Gallery operation.
        required: true
    patch:
      tags:
      - Galleries
      operationId: microsoftAzureGalleriesUpdate
      description: Update a Shared Image Gallery.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: galleryName
        in: path
        required: true
        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.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gallery'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/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…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GalleryUpdate'
        description: Parameters supplied to the update Shared Image Gallery operation.
        required: true
    get:
      tags:
      - Galleries
      operationId: microsoftAzureGalleriesGet
      description: Retrieves information about a Shared Image Gallery.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: galleryName
        in: path
        required: true
        description: The name of the Shared Image Gallery.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: $select
        in: query
        required: false
        description: The select expression to apply on the operation.
        x-ms-enum:
          name: SelectPermissions
          modelAsString: true
        schema:
          type: string
          enum:
          - Permissions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gallery'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/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…
    delete:
      tags:
      - Galleries
      operationId: microsoftAzureGalleriesDelete
      description: Delete a Shared Image Gallery.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: galleryName
        in: path
        required: true
        description: The name of the Shared Image Gallery to be deleted.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        '202':
          description: Accepted
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Delete a gallery.:
          $ref: ./examples/DeleteAGallery.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries:
    get:
      tags:
      - Galleries
      operationId: microsoftAzureGalleriesListbyresourcegroup
      description: List galleries under a resource group.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GalleryList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        List galleries in a resource group.:
          $ref: ./examples/ListGalleriesInAResourceGroup.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries:
    get:
      tags:
      - Galleries
      operationId: microsoftAzureGalleriesList
      description: List galleries under a subscription.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GalleryList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        List galleries in a subscription.:
          $ref: ./examples/ListGalleriesInASubscription.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Compute…
components:
  schemas:
    UpdateResourceDefinition:
      description: The Update Resource model definition.
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id
        name:
          readOnly: true
          type: string
          description: Resource name
        type:
          readOnly: true
          type: string
          description: Resource type
        tags:
          type: object
          additionalProperties:
            type: string
          description: Resource tags
      x-ms-azure-resource: true
    GalleryIdentifier:
      properties:
        uniqueName:
          readOnly: true
          type: string
          description: The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
      description: Describes the gallery unique name.
    GalleryList:
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Gallery'
          description: A list of galleries.
        nextLink:
          type: string
          description: The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries.
      required:
      - value
      description: The List Galleries operation response.
    InnerError:
      properties:
        exceptiontype:
          type: string
          description: The exception type.
        errordetail:
          type: string
          description: The internal error message or exception dump.
      description: Inner error details.
    GalleryUpdate:
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/GalleryProperties'
      allOf:
      - $ref: '#/components/schemas/UpdateResourceDefinition'
      description: Specifies information about the Shared Image Gallery that you want to update.
    Gallery:
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/GalleryProperties'
      allOf:
      - $ref: '#/components/schemas/Resource'
      description: Specifies information about the Shared Image Gallery that you want to create or update.
    ApiErrorBase:
      properties:
        code:
          type: string
          description: The error code.
        target:
          type: string
          description: The target of the particular error.
        message:
          type: string
          description: The error message.
      description: Api error base.
    SharingProfile:
      description: Profile for gallery sharing to subscription or tenant
      properties:
        permissions:
          type: string
          description: 'This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups**'
          enum:
          - Private
          - Groups
          x-ms-enum:
            name: GallerySharingPermissionTypes
            modelAsString: true
        groups:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/SharingProfileGroup'
          description: A list of sharing profile groups.
    SharingProfileGroup:
      description: Group of the gallery sharing profile
      properties:
        type:
          type: string
          description: 'This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants**'
          enum:
          - Subscriptions
          - AADTenants
          x-ms-enum:
            name: SharingProfileGroupTypes
            modelAsString: true
        ids:
          type: array
          items:
            type: string
          description: A list of subscription/tenant ids the gallery is aimed to be shared to.
    CloudError:
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    ApiError:
      properties:
        details:
          type: array
          items:
            $ref: '#/components/schemas/ApiErrorBase'
          description: The Api error details
        innererror:
          $ref: '#/components/schemas/InnerError'
          description: The Api inner error
        code:
          type: string
          description: The error code.
        target:
          type: string
          description: The target of the particular error.
        message:
          type: string
          description: The error message.
      description: Api error.
    GalleryProperties:
      properties:
        description:
          type: string
          description: The description of this Shared Image Gallery resource. This property is updatable.
        identifier:
          $ref: '#/components/schemas/GalleryIdentifier'
        provisioningState:
          readOnly: true
          type: string
          title: The current state of the gallery.
          description: The provisioning state, which only appears in the response.
          enum:
          - Creating
          - Updating
          - Failed
          - Succeeded
          - Deleting
          - Migrating
        sharingProfile:
          $ref: '#/components/schemas/SharingProfile'
      description: Describes the properties of a Shared Image Gallery.
    Resource:
      description: The Resource model definition.
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id
        name:
          readOnly: true
          type: string
          description: Resource name
        type:
          readOnly: true
          type: string
          description: Resource type
        location:
          type: string
          description: Resource location
        tags:
          type: object
          additionalProperties:
            type: string
          description: Resource tags
      required:
      - location
      x-ms-azure-resource: true
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
      schema:
        type: string
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Client Api Version.
      schema:
        type: string
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      required: true
      x-ms-parameter-location: method
      description: The name of the resource group.
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow