|
1 | 1 | openapi: 3.0.1
|
2 | 2 | info:
|
3 |
| - version: 4.76.0 |
| 3 | + version: 4.76.1 |
4 | 4 |
|
5 | 5 | title: Linode API
|
6 | 6 | description: |
|
@@ -11717,6 +11717,139 @@ paths:
|
11717 | 11717 | - lang: CLI
|
11718 | 11718 | source: >
|
11719 | 11719 | linode-cli object-storage cancel
|
| 11720 | + /object-storage/buckets/{clusterId}/{bucket}/ssl: |
| 11721 | + x-linode-cli-command: object-storage |
| 11722 | + parameters: |
| 11723 | + - name: clusterId |
| 11724 | + in: path |
| 11725 | + description: The ID of the cluster this bucket exists in. |
| 11726 | + required: true |
| 11727 | + schema: |
| 11728 | + type: string |
| 11729 | + - name: bucket |
| 11730 | + in: path |
| 11731 | + description: The bucket name. |
| 11732 | + required: true |
| 11733 | + schema: |
| 11734 | + type: string |
| 11735 | + get: |
| 11736 | + operationId: getObjectStorageSSL |
| 11737 | + x-linode-cli-action: ssl-view |
| 11738 | + servers: |
| 11739 | + - url: https://api.linode.com/v4 |
| 11740 | + summary: View Object Storage TLS/SSL Cert |
| 11741 | + description: | |
| 11742 | + Returns a boolean value indicating if this bucket has a corresponding TLS/SSL certificate that was |
| 11743 | + uploaded by an Account user. |
| 11744 | + tags: |
| 11745 | + - Object Storage |
| 11746 | + security: |
| 11747 | + - personalAccessToken: [] |
| 11748 | + - oauth: |
| 11749 | + - object_storage:read_only |
| 11750 | + responses: |
| 11751 | + '200': |
| 11752 | + description: > |
| 11753 | + Returns a boolean value indicating if this bucket has a corresponding TLS/SSL certificate that was |
| 11754 | + uploaded by an Account user. |
| 11755 | + content: |
| 11756 | + application/json: |
| 11757 | + schema: |
| 11758 | + $ref: '#/components/schemas/ObjectStorageSSLResponse' |
| 11759 | + default: |
| 11760 | + $ref: '#/components/responses/ErrorResponse' |
| 11761 | + x-code-samples: |
| 11762 | + - lang: Shell |
| 11763 | + source: > |
| 11764 | + curl -H "Authorization: Bearer $TOKEN" \ |
| 11765 | + https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/ssl |
| 11766 | + - lang: CLI |
| 11767 | + source: > |
| 11768 | + linode-cli object-storage ssl-view \ |
| 11769 | + us-east-1 example-bucket |
| 11770 | + post: |
| 11771 | + operationId: createObjectStorageSSL |
| 11772 | + x-linode-cli-action: ssl-upload |
| 11773 | + servers: |
| 11774 | + - url: https://api.linode.com/v4 |
| 11775 | + summary: Upload Object Storage TLS/SSL Cert |
| 11776 | + description: | |
| 11777 | + Upload a TLS/SSL certificate and private key to be served when you visit your Object Storage bucket via HTTPS. |
| 11778 | + Your TLS/SSL certificate and private key are stored encrypted at rest. |
| 11779 | + |
| 11780 | + |
| 11781 | + To replace an expired certificate, [delete your current certificate](/api/v4/object-storage-buckets-cluster-id-bucket-ssl/#delete) |
| 11782 | + and upload a new one. |
| 11783 | + tags: |
| 11784 | + - Object Storage |
| 11785 | + security: |
| 11786 | + - personalAccessToken: [] |
| 11787 | + - oauth: |
| 11788 | + - object_storage:read_write |
| 11789 | + requestBody: |
| 11790 | + description: Upload this TLS/SSL certificate with its corresponding secret key. |
| 11791 | + content: |
| 11792 | + application/json: |
| 11793 | + schema: |
| 11794 | + $ref: '#/components/schemas/ObjectStorageSSL' |
| 11795 | + responses: |
| 11796 | + '200': |
| 11797 | + description: Returns whether this bucket has a corresponding TLS/SSL certificate that was uploaded by a user. |
| 11798 | + content: |
| 11799 | + application/json: |
| 11800 | + schema: |
| 11801 | + $ref: '#/components/schemas/ObjectStorageSSLResponse' |
| 11802 | + default: |
| 11803 | + $ref: '#/components/responses/ErrorResponse' |
| 11804 | + x-code-samples: |
| 11805 | + - lang: Shell |
| 11806 | + source: > |
| 11807 | + curl -H "Content-Type: application/json" \ |
| 11808 | + -H "Authorization: Bearer $TOKEN" \ |
| 11809 | + -X POST -d ‘{ |
| 11810 | + "certificate": "-----BEGIN CERTIFICATE-----\nMIIDbDCCAlQCCQCl\n-----END CERTIFICATE-----", |
| 11811 | + "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADIAQCQI\n-----END PRIVATE KEY-----" |
| 11812 | + }’ \ |
| 11813 | + https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/ssl |
| 11814 | + - lang: CLI |
| 11815 | + source: > |
| 11816 | + linode-cli object-storage ssl-upload \ |
| 11817 | + us-east-1 example-bucket \ |
| 11818 | + --certificate "-----BEGIN CERTIFICATE-----\nMIIDbDCCAlQCCQCl\n-----END CERTIFICATE-----" \ |
| 11819 | + --private_key "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADIAQCQI\n-----END PRIVATE KEY-----" |
| 11820 | + delete: |
| 11821 | + operationId: getObjectStorageSSL |
| 11822 | + x-linode-cli-action: ssl-delete |
| 11823 | + servers: |
| 11824 | + - url: https://api.linode.com/v4 |
| 11825 | + summary: Delete Object Storage TLS/SSL Cert |
| 11826 | + description: | |
| 11827 | + Deletes this Object Storage bucket's user uploaded TLS/SSL certificate and private key. |
| 11828 | + tags: |
| 11829 | + - Object Storage |
| 11830 | + security: |
| 11831 | + - personalAccessToken: [] |
| 11832 | + - oauth: |
| 11833 | + - object_storage:read_write |
| 11834 | + responses: |
| 11835 | + '200': |
| 11836 | + description: Deletes this Object Storage bucket's user uploaded TLS/SSL certificate and private key. |
| 11837 | + content: |
| 11838 | + application/json: |
| 11839 | + schema: |
| 11840 | + type: object |
| 11841 | + default: |
| 11842 | + $ref: '#/components/responses/ErrorResponse' |
| 11843 | + x-code-samples: |
| 11844 | + - lang: Shell |
| 11845 | + source: > |
| 11846 | + curl -H "Authorization: Bearer $TOKEN" \ |
| 11847 | + -X DELETE \ |
| 11848 | + https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/ssl |
| 11849 | + - lang: CLI |
| 11850 | + source: > |
| 11851 | + linode-cli object-storage ssl-delete \ |
| 11852 | + us-east-1 example-bucket |
11720 | 11853 | /profile:
|
11721 | 11854 | x-linode-cli-command: profile
|
11722 | 11855 | get:
|
@@ -18838,6 +18971,43 @@ components:
|
18838 | 18971 | - read_only
|
18839 | 18972 | description: This Limited Access Key's permissions for the selected bucket.
|
18840 | 18973 | example: read_only
|
| 18974 | + ObjectStorageSSL: |
| 18975 | + type: object |
| 18976 | + required: |
| 18977 | + - certificate |
| 18978 | + - private_key |
| 18979 | + description: > |
| 18980 | + Upload a TLS/SSL certificate and private key to be served when you visit your Object Storage bucket via HTTPS. |
| 18981 | + properties: |
| 18982 | + certificate: |
| 18983 | + type: string |
| 18984 | + description: > |
| 18985 | + Your Base64 encoded and PEM formatted SSL certificate. |
| 18986 | + example: > |
| 18987 | + "-----BEGIN CERTIFICATE----- |
| 18988 | + MIIFTTCCAzWgAwIBAgIURwtqMl |
| 18989 | + ... |
| 18990 | + -----END CERTIFICATE-----" |
| 18991 | + private_key: |
| 18992 | + type: string |
| 18993 | + description: > |
| 18994 | + The private key associated with this TLS/SSL certificate. |
| 18995 | + example: > |
| 18996 | + "-----BEGIN PRIVATE KEY----- |
| 18997 | + MIIEvgIBADANBgkqhkiG9w0BAQE |
| 18998 | + ... |
| 18999 | + -----END PRIVATE KEY-----" |
| 19000 | + ObjectStorageSSLResponse: |
| 19001 | + type: object |
| 19002 | + description: > |
| 19003 | + If this Object Storage bucket has a corresponding TLS/SSL Certificate. |
| 19004 | + properties: |
| 19005 | + ssl: |
| 19006 | + type: boolean |
| 19007 | + description: > |
| 19008 | + A boolean indicating if this Bucket has a corresponding TLS/SSL certificate that was uploaded by an Account user. |
| 19009 | + example: true |
| 19010 | + readOnly: true |
18841 | 19011 | PaginationEnvelope:
|
18842 | 19012 | type: object
|
18843 | 19013 | description: >
|
|
0 commit comments