Microsoft.KeyVault (stable:7.5)

2025/07/10 • 11 updated methods

DeleteCertificate (updated)
Description Deletes all versions of a certificate object along with its associated policy. Delete certificate cannot be used to remove individual versions of a certificate object. This operation requires the certificates/delete permission.
Reference Link ¶

⚶ Changes

{
  "#id": "DeleteCertificate",
  "$responses": {
    "200": {
      "$properties": [
        {
          "policy": [
            {
              "x509_props": [
                {
                  "sans": [
                    {
                      "#name": "dns_names",
                      "Description": {
                        "new": "Domain Names.",
                        "old": "Domain names."
                      }
                    },
                    {
                      "#name": "upns",
                      "Description": {
                        "new": "User Principal Names.",
                        "old": "User principal names."
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "#name": "contentType",
          "Description": {
            "new": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.",
            "old": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12',"
          }
        },
        {
          "#name": "tags",
          "Description": {
            "new": "Application specific metadata in the form of key-value pairs.",
            "old": "Application specific metadata in the form of key-value pairs"
          }
        }
      ]
    }
  }
}

⚼ Request

DELETE:  /certificates/{certificate-name}
{
api-version: string ,
certificate-name: string ,
}

⚐ Response (200)

{
id: string ,
kid: string ,
sid: string ,
x5t: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
cer: string ,
contentType: string ,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
recoveryId: string ,
scheduledPurgeDate: integer ,
deletedDate: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
GetCertificate (updated)
Description Gets information about a specific certificate. This operation requires the certificates/get permission.
Reference Link ¶

⚶ Changes

{
  "#id": "GetCertificate",
  "$responses": {
    "200": {
      "$properties": [
        {
          "policy": [
            {
              "x509_props": [
                {
                  "sans": [
                    {
                      "#name": "dns_names",
                      "Description": {
                        "new": "Domain Names.",
                        "old": "Domain names."
                      }
                    },
                    {
                      "#name": "upns",
                      "Description": {
                        "new": "User Principal Names.",
                        "old": "User principal names."
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "#name": "contentType",
          "Description": {
            "new": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.",
            "old": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12',"
          }
        },
        {
          "#name": "tags",
          "Description": {
            "new": "Application specific metadata in the form of key-value pairs.",
            "old": "Application specific metadata in the form of key-value pairs"
          }
        }
      ]
    }
  }
}

⚼ Request

GET:  /certificates/{certificate-name}/{certificate-version}
{
api-version: string ,
certificate-name: string ,
certificate-version: string ,
}

⚐ Response (200)

{
id: string ,
kid: string ,
sid: string ,
x5t: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
cer: string ,
contentType: string ,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
UpdateCertificate (updated)
Description The UpdateCertificate operation applies the specified update on the given certificate; the only elements updated are the certificate's attributes. This operation requires the certificates/update permission.
Reference Link ¶

⚶ Changes

{
  "#id": "UpdateCertificate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "policy": [
          {
            "x509_props": [
              {
                "sans": [
                  {
                    "#name": "dns_names",
                    "Description": {
                      "new": "Domain Names.",
                      "old": "Domain names."
                    }
                  },
                  {
                    "#name": "upns",
                    "Description": {
                      "new": "User Principal Names.",
                      "old": "User principal names."
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": [
        {
          "policy": [
            {
              "x509_props": [
                {
                  "sans": [
                    {
                      "#name": "dns_names",
                      "Description": {
                        "new": "Domain Names.",
                        "old": "Domain names."
                      }
                    },
                    {
                      "#name": "upns",
                      "Description": {
                        "new": "User Principal Names.",
                        "old": "User principal names."
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "#name": "contentType",
          "Description": {
            "new": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.",
            "old": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12',"
          }
        },
        {
          "#name": "tags",
          "Description": {
            "new": "Application specific metadata in the form of key-value pairs.",
            "old": "Application specific metadata in the form of key-value pairs"
          }
        }
      ]
    }
  }
}

⚼ Request

PATCH:  /certificates/{certificate-name}/{certificate-version}
{
api-version: string ,
certificate-name: string ,
certificate-version: string ,
parameters:
{
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}
,
}

⚐ Response (200)

{
id: string ,
kid: string ,
sid: string ,
x5t: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
cer: string ,
contentType: string ,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
CreateCertificate (updated)
Description If this is the first version, the certificate resource is created. This operation requires the certificates/create permission.
Reference Link ¶

⚶ Changes

{
  "#id": "CreateCertificate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "policy": [
          {
            "x509_props": [
              {
                "sans": [
                  {
                    "#name": "dns_names",
                    "Description": {
                      "new": "Domain Names.",
                      "old": "Domain names."
                    }
                  },
                  {
                    "#name": "upns",
                    "Description": {
                      "new": "User Principal Names.",
                      "old": "User principal names."
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /certificates/{certificate-name}/create
{
api-version: string ,
certificate-name: string ,
parameters:
{
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}
,
}

⚐ Response (202)

{
id: string ,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
csr: string ,
cancellation_requested: boolean ,
status: string ,
status_details: string ,
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
target: string ,
request_id: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
ImportCertificate (updated)
Description Imports an existing valid certificate, containing a private key, into Azure Key Vault. This operation requires the certificates/import permission. The certificate to be imported can be in either PFX or PEM format. If the certificate is in PEM format the PEM file must contain the key as well as x509 certificates. Key Vault will only accept a key in PKCS#8 format.
Reference Link ¶

⚶ Changes

{
  "#id": "ImportCertificate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "policy": [
          {
            "x509_props": [
              {
                "sans": [
                  {
                    "#name": "dns_names",
                    "Description": {
                      "new": "Domain Names.",
                      "old": "Domain names."
                    }
                  },
                  {
                    "#name": "upns",
                    "Description": {
                      "new": "User Principal Names.",
                      "old": "User principal names."
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": [
        {
          "policy": [
            {
              "x509_props": [
                {
                  "sans": [
                    {
                      "#name": "dns_names",
                      "Description": {
                        "new": "Domain Names.",
                        "old": "Domain names."
                      }
                    },
                    {
                      "#name": "upns",
                      "Description": {
                        "new": "User Principal Names.",
                        "old": "User principal names."
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "#name": "contentType",
          "Description": {
            "new": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.",
            "old": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12',"
          }
        },
        {
          "#name": "tags",
          "Description": {
            "new": "Application specific metadata in the form of key-value pairs.",
            "old": "Application specific metadata in the form of key-value pairs"
          }
        }
      ]
    }
  }
}

⚼ Request

POST:  /certificates/{certificate-name}/import
{
api-version: string ,
certificate-name: string ,
parameters:
{
value: string ,
pwd: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}
,
}

⚐ Response (200)

{
id: string ,
kid: string ,
sid: string ,
x5t: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
cer: string ,
contentType: string ,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
MergeCertificate (updated)
Description The MergeCertificate operation performs the merging of a certificate or certificate chain with a key pair currently available in the service. This operation requires the certificates/create permission.
Reference Link ¶

⚶ Changes

{
  "#id": "MergeCertificate",
  "$responses": {
    "201": {
      "$properties": [
        {
          "policy": [
            {
              "x509_props": [
                {
                  "sans": [
                    {
                      "#name": "dns_names",
                      "Description": {
                        "new": "Domain Names.",
                        "old": "Domain names."
                      }
                    },
                    {
                      "#name": "upns",
                      "Description": {
                        "new": "User Principal Names.",
                        "old": "User principal names."
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "#name": "contentType",
          "Description": {
            "new": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.",
            "old": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12',"
          }
        },
        {
          "#name": "tags",
          "Description": {
            "new": "Application specific metadata in the form of key-value pairs.",
            "old": "Application specific metadata in the form of key-value pairs"
          }
        }
      ]
    }
  }
}

⚼ Request

POST:  /certificates/{certificate-name}/pending/merge
{
api-version: string ,
certificate-name: string ,
parameters:
{
x5c:
[
string ,
]
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}
,
}

⚐ Response (201)

{
id: string ,
kid: string ,
sid: string ,
x5t: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
cer: string ,
contentType: string ,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
GetCertificatePolicy (updated)
Description The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission.
Reference Link ¶

⚶ Changes

{
  "#id": "GetCertificatePolicy",
  "$responses": {
    "200": {
      "$properties": {
        "x509_props": [
          {
            "sans": [
              {
                "#name": "dns_names",
                "Description": {
                  "new": "Domain Names.",
                  "old": "Domain names."
                }
              },
              {
                "#name": "upns",
                "Description": {
                  "new": "User Principal Names.",
                  "old": "User principal names."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /certificates/{certificate-name}/policy
{
api-version: string ,
certificate-name: string ,
}

⚐ Response (200)

{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
UpdateCertificatePolicy (updated)
Description Set specified members in the certificate policy. Leave others as null. This operation requires the certificates/update permission.
Reference Link ¶

⚶ Changes

{
  "#id": "UpdateCertificatePolicy",
  "$parameters": {
    "certificatePolicy": {
      "$properties": {
        "x509_props": [
          {
            "sans": [
              {
                "#name": "dns_names",
                "Description": {
                  "new": "Domain Names.",
                  "old": "Domain names."
                }
              },
              {
                "#name": "upns",
                "Description": {
                  "new": "User Principal Names.",
                  "old": "User principal names."
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "x509_props": [
          {
            "sans": [
              {
                "#name": "dns_names",
                "Description": {
                  "new": "Domain Names.",
                  "old": "Domain names."
                }
              },
              {
                "#name": "upns",
                "Description": {
                  "new": "User Principal Names.",
                  "old": "User principal names."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /certificates/{certificate-name}/policy
{
api-version: string ,
certificate-name: string ,
certificatePolicy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RestoreCertificate (updated)
Description Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission.
Reference Link ¶

⚶ Changes

{
  "#id": "RestoreCertificate",
  "$responses": {
    "200": {
      "$properties": [
        {
          "policy": [
            {
              "x509_props": [
                {
                  "sans": [
                    {
                      "#name": "dns_names",
                      "Description": {
                        "new": "Domain Names.",
                        "old": "Domain names."
                      }
                    },
                    {
                      "#name": "upns",
                      "Description": {
                        "new": "User Principal Names.",
                        "old": "User principal names."
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "#name": "contentType",
          "Description": {
            "new": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.",
            "old": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12',"
          }
        },
        {
          "#name": "tags",
          "Description": {
            "new": "Application specific metadata in the form of key-value pairs.",
            "old": "Application specific metadata in the form of key-value pairs"
          }
        }
      ]
    }
  }
}

⚼ Request

POST:  /certificates/restore
{
api-version: string ,
parameters:
{
value: string ,
}
,
}

⚐ Response (200)

{
id: string ,
kid: string ,
sid: string ,
x5t: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
cer: string ,
contentType: string ,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
GetDeletedCertificate (updated)
Description The GetDeletedCertificate operation retrieves the deleted certificate information plus its attributes, such as retention interval, scheduled permanent deletion and the current deletion recovery level. This operation requires the certificates/get permission.
Reference Link ¶

⚶ Changes

{
  "#id": "GetDeletedCertificate",
  "$responses": {
    "200": {
      "$properties": [
        {
          "policy": [
            {
              "x509_props": [
                {
                  "sans": [
                    {
                      "#name": "dns_names",
                      "Description": {
                        "new": "Domain Names.",
                        "old": "Domain names."
                      }
                    },
                    {
                      "#name": "upns",
                      "Description": {
                        "new": "User Principal Names.",
                        "old": "User principal names."
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "#name": "contentType",
          "Description": {
            "new": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.",
            "old": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12',"
          }
        },
        {
          "#name": "tags",
          "Description": {
            "new": "Application specific metadata in the form of key-value pairs.",
            "old": "Application specific metadata in the form of key-value pairs"
          }
        }
      ]
    }
  }
}

⚼ Request

GET:  /deletedcertificates/{certificate-name}
{
api-version: string ,
certificate-name: string ,
}

⚐ Response (200)

{
id: string ,
kid: string ,
sid: string ,
x5t: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
cer: string ,
contentType: string ,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
recoveryId: string ,
scheduledPurgeDate: integer ,
deletedDate: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RecoverDeletedCertificate (updated)
Description The RecoverDeletedCertificate operation performs the reversal of the Delete operation. The operation is applicable in vaults enabled for soft-delete, and must be issued during the retention interval (available in the deleted certificate's attributes). This operation requires the certificates/recover permission.
Reference Link ¶

⚶ Changes

{
  "#id": "RecoverDeletedCertificate",
  "$responses": {
    "200": {
      "$properties": [
        {
          "policy": [
            {
              "x509_props": [
                {
                  "sans": [
                    {
                      "#name": "dns_names",
                      "Description": {
                        "new": "Domain Names.",
                        "old": "Domain names."
                      }
                    },
                    {
                      "#name": "upns",
                      "Description": {
                        "new": "User Principal Names.",
                        "old": "User principal names."
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "#name": "contentType",
          "Description": {
            "new": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.",
            "old": "The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12',"
          }
        },
        {
          "#name": "tags",
          "Description": {
            "new": "Application specific metadata in the form of key-value pairs.",
            "old": "Application specific metadata in the form of key-value pairs"
          }
        }
      ]
    }
  }
}

⚼ Request

POST:  /deletedcertificates/{certificate-name}/recover
{
api-version: string ,
certificate-name: string ,
}

⚐ Response (200)

{
id: string ,
kid: string ,
sid: string ,
x5t: string ,
policy:
{
id: string ,
key_props:
{
exportable: boolean ,
kty: enum ,
key_size: integer ,
reuse_key: boolean ,
crv: enum ,
}
,
secret_props:
{
contentType: string ,
}
,
x509_props:
{
subject: string ,
ekus:
[
string ,
]
,
sans:
{
emails:
[
string ,
]
,
dns_names:
[
string ,
]
,
upns:
[
string ,
]
,
}
,
key_usage:
[
string ,
]
,
validity_months: integer ,
}
,
lifetime_actions:
[
{
trigger:
{
lifetime_percentage: integer ,
days_before_expiry: integer ,
}
,
action:
{
action_type: enum ,
}
,
}
,
]
,
issuer:
{
name: string ,
cty: string ,
cert_transparency: boolean ,
}
,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
}
,
cer: string ,
contentType: string ,
attributes:
{
enabled: boolean ,
nbf: integer ,
exp: integer ,
created: integer ,
updated: integer ,
recoverableDays: integer ,
recoveryLevel: enum ,
}
,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}