Skip to main content

ssl_certificates

Creates, updates, deletes, gets or lists a ssl_certificates resource.

Overview

Namessl_certificates
TypeResource
Idlinode.object_storage.ssl_certificates

Fields

The following fields are returned by SELECT queries:

Returns a boolean value indicating if this bucket has a corresponding TLS/SSL certificate that was uploaded by an Account user.

NameDatatypeDescription
sslbooleanRead-only A boolean indicating if this Bucket has a corresponding TLS/SSL certificate that was uploaded by an Account user.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectregionId, bucketReturns a boolean value indicating if this bucket has a corresponding TLS/SSL certificate that was uploaded by an Account user.

Learn more...

Learn more...
createinsertregionId, bucket, certificate, private_keyUpload a TLS/SSL certificate and private key to be served when you visit your Object Storage bucket via HTTPS. Your TLS/SSL certificate and private key are stored encrypted at rest.

To replace an expired certificate, delete your current certificates and upload a new one.

Learn more...

Learn more...
deletedeleteregionId, bucketDeletes this Object Storage bucket's user uploaded TLS/SSL certificate and private key.

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bucketstringThe bucket name. (example: {{bucket}})
regionIdstringIdentifies a region where this bucket lives. > 📘 > > You can use a clusterId in place of regionId in requests for buckets that you created using the legacy version of the API. Run List clusters to see each cluster id.

SELECT examples

Returns a boolean value indicating if this bucket has a corresponding TLS/SSL certificate that was uploaded by an Account user.

Learn more...

Learn more...

SELECT
ssl
FROM linode.object_storage.ssl_certificates
WHERE regionId = '{{ regionId }}' -- required
AND bucket = '{{ bucket }}' -- required
;

INSERT examples

Upload a TLS/SSL certificate and private key to be served when you visit your Object Storage bucket via HTTPS. Your TLS/SSL certificate and private key are stored encrypted at rest.

To replace an expired certificate, delete your current certificates and upload a new one.

Learn more...

Learn more...

INSERT INTO linode.object_storage.ssl_certificates (
certificate,
private_key,
regionId,
bucket
)
SELECT
'{{ certificate }}' /* required */,
'{{ private_key }}' /* required */,
'{{ regionId }}',
'{{ bucket }}'
RETURNING
ssl
;

DELETE examples

Deletes this Object Storage bucket's user uploaded TLS/SSL certificate and private key.

Learn more...

Learn more...

DELETE FROM linode.object_storage.ssl_certificates
WHERE regionId = '{{ regionId }}' --required
AND bucket = '{{ bucket }}' --required
;