Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TrustedCertificateService

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

create

  • Parameters

    Returns Promise<IResult<ITrustedCertificate>>

    Response wrapped in IResult

    Example

    
     const certificate: Partial<ITrustedCertificate> = {
       name: 'Name',
       certInPemFormat: 'MIID+DCCAuCgAwIBAgIJAO1Q9t/M9gYlMA0GC...',
       status: 'ENABLED'
     };
    
     (async () => {
       const {data, res} = await trustedCertificateService.create(certificate);
     })();
    

delete

  • Parameters

    Returns Promise<IResult<null>>

    Response wrapped in IResult

detail

  • Parameters

    Returns Promise<IResult<ITrustedCertificate>>

    Response wrapped in IResult

    Example

    
       const fingerprint: string = 'abc';
    
       (async () => {
         const {data, res} = await trustedCertificateService.detail(fingerprint);
      })();
    

list

  • Parameters

    • Default value filter: object = {}

    Returns Promise<IResultList<ITrustedCertificate>>

    Response wrapped in IResultList.

    Example

    
      (async () => {
        const {data, res} = await trustedCertificateService.list();
      })();
    

update

  • Parameters

    Returns Promise<IResult<ITrustedCertificate>>

    Response wrapped in IResult

    Example

    
     const certificate: Partial<ITrustedCertificate> = {
       name: 'Name'
     };
    
     (async () => {
       const {data, res} = await trustedCertificateService.update(certificate);
     })();
    

Generated using TypeDoc