Microsoft Azure Dps Certificate API

The DpsCertificate API from Microsoft Azure, for dpscertificate.

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.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName} Get a certificate on a provisioning service · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What details can I see for one certificate uploaded to my Device Provisioning Service?”
“Can I check whether a DPS certificate has been verified yet?”
Tell an agent
Show certificate {certificateName} on provisioning service {provisioningServiceName} in resource group {resourceGroupName}.
Fetch DPS certificate {certificateName} from subscription {subscriptionId}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName} Upload or update a provisioning service certificate · Microsoft Azure Upload The Certificate To The Provisioning Service #
Ask an LLM
“How do I add a new CA certificate to my Device Provisioning Service?”
“Can I replace an existing DPS certificate using its etag?”
Tell an agent
Upload certificate {certificateName} to provisioning service {provisioningServiceName} in resource group {resourceGroupName} with properties {properties}.
Update DPS certificate {certificateName} in subscription {subscriptionId}, matching etag {etag}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName} Delete a provisioning service certificate · Microsoft Azure Delete The Provisioning Service Certificate #
Ask an LLM
“How do I remove a certificate from my Device Provisioning Service?”
“Does deleting a DPS certificate require the current etag?”
Tell an agent destructive · confirm first
Delete certificate {certificateName} from provisioning service {provisioningServiceName} in resource group {resourceGroupName} using etag {etag}.
Remove the DPS certificate {certificateName} in subscription {subscriptionId}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates List certificates on a provisioning service · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which certificates are tied to my Device Provisioning Service?”
“Can I see every CA certificate a DPS instance trusts?”
Tell an agent
List all certificates on provisioning service {provisioningServiceName} in resource group {resourceGroupName}.
Show the DPS certificates for subscription {subscriptionId}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode Generate a proof-of-possession verification code · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I get a verification code to prove I own a DPS certificate's private key?”
“What is the first step of proof of possession for a provisioning service certificate?”
Tell an agent
Generate a verification code for cert {certificateName} on DPS {provisioningServiceName}, resource group {resourceGroupName}, etag {etag}.
Start proof of possession for DPS certificate {certificateName} in subscription {subscriptionId}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify Verify a certificate with a signed leaf certificate · Microsoft Azure Verify Certificate S Private Key Possession #
Ask an LLM
“How do I finish proof of possession by uploading the signed verification certificate?”
“Can I mark a DPS certificate as verified by submitting a leaf cert?”
Tell an agent
Verify cert {certificateName} on DPS {provisioningServiceName} in {resourceGroupName} with leaf cert {certificate}, etag {etag}.
Complete possession verification for DPS certificate {certificateName} in subscription {subscriptionId}.

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-dpscertificate-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-dpscertificate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2023-03-01-preview
  x-ms-code-generation-settings:
    host: management.azure.com
  title: Microsoft Azure iotDpsClient Dps Certificate API
  description: API for using the Azure IoT Hub Device Provisioning Service features.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DpsCertificate
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}
  : get:
      tags:
      - DpsCertificate
      operationId: microsoftAzureDpscertificateGet
      description: Get the certificate from the provisioning service.
      x-ms-examples:
        DPSGetCertificate:
          $ref: ./examples/DPSGetCertificate.json
      parameters:
      - name: certificateName
        in: path
        required: true
        description: Name of the certificate to retrieve.
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        in: path
        required: true
        description: Resource group identifier.
        schema:
          type: string
      - name: provisioningServiceName
        in: path
        required: true
        description: Name of the provisioning service the certificate is associated with.
        schema:
          type: string
      - name: If-Match
        in: header
        required: false
        description: ETag of the certificate.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Metadata for the specified certificate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateResponse'
        default:
          description: Default error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - DpsCertificate
      summary: Microsoft Azure Upload The Certificate To The Provisioning Service
      description: Add new certificate or update an existing certificate.
      operationId: microsoftAzureDpscertificateCreateorupdate
      x-ms-examples:
        DPSCreateOrUpdateCertificate:
          $ref: ./examples/DPSCertificateCreateOrUpdate.json
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        in: path
        description: Resource group identifier.
        required: true
        schema:
          type: string
      - name: provisioningServiceName
        in: path
        description: The name of the provisioning service.
        required: true
        schema:
          type: string
      - name: certificateName
        in: path
        description: The name of the certificate create or update.
        required: true
        schema:
          type: string
          maxLength: 256
      - name: If-Match
        in: header
        required: false
        description: ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.
        schema:
          type: string
      responses:
        '200':
          description: If certificate already exist and update was successful, the operation returns HTTP status code of 201 (OK).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateResponse'
        default:
          description: Default error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      deprecated: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CertificateResponse'
        description: The certificate body.
        required: true
    delete:
      tags:
      - DpsCertificate
      operationId: microsoftAzureDpscertificateDelete
      summary: Microsoft Azure Delete The Provisioning Service Certificate
      description: Deletes the specified certificate associated with the Provisioning Service
      x-ms-examples:
        DPSDeleteCertificate:
          $ref: ./examples/DPSDeleteCertificate.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        in: path
        required: true
        description: Resource group identifier.
        schema:
          type: string
      - name: If-Match
        in: header
        required: true
        description: ETag of the certificate
        schema:
          type: string
      - name: provisioningServiceName
        in: path
        required: true
        description: The name of the provisioning service.
        schema:
          type: string
      - name: certificateName
        in: path
        required: true
        description: This is a mandatory field, and is the logical name of the certificate that the provisioning service will access by.
        schema:
          type: string
      - name: certificate.name
        in: query
        required: false
        description: This is optional, and it is the Common Name of the certificate.
        schema:
          type: string
      - name: certificate.rawBytes
        in: query
        required: false
        description: Raw data within the certificate.
        schema:
          type: string
          format: byte
      - name: certificate.isVerified
        in: query
        required: false
        description: Indicates if certificate has been verified by owner of the private key.
        schema:
          type: boolean
      - name: certificate.purpose
        in: query
        required: false
        description: A description that mentions the purpose of the certificate.
        x-ms-enum:
          name: CertificatePurpose
          modelAsString: true
        schema:
          type: string
          enum:
          - clientAuthentication
          - serverAuthentication
      - name: certificate.created
        in: query
        description: Time the certificate is created.
        required: false
        schema:
          type: string
          format: date-time
      - name: certificate.lastUpdated
        in: query
        required: false
        description: Time the certificate is last updated.
        schema:
          type: string
          format: date-time
      - name: certificate.hasPrivateKey
        in: query
        required: false
        description: Indicates if the certificate contains a private key.
        schema:
          type: boolean
      - name: certificate.nonce
        in: query
        required: false
        description: Random number generated to indicate Proof of Possession.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK.
        '204':
          description: No content.
        default:
          description: Default error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates
  : get:
      tags:
      - DpsCertificate
      operationId: microsoftAzureDpscertificateList
      description: Get all the certificates tied to the provisioning service.
      x-ms-examples:
        DPSGetCertificates:
          $ref: ./examples/DPSGetCertificates.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        in: path
        required: true
        description: Name of resource group.
        schema:
          type: string
      - name: provisioningServiceName
        in: path
        required: true
        description: Name of provisioning service to retrieve certificates for.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: List of certificate descriptions in a JSON-serialized array.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateListDescription'
        default:
          description: Default error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode
  : post:
      tags:
      - DpsCertificate
      operationId: microsoftAzureDpscertificateGenerateverificationcode
      description: Generate verification code for Proof of Possession.
      x-ms-examples:
        DPSGenerateVerificationCode:
          $ref: ./examples/DPSGenerateVerificationCode.json
      parameters:
      - name: certificateName
        in: path
        required: true
        description: The mandatory logical name of the certificate, that the provisioning service uses to access.
        schema:
          type: string
      - name: If-Match
        in: header
        required: true
        description: ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        in: path
        required: true
        description: name of resource group.
        schema:
          type: string
      - name: provisioningServiceName
        in: path
        required: true
        description: Name of provisioning service.
        schema:
          type: string
      - name: certificate.name
        in: query
        required: false
        description: Common Name for the certificate.
        schema:
          type: string
      - name: certificate.rawBytes
        in: query
        required: false
        description: Raw data of certificate.
        schema:
          type: string
          format: byte
      - name: certificate.isVerified
        in: query
        required: false
        description: Indicates if the certificate has been verified by owner of the private key.
        schema:
          type: boolean
      - name: certificate.purpose
        in: query
        required: false
        description: Description mentioning the purpose of the certificate.
        x-ms-enum:
          name: CertificatePurpose
          modelAsString: true
        schema:
          type: string
          enum:
          - clientAuthentication
          - serverAuthentication
      - name: certificate.created
        in: query
        required: false
        description: Certificate creation time.
        schema:
          type: string
          format: date-time
      - name: certificate.lastUpdated
        in: query
        required: false
        description: Certificate last updated time.
        schema:
          type: string
          format: date-time
      - name: certificate.hasPrivateKey
        in: query
        required: false
        description: Indicates if the certificate contains private key.
        schema:
          type: boolean
      - name: certificate.nonce
        in: query
        required: false
        description: Random number generated to indicate Proof of Possession.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Generated verification code for that certificate is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerificationCodeResponse'
        default:
          description: Default error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify
  : post:
      tags:
      - DpsCertificate
      operationId: microsoftAzureDpscertificateVerifycertificate
      summary: Microsoft Azure Verify Certificate S Private Key Possession
      description: Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.
      x-ms-examples:
        DPSVerifyCertificate:
          $ref: ./examples/DPSVerifyCertificate.json
      parameters:
      - name: certificateName
        in: path
        required: true
        description: The mandatory logical name of the certificate, that the provisioning service uses to access.
        schema:
          type: string
      - name: If-Match
        in: header
        required: true
        description: ETag of the certificate.
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        in: path
        required: true
        description: Resource group name.
        schema:
          type: string
      - name: provisioningServiceName
        in: path
        required: true
        description: Provisioning service name.
        schema:
          type: string
      - name: certificate.name
        in: query
        required: false
        description: Common Name for the certificate.
        schema:
          type: string
      - name: certificate.rawBytes
        in: query
        required: false
        description: Raw data of certificate.
        schema:
          type: string
          format: byte
      - name: certificate.isVerified
        in: query
        required: false
        description: Indicates if the certificate has been verified by owner of the private key.
        schema:
          type: boolean
      - name: certificate.purpose
        in: query
        required: false
        description: Describe the purpose of the certificate.
        x-ms-enum:
          name: CertificatePurpose
          modelAsString: true
        schema:
          type: string
          enum:
          - clientAuthentication
          - serverAuthentication
      - name: certificate.created
        in: query
        required: false
        description: Certificate creation time.
        schema:
          type: string
          format: date-time
      - name: certificate.lastUpdated
        in: query
        required: false
        description: Certificate last updated time.
        schema:
          type: string
          format: date-time
      - name: certificate.hasPrivateKey
        in: query
        required: false
        description: Indicates if the certificate contains private key.
        schema:
          type: boolean
      - name: certificate.nonce
        in: query
        required: false
        description: Random number generated to indicate Proof of Possession.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateResponse'
        default:
          description: Default error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerificationCodeRequest'
        description: The name of the certificate
        required: true
components:
  schemas:
    CertificateProperties:
      description: The description of an X509 CA Certificate.
      type: object
      properties:
        subject:
          description: The certificate's subject name.
          type: string
          readOnly: true
        expiry:
          description: The certificate's expiration date and time.
          type: string
          format: date-time-rfc1123
          readOnly: true
        thumbprint:
          description: The certificate's thumbprint.
          type: string
          readOnly: true
        isVerified:
          description: Determines whether certificate has been verified.
          type: boolean
        certificate:
          description: base-64 representation of X509 certificate .cer file or just .pem file content.
          type: string
          format: byte
        created:
          description: The certificate's creation date and time.
          type: string
          format: date-time-rfc1123
          readOnly: true
        updated:
          description: The certificate's last update date and time.
          type: string
          format: date-time-rfc1123
          readOnly: true
    VerificationCodeResponse:
      type: object
      description: Description of the response of the verification code.
      properties:
        name:
          type: string
          description: Name of certificate.
          readOnly: true
        etag:
          readOnly: true
          type: string
          description: Request etag.
        id:
          readOnly: true
          type: string
          description: The resource identifier.
        type:
          readOnly: true
          type: string
          description: The resource type.
        properties:
          type: object
          properties:
            verificationCode:
              type: string
              description: Verification code.
            subject:
              type: string
              description: Certificate subject.
            expiry:
              type: string
              description: Code expiry.
            thumbprint:
              type: string
              description: Certificate thumbprint.
            isVerified:
              type: boolean
              description: Indicate if the certificate is verified by owner of private key.
            certificate:
              description: base-64 representation of X509 certificate .cer file or just .pem file content.
              type: string
              format: byte
            created:
              type: string
              description: Certificate created time.
            updated:
              type: string
              description: Certificate updated time.
      x-ms-azure-resource: true
    VerificationCodeRequest:
      type: object
      description: The JSON-serialized leaf certificate
      properties:
        certificate:
          description: base-64 representation of X509 certificate .cer file or just .pem file content.
          type: string
    CertificateListDescription:
      description: The JSON-serialized array of Certificate objects.
      type: object
      properties:
        value:
          description: The array of Certificate objects.
          type: array
          items:
            $ref: '#/components/schemas/CertificateResponse'
    ErrorDetails:
      description: Error details.
      type: object
      properties:
        code:
          description: The error code.
          format: int32
          type: integer
          readOnly: true
        httpStatusCode:
          description: The HTTP status code.
          type: string
          readOnly: true
        message:
          description: The error message.
          type: string
          readOnly: true
        details:
          description: The error details.
          type: string
          readOnly: true
    CertificateResponse:
      description: The X509 Certificate.
      type: object
      properties:
        properties:
          description: properties of a certificate
          $ref: '#/components/schemas/CertificateProperties'
        id:
          readOnly: true
          type: string
          description: The resource identifier.
        name:
          description: The name of the certificate.
          type: string
          readOnly: true
        etag:
          description: The entity tag.
          type: string
          readOnly: true
        type:
          readOnly: true
          type: string
          description: The resource type.
        systemData:
          $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/systemData
          readOnly: true
      x-ms-azure-resource: true
  parameters:
    subscriptionId:
      name: subscriptionId
      in: path
      description: The subscription identifier.
      required: true
      schema:
        type: string
    api-version:
      name: api-version
      in: query
      description: The version of the API.
      required: true
      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.