Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Rename duplicate domains or buckets using the correct syntax. Rename context objects (domains and buckets) in a storage cluster using the SCSP COPY command with the newname query argument SCSP Query Arguments specifying the new name.
Naming and Slashes — - Follow the Naming Rules for domains and buckets. Swarm handles slashes:
Leading slashes (
/foo
) are silently removed in all cases.Trailing slashes (
foo/
) are silently removed for buckets, but they cause 404 Page Not Found errors for domains. (v11.1)
Tipinfo |
---|
TipLog in to the Content UI to verify the renaming. |
Info |
---|
Preserving |
...
HeadersThe existing domain or bucket |
...
SCSP HeadersSCSP Headersshould be preserved.
|
...
See Headers to preserve in SCSP COPY. |
Renaming a Domain
Rename the domain. If this is a duplicated domain it should be renamed by aliasuuid instead, see Resolving Duplicate Domain and Bucket Names.
Code Block | ||
---|---|---|
| ||
curl -i --location-trusted -u admin -X COPY 'http://{host}?domain={old-name}&admin&newname={new-name}&preserve' [-D log-file-name] |
...
The message New object created confirms that the renaming procedure is successful.
Renaming a Bucket
Rename the bucket. If this is a duplicated bucket it should be renamed by aliasuuid instead, see Resolving Duplicate Domain and Bucket Names.
Code Block | ||
---|---|---|
| ||
curl -i --location-trusted -u admin -XCOPY 'http://{host}/{old-name}?domain={domain}&admin&newname={new-name}&preserve' [-D log-file-name] |
...