@@ -43,11 +43,11 @@ info:
4343
4444 For example, for a `POST` request to `/provider/laravel/orgs/my-org/provision`, the `CanonicalURI` would be:
4545 ```
46- https://mgmt. storage.dev/provider/your-provider-id/orgs/user-org-id/provision
46+ https://fly.mgnt. storage.tigris .dev/provider/your-provider-id/orgs/user-org-id/provision
4747 ```
4848 And for a `GET` request with query parameters:
4949 ```
50- https://mgmt. storage.dev/provider/your-provider-id/orgs/?include_inactive=true
50+ https://fly.mgnt. storage.tigris .dev/provider/your-provider-id/orgs/?include_inactive=true
5151 ```
5252 :::
5353
6666 ```
6767 version : 0.0.1
6868servers :
69- - url : https://mgmt. storage.dev
69+ - url : https://fly.mgnt. storage.tigris .dev
7070 description : Tigris production server
7171tags :
7272 - name : buckets
@@ -225,6 +225,89 @@ paths:
225225 application/json :
226226 schema :
227227 $ref : " #/components/schemas/GenericError"
228+ /v1/providers/{provider_id}/orgs/{org_id}/buckets/{bucket_name}/domain :
229+ post :
230+ tags :
231+ - buckets
232+ summary : Set or replace a custom domain for a bucket
233+ description : |
234+ Sets a custom domain for a bucket. If the domain is already set, it will be replaced.
235+
236+ :::note
237+ The custom domain must have a CNAME record that points to the bucket URL.
238+ :::
239+ operationId : Tigris_SetCustomDomain
240+ parameters :
241+ - $ref : " #/components/parameters/provider_id"
242+ - $ref : " #/components/parameters/org_id"
243+ - $ref : " #/components/parameters/bucket_name"
244+ requestBody :
245+ content :
246+ application/json :
247+ schema :
248+ $ref : " #/components/schemas/SetCustomDomainRequest"
249+ required : true
250+ responses :
251+ " 200 " :
252+ description : OK
253+ content :
254+ application/json :
255+ schema :
256+ $ref : " #/components/schemas/SetCustomDomainResponse"
257+ default :
258+ description : Unexpected error
259+ content :
260+ application/json :
261+ schema :
262+ $ref : " #/components/schemas/GenericError"
263+ delete :
264+ tags :
265+ - buckets
266+ summary : Remove associated custom domain from a bucket
267+ description : |
268+ Removes the custom domain from a bucket.
269+ operationId : Tigris_DeleteCustomDomain
270+ parameters :
271+ - $ref : " #/components/parameters/provider_id"
272+ - $ref : " #/components/parameters/org_id"
273+ - $ref : " #/components/parameters/bucket_name"
274+ responses :
275+ " 200 " :
276+ description : OK
277+ content :
278+ application/json :
279+ schema :
280+ $ref : " #/components/schemas/DeleteCustomDomainResponse"
281+ default :
282+ description : Unexpected error
283+ content :
284+ application/json :
285+ schema :
286+ $ref : " #/components/schemas/GenericError"
287+ get :
288+ tags :
289+ - buckets
290+ summary : Get a custom domain for a bucket
291+ description : |
292+ Gets a custom domain for a bucket.
293+ operationId : Tigris_GetCustomDomain
294+ parameters :
295+ - $ref : " #/components/parameters/provider_id"
296+ - $ref : " #/components/parameters/org_id"
297+ - $ref : " #/components/parameters/bucket_name"
298+ responses :
299+ " 200 " :
300+ description : OK
301+ content :
302+ application/json :
303+ schema :
304+ $ref : " #/components/schemas/GetCustomDomainResponse"
305+ default :
306+ description : Unexpected error
307+ content :
308+ application/json :
309+ schema :
310+ $ref : " #/components/schemas/GenericError"
228311
229312 /v1/providers/{provider_id}/orgs/{org_id}/key/rotate :
230313 post :
@@ -585,6 +668,33 @@ components:
585668 properties :
586669 data :
587670 $ref : " #/components/schemas/Invoice"
671+ BucketWebsiteSettings :
672+ type : object
673+ additionalProperties : false
674+ properties :
675+ domain_name :
676+ type : string
677+ description : Domain name to be set
678+ SetCustomDomainRequest :
679+ type : object
680+ additionalProperties : false
681+ required :
682+ - website
683+ properties :
684+ website :
685+ $ref : " #/components/schemas/BucketWebsiteSettings"
686+ SetCustomDomainResponse :
687+ type : object
688+ DeleteCustomDomainResponse :
689+ type : object
690+ GetCustomDomainResponse :
691+ type : object
692+ additionalProperties : false
693+ required :
694+ - website
695+ properties :
696+ website :
697+ $ref : " #/components/schemas/BucketWebsiteSettings"
588698 Invoice :
589699 type : object
590700 properties :
@@ -740,6 +850,8 @@ components:
740850 object_acl_enabled :
741851 type : boolean
742852 description : If set to true, per object ACL is enabled
853+ website :
854+ $ref : " #/components/schemas/BucketWebsiteSettings"
743855 GetUsageResponse :
744856 type : object
745857 properties :
0 commit comments