@azure/keyvault-certificates package
Classes
| CertificateClient |
The client to interact with the KeyVault certificates functionality |
Interfaces
| AdministratorContact |
Details of the organization administrator of the certificate issuer. |
| BackupCertificateResult |
The backup certificate result, containing the backup blob. |
| BeginCreateCertificateOptions |
An interface representing the optional parameters that can be passed to beginCreateCertificate(string, CertificatePolicy, BeginCreateCertificateOptions) |
| CertificateClientOptions |
The optional parameters accepted by the KeyVault's CertificateClient |
| CertificateContactAll |
The shape of the contact information for the vault certificates. |
| CertificateIssuer |
An interface representing the properties of an issuer. |
| CertificateOperation |
A certificate operation is returned in case of asynchronous requests. |
| CertificateOperationError |
The key vault server error. |
| CertificateOperationState |
An interface representing the publicly available properties of the state of the CertificateOperationPoller. |
| CertificatePolicyProperties |
An interface representing a certificate's policy (without the subject properties). |
| CertificatePollerOptions |
An interface representing the optional parameters that can be passed to beginCreateCertificate(string, CertificatePolicy, BeginCreateCertificateOptions), beginDeleteCertificate(string, CertificatePollerOptions) and beginRecoverDeletedCertificate(string, CertificatePollerOptions) |
| CertificateProperties |
An interface representing the properties of a certificate |
| CoreSubjectAlternativeNames |
The subject alternate names of a X509 object. |
| CreateCertificateOptions |
Options for <xref:createCertificate>. |
| CreateIssuerOptions |
Options for createIssuer(string, string, CreateIssuerOptions). |
| DeletedCertificate |
An interface representing a deleted certificate. |
| ErrorModel |
The key vault server error model. |
| ImportCertificateOptions |
Options for importCertificate(string, Uint8Array, ImportCertificateOptions). |
| IssuerAttributes |
The attributes of an issuer managed by the Key Vault service. |
| IssuerCredentials |
The credentials to be used for the certificate issuer. |
| IssuerParameters |
Parameters for the issuer of the X509 component of a certificate. |
| IssuerProperties |
An interface representing the properties of a certificate issuer |
| KeyVaultCertificate |
An interface representing a certificate without the certificate's policy |
| KeyVaultCertificateIdentifier |
Represents the segments that compose a Key Vault Certificate Id. |
| KeyVaultCertificatePollOperationState |
An interface representing the public shape of the state of a Key Vault Certificate Poller's operations. |
| KeyVaultCertificateWithPolicy |
An interface representing a certificate with its policy |
| LifetimeAction |
Action and its trigger that will be performed by Key Vault over the lifetime of a certificate. |
| ListDeletedCertificatesOptions |
An interface representing optional parameters for CertificateClient paged operations passed to listDeletedCertificates(ListDeletedCertificatesOptions). |
| ListPropertiesOfCertificatesOptions |
An interface representing optional parameters for CertificateClient paged operations passed to listPropertiesOfCertificates(ListPropertiesOfCertificatesOptions). |
| PolicySubjectProperties |
An interface representing the possible subject properties of a certificate's policy. The final type requires at least one of these properties to exist. |
| PollerLike |
Abstract representation of a poller, intended to expose just the minimal API that the user needs to work with. |
| PollerLikeWithCancellation |
Abstract representation of a poller, intended to expose just the minimal API that the user needs to work with. |
| SubjectAlternativeNamesAll |
An interface representing the alternative names of the subject of a certificate policy. |
| UpdateCertificateOptions |
Options for <xref:updateCertificate>. |
| UpdateIssuerOptions |
Options for updateIssuer(string, UpdateIssuerOptions). |
| X509CertificateProperties |
Properties of the X509 component of a certificate. |
Type Aliases
| ActionType |
The action that will be executed. |
| ArrayOneOrMore |
An array with one property at minimum. |
| BackupCertificateOptions |
Options for backupCertificate(string, OperationOptions). |
| BeginDeleteCertificateOptions |
An interface representing the optional parameters that can be passed to beginDeleteCertificate(string, CertificatePollerOptions) |
| BeginRecoverDeletedCertificateOptions |
An interface representing the optional parameters that can be passed to beginRecoverDeletedCertificate(string, CertificatePollerOptions) |
| CancelCertificateOperationOptions |
Options for <xref:cancelCertificateOperation>. |
| CertificateContact |
The contact information for the vault certificates. Each contact will have at least just one of the properties of CertificateContactAll, which are: emailAddress, name or phone. |
| CertificateContentType |
Defines values for contentType. Possible values include: 'application/x-pem-file', 'application/x-pkcs12' |
| CertificateKeyCurveName |
Elliptic curve name. For valid values, see JsonWebKeyCurveName. Known values supported by the serviceP-256: The NIST P-256 elliptic curve, AKA SECG curve SECP256R1. |
| CertificateKeyType |
The type of key pair to be used for the certificate. Known values supported by the serviceEC: Elliptic Curve. |
| CertificatePolicy |
An type representing a certificate's policy with at least one of the subject properties. |
| CertificatePolicyAction |
The action that will be executed. |
| CertificateTags |
An interface representing the shape of the Certificate Tags. The tags are just string key-value pairs. |
| CreateCertificateState |
The public representation of the CreateCertificatePoller operation state. |
| DeleteCertificateOperationOptions |
Options for deleteCertificateOperation(string, OperationOptions). |
| DeleteCertificateState |
The public representation of the DeleteCertificatePoller operation state. |
| DeleteContactsOptions |
Options for deleteContacts(OperationOptions). |
| DeleteIssuerOptions |
Options for deleteIssuer(string, OperationOptions). |
| DeletionRecoveryLevel |
Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the system can purge the secret, at the end of the retention interval. Known values supported by the servicePurgeable: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) |
| GetCertificateOperationOptions |
Options for getCertificateOperation(string, CertificatePollerOptions). |
| GetCertificateOptions |
Options for getCertificate(string, OperationOptions). |
| GetCertificatePolicyOptions |
Options for getCertificatePolicy(string, OperationOptions). |
| GetCertificateVersionOptions |
Options for getCertificateVersion(string, string, OperationOptions). |
| GetContactsOptions |
Options for getContacts(OperationOptions). |
| GetDeletedCertificateOptions |
Options for getDeletedCertificate(string, OperationOptions). |
| GetIssuerOptions |
Options for getIssuer(string, OperationOptions). |
| GetPlainCertificateOperationOptions |
Options for <xref:getPlainCertificateOperation>. |
| ImportCertificatePolicy |
A type representing a certificate's policy for import which does not require a SAN or a Subject |
| KVPollerLike |
Deprecated KeyVault copy of core-lro's PollerLike. |
| KeyUsageType |
Supported usages of a certificate key. Known values supported by the servicedigitalSignature: Indicates that the certificate key can be used as a digital signature. |
| ListPropertiesOfCertificateVersionsOptions |
An interface representing optional parameters for CertificateClient paged operations passed to listPropertiesOfCertificateVersions(string, OperationOptions). |
| ListPropertiesOfIssuersOptions |
An interface representing optional parameters for CertificateClient paged operations passed to listPropertiesOfIssuers(OperationOptions). |
| MergeCertificateOptions |
An interface representing optional parameters for mergeCertificate(string, Uint8Array[], OperationOptions). |
| PurgeDeletedCertificateOptions |
Options for purgeDeletedCertificate(string, OperationOptions). |
| RecoverDeletedCertificateState |
Deprecated: Public representation of the recovery of a deleted certificate poll operation |
| RequireAtLeastOne |
RequireAtLeastOne helps create a type where at least one of the properties of an interface (can be any property) is required to exist. This works because of TypeScript's utility types: https://www.typescriptlang.org/docs/handbook/utility-types.html Let's examine it:
|
| RestoreCertificateBackupOptions |
An interface representing optional parameters for restoreCertificateBackup(Uint8Array, OperationOptions). |
| SetContactsOptions |
Options for setContacts(CertificateContact[], OperationOptions). |
| SubjectAlternativeNames |
Alternatives to the subject property. If present, it should at least have one of the properties of SubjectAlternativeNamesAll. |
| UpdateCertificatePolicyOptions |
Options for updateCertificatePolicy(string, CertificatePolicy, OperationOptions). |
Enums
| KnownCertificateKeyCurveNames |
Known values of CertificateKeyCurveName that the service accepts. |
| KnownCertificateKeyTypes |
Known values of CertificateKeyType that the service accepts. |
| KnownDeletionRecoveryLevels |
Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the system can purge the secret, at the end of the retention interval. |
| KnownKeyUsageTypes |
Known values of KeyUsageType that the service accepts. |
| WellKnownIssuer |
Well known issuers for choosing a default |
Functions
| parse |
Parses the given Key Vault Certificate Id. An example is: https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id> On parsing the above Id, this function returns:
|
Function Details
parseKeyVaultCertificateIdentifier(string)
Parses the given Key Vault Certificate Id. An example is:
https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>
On parsing the above Id, this function returns:
{
sourceId: "https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>",
vaultUrl: "https://<keyvault-name>.vault.azure.net",
version: "<unique-version-id>",
name: "<certificate-name>"
}
function parseKeyVaultCertificateIdentifier(id: string): KeyVaultCertificateIdentifier
Parameters
- id
-
string
The Id of the Key Vault Certificate.