ssl_certificates
Creates, updates, deletes, gets or lists a ssl_certificates
resource.
Overview
Name | ssl_certificates |
Type | Resource |
Id | linode.object_storage.ssl_certificates |
Fields
The following fields are returned by SELECT
queries:
- get_object_storage_ssl
Returns a boolean value indicating if this bucket has a corresponding TLS/SSL certificate that was uploaded by an Account user.
Name | Datatype | Description |
---|---|---|
ssl | boolean | Read-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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_object_storage_ssl | select | 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... | ||
post_object_storage_ssl | insert | data__certificate , data__private_key | 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... | |
delete_object_storage_ssl | delete | Deletes 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.
Name | Datatype | Description |
---|
SELECT
examples
- get_object_storage_ssl
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;
INSERT
examples
- post_object_storage_ssl
- Manifest
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 (
data__certificate,
data__private_key
)
SELECT
'{{ certificate }}' --required,
'{{ private_key }}' --required
RETURNING
ssl
;
# Description fields are for documentation purposes
- name: ssl_certificates
props:
- name: certificate
value: string
description: >
Your Base64 encoded and PEM formatted SSL certificate.
Line breaks must be represented as `\n` in the string for requests (but not when using the Linode CLI)
- name: private_key
value: string
description: >
The private key associated with this TLS/SSL certificate.
Line breaks must be represented as `\n` in the string for requests (but not when using the Linode CLI)
DELETE
examples
- delete_object_storage_ssl
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;