Dps Certificate - Delete
Delete the Provisioning Service Certificate.
Deletes the specified certificate associated with the Provisioning Service
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}?api-version=2022-12-12
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}?certificate.name={certificate.name}&certificate.rawBytes={certificate.rawBytes}&certificate.isVerified={certificate.isVerified}&certificate.purpose={certificate.purpose}&certificate.created={certificate.created}&certificate.lastUpdated={certificate.lastUpdated}&certificate.hasPrivateKey={certificate.hasPrivateKey}&certificate.nonce={certificate.nonce}&api-version=2022-12-12
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
certificate
|
path | True |
string |
This is a mandatory field, and is the logical name of the certificate that the provisioning service will access by. |
provisioning
|
path | True |
string |
The name of the provisioning service. |
resource
|
path | True |
string |
Resource group identifier. |
subscription
|
path | True |
string |
The subscription identifier. |
api-version
|
query | True |
string |
The version of the API. |
certificate.
|
query |
string date-time |
Time the certificate is created. |
|
certificate.
|
query |
boolean |
Indicates if the certificate contains a private key. |
|
certificate.
|
query |
boolean |
Indicates if certificate has been verified by owner of the private key. |
|
certificate.
|
query |
string date-time |
Time the certificate is last updated. |
|
certificate.
|
query |
string |
This is optional, and it is the Common Name of the certificate. |
|
certificate.
|
query |
string |
Random number generated to indicate Proof of Possession. |
|
certificate.
|
query |
A description that mentions the purpose of the certificate. |
||
certificate.
|
query |
string byte |
Raw data within the certificate. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
If-Match | True |
string |
ETag of the certificate |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. |
|
204 No Content |
No content. |
|
Other Status Codes |
Default error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
DPSDeleteCertificate
Sample request
DELETE https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/provisioningServices/myFirstProvisioningService/certificates/cert?certificate.name={certificate.name}&certificate.rawBytes={certificate.rawBytes}&certificate.isVerified={certificate.isVerified}&certificate.purpose={certificate.purpose}&certificate.created={certificate.created}&certificate.lastUpdated={certificate.lastUpdated}&certificate.hasPrivateKey={certificate.hasPrivateKey}&certificate.nonce={certificate.nonce}&api-version=2022-12-12
Sample response
Definitions
Name | Description |
---|---|
Certificate |
A description that mentions the purpose of the certificate. |
Error |
Error details. |
CertificatePurpose
A description that mentions the purpose of the certificate.
Name | Type | Description |
---|---|---|
clientAuthentication |
string |
|
serverAuthentication |
string |
ErrorDetails
Error details.
Name | Type | Description |
---|---|---|
code |
integer |
The error code. |
details |
string |
The error details. |
httpStatusCode |
string |
The HTTP status code. |
message |
string |
The error message. |