Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Page Tree
rootResource - certificate

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 LengthIndicates copy and paste of the entire data to be copied from a base64 encoded signed server certificate file.
CertFileNameYesNostringnone80 - Max LengthIndicates 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)

Code Block
languagebash
Put code example here

Response:

Code Block
languagehtml/xml
Put Code response here