- Documentation
Torch Object Storage
SDK Reference
Python
Bucket interface
Manage bucket configuration
Manage object renaming (Python SDK)
Manage bucket configuration
Manage object renaming (Python SDK)
Manage object renaming (Python SDK)
TOS supports the renaming function of individual objects in buckets. When you want to use the renaming object function, you need to enable the renaming function of buckets first.
Set the renaming rules for buckets
- rename_enableparameter can only be True.
- Multi-version buckets are not supported to enable renaming.
- Only renaming objects newly uploaded after RenameObject is enabled is supported, and renaming existing objects before this function is enabled is not supported.
- Only renaming of new objects after enabling the renaming function is supported, and renaming of existing objects is not supported.
- All information for renaming object metadata is consistent with the source object.
The following code is used to set bucket-test to enable renaming.
Get the renaming rules for the bucket
Gets the renaming rules for the bucket. By default, you must be the bucket owner.
The following code is used to obtain the bucket-test renaming rule.
Delete bucket renaming rules
Remove the renaming rule for buckets, by default you must be the bucket owner...
The following code is used to delete the bucket-test renaming rule.
Last updated: 2025.09.17 18:22:12