- Documentation
Torch Object Storage
SDK Reference
C++
Bucket Interface
Manage Bucket Configuration
Managing Custom Domain Names (C++ SDK)
Manage Bucket Configuration
Managing Custom Domain Names (C++ SDK)
Managing Custom Domain Names (C++ SDK)
After you upload a file to TOS, you can access or download the file using the file URL automatically generated by TOS. If you wish to access files stored in TOS using your own domain name, you can bind your domain name to the storage bucket. Once binding is complete, files can be accessed using the corresponding domain name. The TOS C++ SDK supports binding custom domain names to storage buckets.
Configure Custom Domain Name Rules
warning
- A domain name can be bound to only one storage bucket.
- A storage bucket can be bound to up to 20 domain names.
Sample Code
The following code is used to configure custom domain name rules for the bucket examplebucket.
Enumerate Custom Domain Name Rules
warning
By default, you must be the bucket owner to list the custom domain name rules for a bucket.
Sample Code
The following code is used to enumerate the custom domain name rules for the bucket 'examplebucket'.
Delete Custom Domain Name Rules
warning
To delete a bucket's custom domain name rule, you must, by default, be the bucket owner.
Sample Code
The following code is used to delete the custom domain name rules for the bucket examplebucket.
Relevant Documentation
For more information about custom domain configuration, see Custom Domain. Last updated: 2025.09.25 14:22:46