Microsoft Entra ID (formerly Azure AD) Directory.public Key Infrastructure Root API

The directory.publicKeyInfrastructureRoot API from Microsoft Entra ID (formerly Azure AD) — 9 operation(s) for directory.publickeyinfrastructureroot.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 17

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 /directory/publicKeyInfrastructure Get the tenant's public key infrastructure root · Get publicKeyInfrastructure from directory #
Ask an LLM
“Where does Entra ID keep the public key infrastructure used for certificate-based authentication?”
“Can I read the PKI container that holds my tenant's certificate-based auth configurations?”
Tell an agent
Get the directory's public key infrastructure root for certificate-based authentication.
Show the PKI container object for my tenant and its settings.
PATCH /directory/publicKeyInfrastructure Update the tenant's public key infrastructure root · Update the navigation property publicKeyInfrastructure in directory #
Ask an LLM
“Can I replace the set of certificate-based auth configurations on the PKI root in one update?”
“Which properties of the directory's PKI container can be patched?”
Tell an agent
Update the PKI root so its certificate-based auth configurations are {configurations}.
Patch the directory's public key infrastructure container with my changes.
DELETE /directory/publicKeyInfrastructure Delete the tenant's public key infrastructure root · Delete navigation property publicKeyInfrastructure for directory #
Ask an LLM
“Can I remove the entire public key infrastructure container from the directory?”
“What does deleting the PKI root do to certificate-based authentication in my tenant?”
Tell an agent destructive · confirm first
Delete the directory's public key infrastructure root object.
Remove the PKI container only if its ETag still matches {etag}.
GET /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations List certificate-based auth PKI configurations · List certificateBasedAuthPki objects #
Ask an LLM
“Which PKI configurations are set up for certificate-based authentication in my tenant?”
“How do I see every certificateBasedAuthPki object and its upload status?”
Tell an agent
List all certificate-based authentication PKI configurations in the directory.
Show every certificateBasedAuthPki with its display name and status.
POST /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations Create a certificate-based auth PKI configuration · Create certificateBasedAuthPki #
Ask an LLM
“How do I create a new PKI object to hold certificate authorities for certificate-based sign-in?”
“Can I include certificate authorities when I first create a certificateBasedAuthPki?”
Tell an agent
Create a certificate-based auth PKI named {display_name}.
Create PKI {display_name} with certificate authorities {authorities}.
GET /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id} Get a certificate-based auth PKI configuration · Get certificateBasedAuthPki #
Ask an LLM
“What status and details does one certificateBasedAuthPki object report?”
“Can I check whether a specific PKI configuration finished processing?”
Tell an agent
Get certificate-based auth PKI {pki_id} with its properties.
Show the status and status details of PKI configuration {pki_id}.
PATCH /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id} Update a certificate-based auth PKI configuration · Update certificateBasedAuthPki #
Ask an LLM
“Can I rename an existing certificateBasedAuthPki object?”
“Which fields of a PKI configuration can I change after it is created?”
Tell an agent
Rename PKI configuration {pki_id} to {display_name}.
Update the properties of certificate-based auth PKI {pki_id}.
DELETE /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id} Delete a certificate-based auth PKI configuration · Delete certificateBasedAuthPki #
Ask an LLM
“Can I delete a PKI configuration I no longer use for certificate-based sign-in?”
“What happens to the certificate authorities inside a certificateBasedAuthPki when I delete it?”
Tell an agent destructive · confirm first
Delete certificate-based auth PKI {pki_id}.
Remove PKI configuration {pki_id} only if its ETag is {etag}.
GET /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id}/certificateAuthorities List certificate authorities in a PKI · List certificateAuthorityDetail objects #
Ask an LLM
“Which certificate authorities are trusted inside a given PKI configuration?”
“Can I see each CA's issuer, thumbprint and expiration date for one PKI?”
Tell an agent
List the certificate authorities in PKI {pki_id}.
Show issuer, thumbprint and expiry for every CA under PKI {pki_id}.
POST /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id}/certificateAuthorities Add a certificate authority to a PKI · Create certificateAuthorityDetail #
Ask an LLM
“How do I add a root or intermediate CA to a certificate-based auth PKI?”
“Can I set a certificate revocation list URL when adding a CA?”
Tell an agent
Add certificate authority {certificate} to PKI {pki_id}.
Add a {ca_type} CA named {display_name} to PKI {pki_id} with CRL at {crl_url}.
GET /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id}/certificateAuthorities/{certificateAuthorityDetail-id} Get a certificate authority in a PKI · Get certificateAuthorities from directory #
Ask an LLM
“What are the details of one certificate authority inside a PKI, such as its CRL URL?”
“When does a specific trusted CA in my certificate-based auth setup expire?”
Tell an agent
Get certificate authority {ca_id} from PKI {pki_id}.
Show the expiration date and issuer of CA {ca_id} in PKI {pki_id}.
PATCH /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id}/certificateAuthorities/{certificateAuthorityDetail-id} Update a certificate authority in a PKI · Update certificateAuthorityDetail #
Ask an LLM
“Can I change the revocation list URL of a CA that is already in my PKI?”
“Is it possible to turn issuer hints on or off for an existing certificate authority?”
Tell an agent
Set the CRL URL of CA {ca_id} in PKI {pki_id} to {crl_url}.
Set issuer hints to {hint_enabled} on CA {ca_id} in PKI {pki_id}.
DELETE /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id}/certificateAuthorities/{certificateAuthorityDetail-id} Remove a certificate authority from a PKI · Delete certificateAuthorityDetail #
Ask an LLM
“Can I stop trusting one CA by deleting it from a PKI configuration?”
“What happens to certificate sign-ins when I delete a certificate authority from the PKI?”
Tell an agent destructive · confirm first
Delete certificate authority {ca_id} from PKI {pki_id}.
Remove CA {ca_id} from PKI {pki_id} only if its ETag is {etag}.
GET /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id}/certificateAuthorities/$count Count certificate authorities in a PKI · Get the number of the resource #
Ask an LLM
“How many certificate authorities does one PKI configuration contain?”
“Can I get just the number of CAs under a certificateBasedAuthPki?”
Tell an agent
Count the certificate authorities in PKI {pki_id}.
Return only the CA total for PKI configuration {pki_id}.
POST /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id}/microsoft.graph.upload Upload more certificate authorities to a PKI · Invoke action upload #
Ask an LLM
“How do I bulk-append certificate authorities to a PKI from a file I host?”
“Can I run two CA uploads against the same PKI at once?”
Tell an agent
Upload the CA file at {upload_url} with SHA-256 hash {file_hash} into PKI {pki_id}.
Append certificate authority details from {upload_url} to PKI {pki_id}.
GET /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/$count Count certificate-based auth PKI configurations · Get the number of the resource #
Ask an LLM
“How many PKI configurations exist for certificate-based authentication in my tenant?”
“Is there a quick total of certificateBasedAuthPki objects?”
Tell an agent
Count the certificate-based auth PKI configurations in the directory.
Return only the number of PKI objects under the public key infrastructure root.
POST /directory/publicKeyInfrastructure/certificateBasedAuthConfigurations/{certificateBasedAuthPki-id}/upload Invoke action upload #

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/azure-ad:azure-ad-directory-publickeyinfrastructureroot-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

azure-ad-directory-publickeyinfrastructureroot-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DirectoryObjects Directory.public Key Infrastructure Root…
  version: v1.0
servers:
- url: https://graph.microsoft.com/v1.0/
  description: Core
security:
- azureaadv2: []
tags:


# --- truncated at 32 KB (34 KB total) ---
# Full source: https://artifacts.apis.io/azure-ad/openapi/azure-ad-directory-publickeyinfrastructureroot-api-openapi.yml