Microsoft Azure Digital Twins Instance API

The DigitalTwinsInstance API from Microsoft Azure, for digitaltwinsinstance.

GitHub OpenAPI

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

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName} Get an Azure Digital Twins instance · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I view the settings and host name of an Azure Digital Twins instance?”
“What is the provisioning state of my Digital Twins instance?”
Tell an agent
Get Digital Twins instance {resourceName} in {resourceGroupName}, subscription {subscriptionId}.
Show the details of Digital Twins instance {resourceName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName} Create or update a Digital Twins instance · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I provision a new Azure Digital Twins instance in a region?”
“Can I replace the full metadata of an existing Digital Twins instance?”
Tell an agent
Create Digital Twins instance {resourceName} in {location}, group {resourceGroupName}, subscription {subscriptionId}.
Create or replace Digital Twins instance {resourceName} with properties {properties}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName} Update tags on a Digital Twins instance · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change the tags on an existing Azure Digital Twins instance?”
“What metadata can I patch on a Digital Twins instance without recreating it?”
Tell an agent
Set the tags on Digital Twins instance {resourceName} to {tags}.
Patch the metadata of Digital Twins instance {resourceName} in {resourceGroupName} with tags {tags}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName} Delete an Azure Digital Twins instance · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I delete an Azure Digital Twins instance I no longer need?”
“Can I remove a Digital Twins instance from its resource group?”
Tell an agent destructive · confirm first
Delete Digital Twins instance {resourceName} in {resourceGroupName}.
Remove the Azure Digital Twins instance {resourceName}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances List Digital Twins instances in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“Which Azure Digital Twins instances exist across my subscription?”
“Can I list all Digital Twins instances without picking a resource group?”
Tell an agent
List all Digital Twins instances in subscription {subscriptionId}.
Show every Digital Twins instance I have across the subscription.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances List Digital Twins instances in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which Digital Twins instances are in a specific resource group?”
“How do I see only the Digital Twins instances in one resource group?”
Tell an agent
List Digital Twins instances in resource group {resourceGroupName}, subscription {subscriptionId}.
Show the Digital Twins instances inside {resourceGroupName}.

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-digitaltwinsinstance-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-digitaltwinsinstance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2020-03-01-preview
  title: Microsoft Azure AzureDigitalTwinsManagementClient Digital…
  description: Azure Digital Twins Client for managing DigitalTwinsInstance
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DigitalTwinsInstance
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}
  : get:
      tags:
      - DigitalTwinsInstance
      description: Get DigitalTwinsInstances resource.
      operationId: microsoftAzureDigitaltwinsGet
      x-ms-examples:
        Get a DigitalTwinsInstance resource:
          $ref: ./examples/DigitalTwinsGet_example.json
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/resourceName'
      responses:
        '200':
          description: The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalTwinsDescription'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - DigitalTwinsInstance
      description: Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.
      operationId: microsoftAzureDigitaltwinsCreateorupdate
      x-ms-long-running-operation: true
      x-ms-examples:
        Put a DigitalTwinsInstance resource:
          $ref: ./examples/DigitalTwinsPut_example.json
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/resourceName'
      responses:
        '200':
          description: This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalTwinsDescription'
        '201':
          description: Created - Put request accepted; the operation will complete asynchronously.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalTwinsDescription'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DigitalTwinsDescription'
        description: The DigitalTwinsInstance and security metadata.
        required: true
    patch:
      tags:
      - DigitalTwinsInstance
      description: Update metadata of DigitalTwinsInstance.
      operationId: microsoftAzureDigitaltwinsUpdate
      x-ms-long-running-operation: true
      x-ms-examples:
        Patch a DigitalTwinsInstance resource:
          $ref: ./examples/DigitalTwinsPatch_example.json
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/resourceName'
      responses:
        '200':
          description: This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalTwinsDescription'
        '201':
          description: Accepted - Put request accepted; the operation will complete asynchronously.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DigitalTwinsPatchDescription'
        description: The DigitalTwinsInstance and security metadata.
        required: true
    delete:
      tags:
      - DigitalTwinsInstance
      description: Delete a DigitalTwinsInstance.
      operationId: microsoftAzureDigitaltwinsDelete
      x-ms-long-running-operation: true
      x-ms-examples:
        Delete a DigitalTwinsInstance resource:
          $ref: ./examples/DigitalTwinsDelete_example.json
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/resourceName'
      responses:
        '200':
          description: This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state.
        '202':
          description: Accepted - Delete request accepted; the operation will complete asynchronously.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalTwinsDescription'
        '204':
          description: Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the DigitalTwins service metadata in the service and the status of the delete operation is set to a completed state.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances:
    get:
      tags:
      - DigitalTwinsInstance
      description: Get all the DigitalTwinsInstances in a subscription.
      operationId: microsoftAzureDigitaltwinsList
      x-ms-examples:
        Get DigitalTwinsInstance resources by subscription:
          $ref: ./examples/DigitalTwinsList_example.json
      x-ms-pageable:
        nextLinkName: nextLink
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/subscriptionId'
      responses:
        '200':
          description: This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the DigitalTwinsInstances in the subscription.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalTwinsDescriptionListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft…
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances:
    get:
      tags:
      - DigitalTwinsInstance
      description: Get all the DigitalTwinsInstances in a resource group.
      operationId: microsoftAzureDigitaltwinsListbyresourcegroup
      x-ms-examples:
        Get DigitalTwinsInstance resources by resource group:
          $ref: ./examples/DigitalTwinsListByResourceGroup_example.json
      x-ms-pageable:
        nextLinkName: nextLink
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      responses:
        '200':
          description: This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the DigitalTwinsInstances in the resource group.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalTwinsDescriptionListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    DigitalTwinsDescriptionListResult:
      description: A list of DigitalTwins description objects with a next link.
      type: object
      properties:
        nextLink:
          description: The link used to get the next page of DigitalTwins description objects.
          type: string
        value:
          description: A list of DigitalTwins description objects.
          type: array
          items:
            $ref: '#/components/schemas/DigitalTwinsDescription'
    ErrorResponse:
      description: Error response.
      properties:
        error:
          description: Error description
          $ref: '#/components/schemas/ErrorDefinition'
    DigitalTwinsProperties:
      description: The properties of a DigitalTwinsInstance.
      type: object
      properties:
        createdTime:
          description: Time when DigitalTwinsInstance was created.
          readOnly: true
          type: string
          format: date-time
        lastUpdatedTime:
          description: Time when DigitalTwinsInstance was created.
          readOnly: true
          type: string
          format: date-time
        provisioningState:
          description: The provisioning state.
          enum:
          - Provisioning
          - Deleting
          - Succeeded
          - Failed
          - Canceled
          type: string
          readOnly: true
          x-ms-enum:
            name: provisioningState
            modelAsString: true
        hostName:
          description: Api endpoint to work with DigitalTwinsInstance.
          type: string
          readOnly: true
    DigitalTwinsSkuInfo:
      description: Information about the SKU of the DigitalTwinsInstance.
      type: object
      properties:
        name:
          description: The name of the SKU.
          enum:
          - F1
          type: string
          x-ms-enum:
            name: DigitalTwinsSku
            modelAsString: true
      required:
      - name
    ErrorDefinition:
      description: Error definition.
      properties:
        code:
          description: Service specific error code which serves as the substatus for the HTTP error code.
          type: string
          readOnly: true
        message:
          description: Description of the error.
          type: string
          readOnly: true
        details:
          description: Internal error details.
          type: array
          items:
            $ref: '#/components/schemas/ErrorDefinition'
          readOnly: true
    DigitalTwinsDescription:
      description: The description of the DigitalTwins service.
      type: object
      properties:
        properties:
          x-ms-client-flatten: true
          description: DigitalTwins instance properties.
          $ref: '#/components/schemas/DigitalTwinsProperties'
      allOf:
      - $ref: '#/components/schemas/DigitalTwinsResource'
    DigitalTwinsResource:
      description: The common properties of a DigitalTwinsInstance.
      properties:
        id:
          readOnly: true
          type: string
          description: The resource identifier.
        name:
          readOnly: true
          type: string
          description: The resource name.
          pattern: ^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$
        type:
          readOnly: true
          type: string
          description: The resource type.
        location:
          type: string
          description: The resource location.
          x-ms-mutability:
          - create
          - read
        tags:
          type: object
          additionalProperties:
            type: string
          description: The resource tags.
        sku:
          description: This property is reserved for future use, and will be ignored/omitted
          $ref: '#/components/schemas/DigitalTwinsSkuInfo'
      x-ms-azure-resource: true
      required:
      - location
    DigitalTwinsPatchDescription:
      description: The description of the DigitalTwins service.
      type: object
      properties:
        tags:
          description: Instance tags
          type: object
          additionalProperties:
            type: string
  parameters:
    subscriptionId:
      name: subscriptionId
      in: path
      description: The subscription identifier.
      required: true
      schema:
        type: string
    api-version:
      name: api-version
      in: query
      description: Version of the DigitalTwinsInstance Management API.
      required: true
      schema:
        type: string
        enum:
        - 2020-03-01-preview
        minLength: 10
    resourceName:
      name: resourceName
      in: path
      description: The name of the DigitalTwinsInstance.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 64
        minLength: 1
    resourceGroupName:
      name: resourceGroupName
      in: path
      description: The name of the resource group that contains the DigitalTwinsInstance.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 64
        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
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)