Microsoft Azure Enrollment Groups API

The enrollmentGroups API from Microsoft Azure, for enrollmentgroups.

GitHub OpenAPI
Business capability
Device Management & Provisioning AE-200.40

Operations 10

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 /enrollmentGroups List enrollment groups in an IoT Central app · Microsoft Azure Get The List Of Enrollment Groups In An Application #
Ask an LLM
“Which enrollment groups exist in my IoT Central application?”
“Can I see all device enrollment groups at once?”
Tell an agent
List all enrollment groups in the application using API version {apiVersion}.
Show every enrollment group configured for device provisioning.
GET /enrollmentGroups/{enrollmentGroupId} Get an enrollment group · Microsoft Azure Get An Enrollment Group By Id #
Ask an LLM
“How do I look up one enrollment group by its id?”
“What attestation type does a specific enrollment group use?”
Tell an agent
Get enrollment group {enrollmentGroupId}.
Show the details of enrollment group {enrollmentGroupId}.
PUT /enrollmentGroups/{enrollmentGroupId} Create an enrollment group · Microsoft Azure Create An Enrollment Group #
Ask an LLM
“How do I create an enrollment group so devices can self-provision?”
“Which attestation settings are required for a new enrollment group?”
Tell an agent
Create enrollment group {enrollmentGroupId} named {displayName} of type {type}.
Create enrollment group {enrollmentGroupId} called {displayName}, type {type}, with attestation {attestation}.
PATCH /enrollmentGroups/{enrollmentGroupId} Update an enrollment group · Microsoft Azure Update An Enrollment Group #
Ask an LLM
“Can I change an existing enrollment group's settings?”
“Does updating an enrollment group support an If-Match ETag?”
Tell an agent
Update enrollment group {enrollmentGroupId}.
Patch enrollment group {enrollmentGroupId} only if its ETag is {ifMatch}.
DELETE /enrollmentGroups/{enrollmentGroupId} Delete an enrollment group · Microsoft Azure Delete An Enrollment Group #
Ask an LLM
“Can I delete an enrollment group I no longer use?”
“What happens to provisioning when an enrollment group is removed?”
Tell an agent destructive · confirm first
Delete enrollment group {enrollmentGroupId}.
Remove the enrollment group {enrollmentGroupId} from the app.
GET /enrollmentGroups/{enrollmentGroupId}/certificates/{entry} Get an enrollment group's X.509 certificate · Microsoft Azure Get The Primary Or Secondary X509 Certificate Of An Enrollment… #
Ask an LLM
“How do I see the primary or secondary X.509 certificate on an enrollment group?”
“Is the certificate on my enrollment group verified?”
Tell an agent
Get the {entry} X.509 certificate of enrollment group {enrollmentGroupId}.
Show the primary certificate details for enrollment group {enrollmentGroupId} using entry {entry}.
PUT /enrollmentGroups/{enrollmentGroupId}/certificates/{entry} Set an enrollment group's X.509 certificate · Microsoft Azure Sets The Primary Or Secondary X509 Certificate Of An Enrollment… #
Ask an LLM
“How do I upload a primary or secondary X.509 certificate to an enrollment group?”
“Can I replace the secondary certificate on an enrollment group?”
Tell an agent
Set the {entry} X.509 certificate of enrollment group {enrollmentGroupId} to {certificate}.
Upload certificate {certificate} as entry {entry} on enrollment group {enrollmentGroupId}.
DELETE /enrollmentGroups/{enrollmentGroupId}/certificates/{entry} Remove an enrollment group's X.509 certificate · Microsoft Azure Removes The Primary Or Secondary X509 Certificate Of An… #
Ask an LLM
“Can I remove the secondary certificate from an enrollment group?”
“What happens when I delete an enrollment group's X.509 certificate?”
Tell an agent destructive · confirm first
Remove the {entry} X.509 certificate from enrollment group {enrollmentGroupId}.
Delete certificate entry {entry} on enrollment group {enrollmentGroupId}.
POST /enrollmentGroups/{enrollmentGroupId}/certificates/{entry}/generateVerificationCode Generate a certificate verification code · Microsoft Azure Generate A Verification Code For The Primary Or Secondary X509… #
Ask an LLM
“How do I get a verification code to prove I own an enrollment group's certificate?”
“What's the first step in proof-of-possession for an X.509 certificate?”
Tell an agent
Generate a verification code for the {entry} certificate of enrollment group {enrollmentGroupId}.
Create a proof-of-possession code for enrollment group {enrollmentGroupId} entry {entry}.
POST /enrollmentGroups/{enrollmentGroupId}/certificates/{entry}/verify Verify an enrollment group's X.509 certificate · Microsoft Azure Verify The Primary Or Secondary X509 Certificate Of An… #
Ask an LLM
“How do I complete verification of an enrollment group certificate with the signed code?”
“What do I submit to mark an X.509 certificate as verified?”
Tell an agent
Verify the {entry} certificate of enrollment group {enrollmentGroupId} with signed certificate {certificate}.
Submit {certificate} carrying the signed verification code for enrollment group {enrollmentGroupId} entry {entry}.

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-enrollmentgroups-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-enrollmentgroups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure IoT Central Enrollment Groups API
  description: Azure IoT Central is a service that makes it easy to connect, monitor, and manage your IoT devices at scale.
  version: 2022-10-31-preview
servers:
- url: /api
security:
- azure_auth:
  - user_impersonation
tags:
- name: enrollmentGroups
paths:
  /enrollmentGroups:
    get:
      operationId: microsoftAzureEnrollmentgroupsList
      summary: Microsoft Azure Get The List Of Enrollment Groups In An Application
      x-ms-examples:
        List enrollment groups:
          $ref: ./examples/enrollmentgroups_list.json
      parameters:
      - $ref: '#/components/parameters/Version'
      x-ms-pageable:
        nextLinkName: nextLink
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrollmentGroupCollection'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: Needs a more full description created.
      tags:
      - enrollmentGroups
  /enrollmentGroups/{enrollmentGroupId}:
    get:
      operationId: microsoftAzureEnrollmentgroupsGet
      summary: Microsoft Azure Get An Enrollment Group By Id
      description: Get details about an enrollment group by ID.
      x-ms-examples:
        Get an enrollment group by ID:
          $ref: ./examples/enrollmentgroups_get.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrollmentGroup'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
    put:
      operationId: microsoftAzureEnrollmentgroupsCreate
      summary: Microsoft Azure Create An Enrollment Group
      description: Create an enrollment group.
      x-ms-examples:
        Get an enrollment group:
          $ref: ./examples/enrollmentgroups_create.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrollmentGroup'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnrollmentGroup'
        description: Enrollment group body.
        required: true
    patch:
      operationId: microsoftAzureEnrollmentgroupsUpdate
      summary: Microsoft Azure Update An Enrollment Group
      description: Update an enrollment group.
      x-ms-examples:
        Update an enrollment group by ID:
          $ref: ./examples/enrollmentgroups_update.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      - $ref: '#/components/parameters/IfMatch'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrollmentGroup'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
      requestBody:
        content:
          application/merge-patch+json:
            schema:
              type: object
        description: Enrollment group patch body.
        required: true
    delete:
      operationId: microsoftAzureEnrollmentgroupsRemove
      summary: Microsoft Azure Delete An Enrollment Group
      description: Delete an enrollment group by ID.
      x-ms-examples:
        Remove an enrollment group by ID:
          $ref: ./examples/enrollmentgroups_delete.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      responses:
        '204':
          description: Success
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
  /enrollmentGroups/{enrollmentGroupId}/certificates/{entry}:
    get:
      operationId: microsoftAzureEnrollmentgroupsGetx509
      summary: Microsoft Azure Get The Primary Or Secondary X509 Certificate Of An Enrollment…
      description: Get details about the primary or secondary x509 certificate of an enrollment group, if it exists.
      x-ms-examples:
        Get primary or secondary X509:
          $ref: ./examples/enrollmentgroups_getx509.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      - $ref: '#/components/parameters/Entry'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SigningX509Certificate'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
    put:
      operationId: microsoftAzureEnrollmentgroupsCreatex509
      summary: Microsoft Azure Sets The Primary Or Secondary X509 Certificate Of An Enrollment…
      description: Sets the primary or secondary x509 certificate of an enrollment group.
      x-ms-examples:
        Set primary or secondary X509:
          $ref: ./examples/enrollmentgroups_setx509.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      - $ref: '#/components/parameters/Entry'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SigningX509Certificate'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SigningX509Certificate'
        description: Certificate definition.
        required: true
    delete:
      operationId: microsoftAzureEnrollmentgroupsRemovex509
      summary: Microsoft Azure Removes The Primary Or Secondary X509 Certificate Of An…
      description: Removes the primary or secondary x509 certificate of an enrollment group.
      x-ms-examples:
        Remove primary or secondary X509:
          $ref: ./examples/enrollmentgroups_removex509.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      - $ref: '#/components/parameters/Entry'
      responses:
        '204':
          description: Success
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
  /enrollmentGroups/{enrollmentGroupId}/certificates/{entry}/generateVerificationCode:
    post:
      operationId: microsoftAzureEnrollmentgroupsGenerateverificationcodex509
      summary: Microsoft Azure Generate A Verification Code For The Primary Or Secondary X509…
      description: Generate a verification code for the primary or secondary x509 certificate of an enrollment group.
      x-ms-examples:
        Generate primary or secondary X509 verification code:
          $ref: ./examples/enrollmentgroups_generateverificationcodex509.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      - $ref: '#/components/parameters/Entry'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/X509VerificationCode'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
  /enrollmentGroups/{enrollmentGroupId}/certificates/{entry}/verify:
    post:
      operationId: microsoftAzureEnrollmentgroupsVerifyx509
      summary: Microsoft Azure Verify The Primary Or Secondary X509 Certificate Of An…
      description: Verify the primary or secondary x509 certificate of an enrollment group by providing a certificate with the signed verification code.
      x-ms-examples:
        Verify primary or secondary X509 verification code:
          $ref: ./examples/enrollmentgroups_verifyx509.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/EnrollmentGroupId'
      - $ref: '#/components/parameters/Entry'
      responses:
        '204':
          description: Success
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - enrollmentGroups
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/X509VerificationCertificate'
        description: Certificate for the signed verification code.
        required: true
components:
  parameters:
    Version:
      in: query
      name: api-version
      description: The version of the API being called.
      x-ms-parameter-location: client
      required: true
      schema:
        type: string
    Entry:
      in: path
      name: entry
      description: Entry of certificate only support primary and secondary.
      x-ms-parameter-location: method
      x-ms-enum:
        name: CertificateEntry
        modelAsString: false
        values:
        - value: primary
          name: Primary
          description: The entry of primary certificate
        - value: secondary
          name: Secondary
          description: The entry of secondary certificate
      required: true
      schema:
        type: string
        enum:
        - primary
        - secondary
    IfMatch:
      in: header
      name: If-Match
      description: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
      x-ms-parameter-location: method
      required: false
      schema:
        type: string
    EnrollmentGroupId:
      in: path
      name: enrollmentGroupId
      description: Unique ID of the enrollment group.
      x-ms-parameter-location: method
      required: true
      schema:
        type: string
        maxLength: 255
        pattern: ^[a-zA-Z0-9-]*$
  schemas:
    Error:
      description: The response error definition.
      type: object
      properties:
        error:
          description: Error details for current request.
          $ref: '#/components/schemas/ErrorDetails'
      required:
      - error
    X509VerificationCertificate:
      description: The X509 verification certificate definition.
      type: object
      properties:
        certificate:
          description: The string representation of this certificate.
          type: string
      required:
      - certificate
    GroupAttestation:
      description: The attestation definition for an enrollment group.
      type: object
      properties:
        type:
          description: Type of the attestation.
          type: string
      required:
      - type
      discriminator:
        propertyName: type
    SigningX509Certificate:
      description: The X509 certificate definition.
      type: object
      properties:
        verified:
          description: Whether the certificate has been verified.
          type: boolean
          default: false
        certificate:
          description: The string representation of this certificate.
          type: string
        info:
          description: Information about this certificate.
          readOnly: true
          $ref: '#/components/schemas/X509CertificateInfo'
        etag:
          description: ETag used to prevent conflict across multiple updates
          type: string
    X509CertificateInfo:
      description: The X509 certificate info.
      type: object
      properties:
        sha1Thumbprint:
          description: The SHA-1 hash value of the certificate.
          type: string
      required:
      - sha1Thumbprint
    ErrorDetails:
      description: The detail information of the error.
      type: object
      properties:
        code:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message details.
        requestId:
          type: string
          description: Correlation Id for current request.
        time:
          type: string
          format: date-time-rfc1123
          description: The time that error request failed.
      required:
      - code
      - message
    EnrollmentGroup:
      description: The enrollment group definition.
      type: object
      properties:
        id:
          description: Unique ID of the enrollment group.
          type: string
          readOnly: true
        displayName:
          description: Display name of the enrollment group.
          type: string
        enabled:
          description: Whether the devices using the group are allowed to connect to IoT Central.
          type: boolean
          default: true
        type:
          description: Type of devices that connect through the group.
          type: string
          enum:
          - iot
          - iotEdge
          x-ms-enum:
            name: EnrollmentGroupType
            modelAsString: false
            values:
            - value: iot
              name: IoT devices
              description: Regular (non-Edge) IoT devices
            - value: iotEdge
              name: IoT Edge devices
              description: IoT Edge devices
        attestation:
          description: The attestation mechanism for the enrollment group.
          $ref: '#/components/schemas/GroupAttestation'
        etag:
          description: ETag used to prevent conflict in enrollment group updates.
          type: string
        idScope:
          description: ID scope for connecting to the IoT Central application.
          type: string
          readOnly: true
      required:
      - displayName
      - attestation
      - type
    EnrollmentGroupCollection:
      description: The paged results of enrollment groups.
      type: object
      properties:
        value:
          description: The collection of enrollment groups.
          type: array
          items:
            $ref: '#/components/schemas/EnrollmentGroup'
        nextLink:
          description: URL to get the next page of enrollment groups.
          type: string
      required:
      - value
    X509VerificationCode:
      description: The X509 certificate verification code.
      type: object
      properties:
        verificationCode:
          description: The X509 certificate verification code.
          type: string
          readOnly: true
  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-ms-parameterized-host:
  hostTemplate: '{subdomain}.{baseDomain}'
  parameters:
  - $ref: '#/components/parameters/BaseDomain'
  - $ref: '#/components/parameters/Subdomain'