Microsoft Azure Hosts API

The Hosts API from Microsoft Azure, for hosts.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 7

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.ConnectedVMwarevSphere/hosts/{hostName} Create or update an Arc vSphere host · Microsoft Azure Implements Host Put Method #
Ask an LLM
“How do I enable an ESXi host from my vCenter in Azure Arc?”
“Which location and extended location does a vSphere host resource need?”
Tell an agent
Create vSphere host {host} in resource group {rg} in location {location} with properties {properties}.
Onboard ESXi host {host} into subscription {sub}, group {rg} using custom location {ext} and region {location}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName} Get an Arc-enabled vSphere host · Microsoft Azure Gets A Host #
Ask an LLM
“How do I view a VMware ESXi host that is projected into Azure through Arc?”
“What is the status of one vSphere host resource in my resource group?”
Tell an agent
Get vSphere host {host} in resource group {rg}.
Show the Arc VMware host {host} in subscription {sub}, group {rg}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName} Update tags on an Arc vSphere host · Microsoft Azure Updates A Host #
Ask an LLM
“How do I retag a vSphere host resource in Azure?”
“What properties can I patch on an Arc VMware host?”
Tell an agent
Set tags {tags} on vSphere host {host} in resource group {rg}.
Patch Arc VMware host {host} in subscription {sub}, group {rg}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName} Delete an Arc vSphere host · Microsoft Azure Deletes An Host #
Ask an LLM
“How do I remove an ESXi host resource from Azure Arc?”
“Can I force-delete a vSphere host resource that will not go away?”
Tell an agent destructive · confirm first
Delete vSphere host {host} from resource group {rg}.
Force-remove Arc VMware host {host} in subscription {sub}, group {rg} with force {force}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/hosts List Arc vSphere hosts in a subscription · Microsoft Azure Implements Get Hosts In A Subscription #
Ask an LLM
“Which VMware hosts are Arc-enabled across my entire subscription?”
“Can I inventory every vSphere host resource in one subscription?”
Tell an agent
List all vSphere hosts in subscription {sub}.
Show every Arc VMware host across subscription {sub}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts List Arc vSphere hosts in a resource group · Microsoft Azure Implements Get Hosts In A Resource Group #
Ask an LLM
“What vSphere hosts are in a specific resource group?”
“Can I limit the Arc VMware host list to one resource group?”
Tell an agent
List vSphere hosts in resource group {rg}.
Show the Arc VMware hosts in subscription {sub}, resource group {rg}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts List hosts reporting to a Datadog monitor · Microsoft Azure List The Hosts For A Given Monitor Resource #
Ask an LLM
“Which hosts are being monitored by my Datadog monitor resource in Azure?”
“How can I see the host list behind a Datadog monitor?”
Tell an agent
List the hosts for Datadog monitor {monitor} in resource group {rg}.
Show monitored hosts of Datadog resource {monitor} in subscription {sub}, group {rg}.

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-hosts-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-hosts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Arc VMware Management Service Hosts…
  description: Self service experience for VMware.
  version: 2023-03-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Hosts
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}
  : put:
      tags:
      - Hosts
      operationId: microsoftAzureHostsCreate
      description: Create Or Update host.
      summary: Microsoft Azure Implements Host Put Method
      x-ms-examples:
        CreateHost:
          $ref: ./examples/CreateHost.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: hostName
        required: true
        description: Name of the host.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Arm resource update successful.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Host'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Host'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Host'
        description: Request payload.
    get:
      tags:
      - Hosts
      operationId: microsoftAzureHostsGet
      summary: Microsoft Azure Gets A Host
      description: Implements host GET method.
      x-ms-examples:
        GetHost:
          $ref: ./examples/GetHost.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: hostName
        description: Name of the host.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Host'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
    patch:
      tags:
      - Hosts
      operationId: microsoftAzureHostsUpdate
      summary: Microsoft Azure Updates A Host
      description: API to update certain properties of the host resource.
      x-ms-examples:
        UpdateHost:
          $ref: ./examples/UpdateHost.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: hostName
        required: true
        description: Name of the host.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Arm resource update successful.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Host'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResourcePatch'
        description: Resource properties to update.
    delete:
      tags:
      - Hosts
      operationId: microsoftAzureHostsDelete
      summary: Microsoft Azure Deletes An Host
      description: Implements host DELETE method.
      x-ms-examples:
        DeleteHost:
          $ref: ./examples/DeleteHost.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: hostName
        description: Name of the host.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      - in: query
        name: force
        description: Whether force delete was specified.
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: Success
        '202':
          description: Accepted
          headers:
            Location:
              schema:
                type: string
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
  /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/hosts:
    get:
      tags:
      - Hosts
      operationId: microsoftAzureHostsList
      summary: Microsoft Azure Implements Get Hosts In A Subscription
      description: List of hosts in a subscription.
      x-ms-examples:
        ListHosts:
          $ref: ./examples/ListHosts.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostsList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts:
    get:
      tags:
      - Hosts
      operationId: microsoftAzureHostsListbyresourcegroup
      summary: Microsoft Azure Implements Get Hosts In A Resource Group
      description: List of hosts in a resource group.
      x-ms-examples:
        ListHostsByResourceGroup:
          $ref: ./examples/ListHostsByResourceGroup.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostsList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts
  : post:
      tags:
      - Hosts
      summary: Microsoft Azure List The Hosts For A Given Monitor Resource
      operationId: microsoftAzureMonitorsListhosts
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/MonitorNameParameter'
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatadogHostListResponse'
        default:
          description: Default error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceProviderDefaultErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Monitors_ListHosts:
          $ref: ./examples/Hosts_List.json
      description: Needs a more full description created.
components:
  schemas:
    Host:
      description: Define the host.
      required:
      - location
      - properties
      type: object
      x-ms-azure-resource: true
      properties:
        properties:
          x-ms-client-flatten: true
          description: Resource properties.
          $ref: '#/components/schemas/HostProperties'
        location:
          description: Gets or sets the location.
          type: string
          x-ms-mutability:
          - read
          - create
        extendedLocation:
          $ref: '#/components/schemas/ExtendedLocation'
          description: Gets or sets the extended location.
        systemData:
          $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/systemData
          description: The system data.
        tags:
          description: Gets or sets the Resource tags.
          type: object
          additionalProperties:
            type: string
        name:
          description: Gets or sets the name.
          type: string
          readOnly: true
        id:
          description: Gets or sets the Id.
          type: string
          readOnly: true
        type:
          description: Gets or sets the type of the resource.
          type: string
          readOnly: true
        kind:
          type: string
          description: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
    ExtendedLocation:
      type: object
      description: The extended location.
      properties:
        type:
          type: string
          description: The extended location type.
        name:
          type: string
          description: The extended location name.
    HostProperties:
      description: Describes the properties of a Host.
      type: object
      properties:
        uuid:
          description: Gets or sets a unique identifier for this resource.
          type: string
          readOnly: true
        vCenterId:
          description: Gets or sets the ARM Id of the vCenter resource in which this host resides.
          type: string
        moRefId:
          description: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host.
          type: string
        inventoryItemId:
          description: Gets or sets the inventory Item ID for the host.
          type: string
        moName:
          description: Gets or sets the vCenter Managed Object name for the host.
          type: string
          readOnly: true
        statuses:
          description: The resource status information.
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/ResourceStatus'
          x-ms-identifiers:
          - type
        customResourceName:
          description: Gets the name of the corresponding resource in Kubernetes.
          type: string
          readOnly: true
        overallMemoryUsageGB:
          format: int64
          description: Gets the used physical memory on the host in GB.
          type: integer
          readOnly: true
        memorySizeGB:
          format: int64
          description: Gets the total amount of physical memory on the host in GB.
          type: integer
          readOnly: true
        overallCpuUsageMHz:
          format: int64
          description: Gets the used CPU usage across all cores in MHz.
          type: integer
          readOnly: true
        cpuMhz:
          format: int64
          description: Gets the max CPU usage across all cores in MHz.
          type: integer
          readOnly: true
        datastoreIds:
          description: Gets the datastore ARM ids.
          type: array
          items:
            type: string
          readOnly: true
        networkIds:
          description: Gets the network ARM ids.
          type: array
          items:
            type: string
          readOnly: true
        provisioningState:
          $ref: '#/components/schemas/ResourceProvisioningState'
          description: Gets the provisioning state.
          readOnly: true
    ResourcePatch:
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          description: Resource tags.
      description: Object containing updates for patch operations.
    HostsList:
      description: List of Hosts.
      type: object
      properties:
        nextLink:
          description: Url to follow for getting next page of Hosts.
          type: string
        value:
          description: Array of Hosts
          type: array
          items:
            $ref: '#/components/schemas/Host'
      required:
      - value
    ResourceStatus:
      description: The resource status information.
      type: object
      properties:
        type:
          description: The type of the condition.
          type: string
          readOnly: true
        status:
          description: Status of the condition.
          type: string
          readOnly: true
        reason:
          description: The reason for the condition's status.
          type: string
          readOnly: true
        message:
          description: A human readable message indicating details about the status.
          type: string
          readOnly: true
        severity:
          description: Severity with which to treat failures of this type of condition.
          type: string
          readOnly: true
        lastUpdatedAt:
          description: The last update time for this condition.
          type: string
          format: date-time
          readOnly: true
    ResourceProvisioningState:
      type: string
      description: The current deployment state of resource.
      enum:
      - Succeeded
      - Failed
      - Canceled
      - Provisioning
      - Updating
      - Deleting
      - Accepted
      - Created
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
    DatadogInstallMethod:
      type: object
      properties:
        tool:
          description: The tool.
          type: string
        toolVersion:
          description: The tool version.
          type: string
        installerVersion:
          description: The installer version.
          type: string
    ResourceProviderDefaultErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorResponseBody'
    DatadogLogsAgent:
      type: object
      properties:
        transport:
          description: The transport.
          type: string
    DatadogHostListResponse:
      description: Response of a list operation.
      type: object
      properties:
        value:
          description: Results of a list operation.
          type: array
          items:
            $ref: '#/components/schemas/DatadogHost'
        nextLink:
          description: Link to the next set of results, if any.
          type: string
    ErrorResponseBody:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        target:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorResponseBody'
    DatadogHostMetadata:
      type: object
      properties:
        agentVersion:
          description: The agent version.
          type: string
        installMethod:
          $ref: '#/components/schemas/DatadogInstallMethod'
        logsAgent:
          $ref: '#/components/schemas/DatadogLogsAgent'
    DatadogHost:
      type: object
      properties:
        name:
          description: The name of the host.
          type: string
        aliases:
          description: The aliases for the host.
          type: array
          items:
            type: string
        apps:
          description: The Datadog integrations reporting metrics for the host.
          type: array
          items:
            type: string
        meta:
          $ref: '#/components/schemas/DatadogHostMetadata'
  parameters:
    subscriptionId:
      in: path
      name: subscriptionId
      description: The Subscription ID.
      required: true
      schema:
        type: string
    api-version:
      in: query
      name: api-version
      description: Client Api Version.
      required: true
      schema:
        type: string
    resourceGroupName:
      in: path
      name: resourceGroupName
      description: The Resource Group Name.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The Microsoft Azure subscription ID.
      required: true
      schema:
        type: string
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group to which the Datadog resource belongs.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    MonitorNameParameter:
      in: path
      name: monitorName
      description: Monitor resource name
      required: true
      x-ms-parameter-location: method
      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.