TLS Context Files

The /files/tls URL provides access to the device certificates, private key and trusted root certificates of the TLS context.

URL

/api/v1/files/tls

HTTP Method

GET

HTTP Response

200 OK

Example

Request:
GET /api/v1/files/tls HTTP/1.1
Host: 10.4.219.229 
Response:
 HTTP/1.1 200 OK
Content-Type: application/json
{
    "tls": [
        {
            "id": "0",
            "name": "default",
            "url": "/api/v1/files/tls/0"
        }
} 

The creation / configuration / removal of TLS contexts should be performed via other APIs – e.g. by uploading incremental ini file or CLI script as described in Sections INI File and CLI Script. The APIs described in this chapter are for manipulation of “files” associated with existing TLS contexts.