- Documentation
Torch Object Storage
SDK Reference
Go
Bucket Interface
Manage Bucket Configuration
Managing Object Renaming (Go SDK)
Manage Bucket Configuration
Managing Object Renaming (Go SDK)
Managing Object Renaming (Go SDK)
TOS supports the renaming of individual objects within a bucket. To use the object renaming feature, you must first enable the bucket's renaming feature.
Configure renaming rules
- The rename_enable parameter can only be set to True.
- The rename functionality is not supported when versioning is enabled for the bucket.
The following code is used to configure the bucket to enable the renaming feature.
To obtain the renaming rules for a bucket, you must be the bucket owner.
The following code is used to retrieve renaming rules.
To remove a bucket's renaming rules, you must be the bucket owner.
The following code is used to delete renaming rules.
- For API documentation regarding enabling object renaming, refer to PutBucketRename.
- For details on the API for obtaining object renaming rules, see GetBucketRename.
Last updated: 2026.08.07 17:41:28