Azure Migrate Hyperv Sites API

The HypervSites API from Azure Migrate — 2 operation(s) for hypervsites.

GitHub OpenAPI

Operations 2

GET /subscriptions/{subscriptionId}/providers/Microsoft.OffAzure/hypervSites Get all hyperv sites #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/hypervSites Get all hyperv sites #

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-migrate:microsoft-azure-migrate-hypervsites-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-migrate-hypervsites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Migrate Discovery Service Hyperv Sites API
  version: '2023-06-06'
  description: Azure OffAzure Resource Provider management API.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: HypervSites
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.OffAzure/hypervSites:
    get:
      operationId: HypervSites_ListBySubscription
      tags:
      - HypervSites
      summary: Get all hyperv sites
      description: Get all the hyperv sites in the subscription.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: ARM operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HypervSiteListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/hypervSites:
    get:
      operationId: HypervSites_ListByResourceGroup
      tags:
      - HypervSites
      summary: Get all hyperv sites
      description: Get all the hyperv sites in the subscription.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      responses:
        '200':
          description: ARM operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HypervSiteListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
components:
  schemas:
    ErrorResponse:
      type: object
      title: Error response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
    TrackedResource:
      type: object
      title: Tracked Resource
      description: The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
        location:
          type: string
          description: The geo-location where the resource lives
          x-ms-mutability:
          - read
          - create
      required:
      - location
      allOf:
      - $ref: '#/components/schemas/Resource'
    SiteAgentProperties:
      type: object
      description: Class for site agent properties.
      properties:
        id:
          type: string
          description: Gets the ID of the agent.
          readOnly: true
        version:
          type: string
          description: Gets the version of the agent.
          readOnly: true
        lastHeartBeatUtc:
          type: string
          format: date-time
          description: Gets the last heartbeat time of the agent in UTC.
          readOnly: true
        keyVaultUri:
          type: string
          description: Gets or sets the key vault URI.
        keyVaultId:
          type: string
          description: Gets or sets the key vault ARM Id.
    HypervSite:
      type: object
      description: A HyperV SiteResource
      properties:
        properties:
          $ref: '#/components/schemas/SiteProperties'
          description: The resource-specific properties for this resource.
          x-ms-client-flatten: true
          x-ms-mutability:
          - read
          - create
      allOf:
      - $ref: '#/components/schemas/TrackedResource'
    SiteProperties:
      type: object
      description: The properties of VMwareSiteResource
      properties:
        masterSiteId:
          type: string
          description: Gets the Master Site this site is linked to.
          readOnly: true
        servicePrincipalIdentityDetails:
          $ref: '#/components/schemas/SiteSpnProperties'
          description: "Gets or sets the service principal identity details used by agent for\ncommunication\n            to the service."
        agentDetails:
          $ref: '#/components/schemas/SiteAgentProperties'
          description: Gets or sets the on-premises agent details.
        applianceName:
          type: string
          description: Gets or sets the Appliance Name.
        discoverySolutionId:
          type: string
          description: Gets or sets the ARM ID of migration hub solution for SDS.
        serviceEndpoint:
          type: string
          description: Gets the service endpoint.
          readOnly: true
        provisioningState:
          $ref: '#/components/schemas/ProvisioningState'
          description: The status of the last operation.
    ProvisioningState:
      type: string
      description: The status of the current operation.
      enum:
      - Created
      - Updated
      - Running
      - Completed
      - Failed
      - Succeeded
      - Canceled
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
        values:
        - name: Created
          value: Created
          description: Created value.
        - name: Updated
          value: Updated
          description: Updated value.
        - name: Running
          value: Running
          description: Running value.
        - name: Completed
          value: Completed
          description: Completed value.
        - name: Failed
          value: Failed
          description: Failed value.
        - name: Succeeded
          value: Succeeded
          description: Succeeded value.
        - name: Canceled
          value: Canceled
          description: Canceled value.
    HypervSiteListResult:
      type: object
      description: The response of a HypervSite list operation.
      properties:
        value:
          type: array
          description: The HypervSite items on this page
          items:
            $ref: '#/components/schemas/HypervSite'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    SiteSpnProperties:
      type: object
      description: Class for site properties.
      properties:
        tenantId:
          type: string
          description: "Gets or sets the tenant Id for the service principal with which the\non-premise\n            management/data plane components would communicate with\nour Azure services."
        applicationId:
          type: string
          description: "Gets or sets the application/client Id for the service principal with which\nthe\n            on-premise management/data plane components would communicate\nwith our Azure \n            services."
        objectId:
          type: string
          description: "Gets or sets the object Id of the service principal with which the on-premise\n\n           management/data plane components would communicate with our Azure\nservices."
        audience:
          type: string
          description: Gets or sets the intended audience for the service principal.
        aadAuthority:
          type: string
          description: "Gets or sets the AAD Authority URL which was used to request the token for\nthe\n            service principal."
        rawCertData:
          type: string
          description: Gets or sets the raw certificate data for building certificate expiry flows.
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription.
      required: true
      schema:
        type: string
        minLength: 1
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
  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.