CertificatesOperations interface

Interface representing a Certificates operations.

Properties

createOrUpdate

Adds new or replaces existing certificate.

delete

Deletes an existing X509 certificate or does nothing if it does not exist.

generateVerificationCode

Generates verification code for proof of possession flow. The verification code will be used to generate a leaf certificate.

get

Returns the certificate.

listByIotHub

Returns the list of certificates.

verify

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.

Property Details

createOrUpdate

Adds new or replaces existing certificate.

createOrUpdate: (resourceGroupName: string, resourceName: string, certificateName: string, certificateDescription: CertificateDescription, options?: CertificatesCreateOrUpdateOptionalParams) => Promise<CertificateDescription>

Property Value

(resourceGroupName: string, resourceName: string, certificateName: string, certificateDescription: CertificateDescription, options?: CertificatesCreateOrUpdateOptionalParams) => Promise<CertificateDescription>

delete

Deletes an existing X509 certificate or does nothing if it does not exist.

delete: (resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: CertificatesDeleteOptionalParams) => Promise<void>

Property Value

(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: CertificatesDeleteOptionalParams) => Promise<void>

generateVerificationCode

Generates verification code for proof of possession flow. The verification code will be used to generate a leaf certificate.

generateVerificationCode: (resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: CertificatesGenerateVerificationCodeOptionalParams) => Promise<CertificateWithNonceDescription>

Property Value

(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: CertificatesGenerateVerificationCodeOptionalParams) => Promise<CertificateWithNonceDescription>

get

Returns the certificate.

get: (resourceGroupName: string, resourceName: string, certificateName: string, options?: CertificatesGetOptionalParams) => Promise<CertificateDescription>

Property Value

(resourceGroupName: string, resourceName: string, certificateName: string, options?: CertificatesGetOptionalParams) => Promise<CertificateDescription>

listByIotHub

Returns the list of certificates.

listByIotHub: (resourceGroupName: string, resourceName: string, options?: CertificatesListByIotHubOptionalParams) => Promise<CertificateListDescription>

Property Value

(resourceGroupName: string, resourceName: string, options?: CertificatesListByIotHubOptionalParams) => Promise<CertificateListDescription>

verify

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.

verify: (resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, certificateVerificationBody: CertificateVerificationDescription, options?: CertificatesVerifyOptionalParams) => Promise<CertificateDescription>

Property Value

(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, certificateVerificationBody: CertificateVerificationDescription, options?: CertificatesVerifyOptionalParams) => Promise<CertificateDescription>