You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

REST API Method: POST /rest/certificate/{identifier}?action=import

This resource imports a server or trusted CA certificate to a Sonus SBC node. Certificate ID 1 is the server certificate, any other ID is a trusted CA certificate.

URL:

https://134.56.227.163/rest/certificate/{identifier}?action=import

HTTP Method

POST

Requires Authentication:

true



Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
CertFileOperationYesNoEnum0Possible values:
  • 0 - certOperationUnknown
  • 1 - certOperationCopyAndPaste
  • 2 - certOperationFileUpload
Specifies the mode to be used for uploading the certificate file.
  • Copy and Paste
    - Indicates copy and paste of the base64 encoded content from the signed server certificate file.
  • File Upload
    - Indicates the name of the file to be uploaded with allowable file type extension such as pem, der, cer, ber and p7b.
CertFileContentYesNostringnone10000 - Max Length Indicates copy and paste of the entire data to be copied from a base64 encoded signed server certificate file.
CertFileNameYesNostringnone80 - Max Length Indicates the name of the file to be uploaded with allowable file type extension such as pem, der, cer, ber and p7b.

Usage Example: (about cURL | requires a session token)

Put code example here

Response:

Put Code response here
  • No labels