import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const sslCertificate = await client.storage.buckets.sslCertificate.retrieve('');
console.log(sslCertificate.data);{
"data": {
"id": "<string>",
"issued_to": {
"common_name": "<string>",
"organization": "<string>",
"organization_unit": "<string>"
},
"issued_by": {
"common_name": "<string>",
"organization": "<string>",
"organization_unit": "<string>"
},
"valid_from": "2020-01-01T00:00:00Z",
"valid_to": "2020-01-01T00:00:00Z",
"created_at": "2020-01-01T00:00:00Z"
}
}Returns the stored certificate detail of a bucket, if applicable.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const sslCertificate = await client.storage.buckets.sslCertificate.retrieve('');
console.log(sslCertificate.data);{
"data": {
"id": "<string>",
"issued_to": {
"common_name": "<string>",
"organization": "<string>",
"organization_unit": "<string>"
},
"issued_by": {
"common_name": "<string>",
"organization": "<string>",
"organization_unit": "<string>"
},
"valid_from": "2020-01-01T00:00:00Z",
"valid_to": "2020-01-01T00:00:00Z",
"created_at": "2020-01-01T00:00:00Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the bucket
SSL Certificate Response
Show child attributes
Unique identifier for the SSL certificate
The time the certificate is valid from
"2020-01-01T00:00:00Z"
The time the certificate is valid to
"2020-01-01T00:00:00Z"
Time when SSL certificate was uploaded
"2020-01-01T00:00:00Z"
Was this page helpful?