Microsoft Azure App Service Site Certificates API
The SiteCertificates API from Microsoft Azure App Service — 4 operation(s) for sitecertificates.
The SiteCertificates API from Microsoft Azure App Service — 4 operation(s) for sitecertificates.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/microsoft-azure-app-service:microsoft-azure-app-service-sitecertificates-api"
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.
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: 3.2.0
info:
title: WebApps API Client Site Certificates API
version: '2026-08-01'
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: SiteCertificates
paths:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates:
get:
operationId: SiteCertificates_List
tags:
- SiteCertificates
summary: Get all certificates in a resource group under a site
description: Get all certificates in a resource group under a site.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/CertificateCollection'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}
: get:
operationId: SiteCertificates_Get
tags:
- SiteCertificates
summary: Get a certificate belonging to a given site
description: Get a certificate belonging to a given site.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: certificateName
in: path
description: Name of the certificate.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
put:
operationId: SiteCertificates_CreateOrUpdate
tags:
- SiteCertificates
summary: Create or update a certificate under a given site
description: Create or update a certificate under a given site.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: certificateName
in: path
description: Name of the certificate.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Resource 'Certificate' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
'201':
description: Resource 'Certificate' create operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
description: Details of certificate, if it exists already.
required: true
patch:
operationId: SiteCertificates_Update
tags:
- SiteCertificates
summary: Create or update a certificate under a given site
description: Create or update a certificate under a given site.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: certificateName
in: path
description: Name of the certificate.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CertificatePatchResource'
description: Details of certificate, if it exists already.
required: true
delete:
operationId: SiteCertificates_Delete
tags:
- SiteCertificates
summary: Delete a certificate from the site
description: Delete a certificate from the site.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: certificateName
in: path
description: Name of the certificate.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Resource deleted successfully.
'204':
description: Resource does not exist.
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates
: get:
operationId: SiteCertificates_ListSlot
tags:
- SiteCertificates
summary: Get all certificates in a resource group for a given site and a deployment slot
description: Get all certificates in a resource group for a given site and a deployment slot.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: slot
in: path
description: Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/CertificateCollection'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}
: get:
operationId: SiteCertificates_GetSlot
tags:
- SiteCertificates
summary: Get a certificate for a given site and deployment slot
description: Get a certificate for a given site and deployment slot.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: slot
in: path
description: Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
required: true
schema:
type: string
- name: certificateName
in: path
description: Name of the certificate.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
put:
operationId: SiteCertificates_CreateOrUpdateSlot
tags:
- SiteCertificates
summary: Create or update a certificate in a given site and deployment slot
description: Create or update a certificate in a given site and deployment slot.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: slot
in: path
description: Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
required: true
schema:
type: string
- name: certificateName
in: path
description: Name of the certificate.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Resource 'Certificate' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
'201':
description: Resource 'Certificate' create operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
description: Details of certificate, if it exists already.
required: true
patch:
operationId: SiteCertificates_UpdateSlot
tags:
- SiteCertificates
summary: Create or update a certificate for a site and deployment slot
description: Create or update a certificate for a site and deployment slot.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: slot
in: path
description: Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
required: true
schema:
type: string
- name: certificateName
in: path
description: Name of the certificate.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/Certificate'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CertificatePatchResource'
description: Details of certificate, if it exists already.
required: true
delete:
operationId: SiteCertificates_DeleteSlot
tags:
- SiteCertificates
summary: Delete a certificate for a given site and deployment slot
description: Delete a certificate for a given site and deployment slot.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: name
in: path
description: Name of the site.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
- name: slot
in: path
description: Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
required: true
schema:
type: string
- name: certificateName
in: path
description: Name of the certificate.
required: true
schema:
type: string
pattern: ^[A-z][A-z0-9]*$
responses:
'200':
description: Resource deleted successfully.
'204':
description: Resource does not exist.
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponse'
components:
schemas:
DefaultErrorResponseErrorDetailsItem:
type: object
description: Detailed errors.
properties:
code:
type: string
description: Standardized string to programmatically identify the error.
readOnly: true
message:
type: string
description: Detailed error description and debugging information.
readOnly: true
target:
type: string
description: Detailed error description and debugging information.
readOnly: true
KeyVaultSecretStatus:
type: string
description: Status of the Key Vault secret.
enum:
- Initialized
- WaitingOnCertificateOrder
- Succeeded
- CertificateOrderFailed
- OperationNotPermittedOnKeyVault
- AzureServiceUnauthorizedToAccessKeyVault
- KeyVaultDoesNotExist
- KeyVaultSecretDoesNotExist
- UnknownError
- ExternalPrivateKey
- Unknown
x-ms-enum:
name: KeyVaultSecretStatus
modelAsString: false
Resource:
type: object
title: Resource
description: Common fields that are returned in the response for all Azure Resource Manager resources
properties:
id:
type: string
format: arm-id
description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
readOnly: true
name:
type: string
description: The name of the resource
readOnly: true
type:
type: string
description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
readOnly: true
systemData:
$ref: '#/components/schemas/systemData'
description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
readOnly: true
x-ms-azure-resource: true
DefaultErrorResponseError:
type: object
description: Error model.
properties:
code:
type: string
description: Standardized string to programmatically identify the error.
readOnly: true
message:
type: string
description: Detailed error description and debugging information.
readOnly: true
target:
type: string
description: Detailed error description and debugging information.
readOnly: true
details:
type: array
items:
$ref: '#/components/schemas/DefaultErrorResponseErrorDetailsItem'
x-ms-identifiers: []
innererror:
type: string
description: More information to debug error.
readOnly: true
CertificatePatchResourceProperties:
type: object
description: CertificatePatchResource resource specific properties
properties:
password:
type: string
description: Certificate password.
readOnly: true
friendlyName:
type: string
description: Friendly name of the certificate.
readOnly: true
subjectName:
type: string
description: Subject name of the certificate.
readOnly: true
hostNames:
type: array
description: Host names the certificate applies to.
items:
type: string
pfxBlob:
type: string
format: byte
description: Pfx blob.
siteName:
type: string
description: App name.
readOnly: true
selfLink:
type: string
description: Self link.
readOnly: true
issuer:
type: string
description: Certificate issuer.
readOnly: true
issueDate:
type: string
format: date-time
description: Certificate issue Date.
readOnly: true
expirationDate:
type: string
format: date-time
description: Certificate expiration date.
readOnly: true
thumbprint:
type: string
description: Certificate thumbprint.
readOnly: true
valid:
type: boolean
description: Is the certificate valid?.
readOnly: true
cerBlob:
type: string
format: byte
description: Raw bytes of .cer file
readOnly: true
publicKeyHash:
type: string
description: Public key hash.
readOnly: true
hostingEnvironmentProfile:
$ref: '#/components/schemas/HostingEnvironmentProfile'
description: Specification for the App Service Environment to use for the certificate.
readOnly: true
keyVaultId:
type: string
description: Key Vault Csm resource Id.
keyVaultSecretName:
type: string
description: Key Vault secret name.
keyVaultSecretStatus:
$ref: '#/components/schemas/KeyVaultSecretStatus'
description: Status of the Key Vault secret.
readOnly: true
serverFarmId:
type: string
description: 'Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".'
canonicalName:
type: string
description: CNAME of the certificate to be issued via free certificate
domainValidationMethod:
type: string
description: Method of domain validation for free cert
HostingEnvironmentProfile:
type: object
description: Specification for an App Service Environment to use for this resource.
properties:
id:
type: string
description: Resource ID of the App Service Environment.
name:
type: string
description: Name of the App Service Environment.
readOnly: true
type:
type: string
description: Resource type of the App Service Environment.
readOnly: true
CertificateCollection:
type: object
description: Collection of certificates.
properties:
value:
type: array
description: The Certificate items on this page
items:
$ref: '#/components/schemas/Certificate'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
CertificatePatchResource:
type: object
description: ARM resource for a certificate.
properties:
properties:
$ref: '#/components/schemas/CertificatePatchResourceProperties'
description: CertificatePatchResource resource specific properties
x-ms-client-flatten: true
allOf:
- $ref: '#/components/schemas/ProxyOnlyResource'
CertificateProperties:
type: object
description: Certificate resource specific properties
properties:
password:
type: string
description: Certificate password.
friendlyName:
type: string
description: Friendly name of the certificate.
readOnly: true
subjectName:
type: string
description: Subject name of the certificate.
readOnly: true
hostNames:
type: array
description: Host names the certificate applies to.
items:
type: string
pfxBlob:
type: string
format: byte
description: Pfx blob.
siteName:
type: string
description: App name.
readOnly: true
selfLink:
type: string
description: Self link.
readOnly: true
issuer:
type: string
description: Certificate issuer.
readOnly: true
issueDate:
type: string
format: date-time
description: Certificate issue Date.
readOnly: true
expirationDate:
type: string
format: date-time
description: Certificate expiration date.
readOnly: true
thumbprint:
type: string
description: Certificate thumbprint.
readOnly: true
valid:
type: boolean
description: Is the certificate valid?.
readOnly: true
cerBlob:
type: string
format: byte
description: Raw bytes of .cer file
readOnly: true
publicKeyHash:
type: string
description: Public key hash.
readOnly: true
hostingEnvironmentProfile:
$ref: '#/components/schemas/HostingEnvironmentProfile'
description: Specification for the App Service Environment to use for the certificate.
readOnly: true
keyVaultId:
type: string
format: arm-id
description: Azure Key Vault Csm resource Id.
x-ms-arm-id-details:
allowedResources:
- type: Microsoft.KeyVault/vaults
keyVaultSecretName:
type: string
description: Azure Key Vault secret name.
keyVaultSecretStatus:
$ref: '#/components/schemas/KeyVaultSecretStatus'
description: Status of the Key Vault secret.
readOnly: true
serverFarmId:
type: string
format: arm-id
description: Resource ID of the associated App Service plan.
x-ms-arm-id-details:
allowedResources:
- type: Microsoft.Web/serverfarms
canonicalName:
type: string
description: CNAME of the certificate to be issued via free certificate
domainValidationMethod:
type: string
description: Method of domain validation for free cert
TrackedResource:
type: object
title: Tracked Resource
description: The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
properties:
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
x-ms-mutability:
- read
- create
- update
location:
type: string
description: The geo-location where the resource lives
x-ms-mutability:
- read
- create
required:
- location
allOf:
- $ref: '#/components/schemas/Resource'
ProxyOnlyResource:
type: object
description: Azure proxy only resource. This resource is not tracked by Azure Resource Manager.
properties:
id:
type: string
description: Resource Id.
readOnly: true
name:
type: string
description: Resource Name.
readOnly: true
kind:
type: string
description: Kind of resource.
type:
type: string
description: Resource type.
readOnly: true
Certificate:
type: object
description: SSL certificate for an app.
properties:
properties:
$ref: '#/components/schemas/CertificateProperties'
description: Certificate resource specific properties
x-ms-client-flatten: true
kind:
type: string
description: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.
allOf:
- $ref: '#/components/schemas/TrackedResource'
DefaultErrorResponse:
type: object
description: App Service error response.
properties:
error:
$ref: '#/components/schemas/DefaultErrorResponseError'
description: Error model.
readOnly: true
parameters:
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
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.