Specify the bucket id.
+.. option:: --bucket-new-name=[tenant-id/]<bucket>
+
+ Optional for `bucket link`; use to rename a bucket.
+ When using implicit tenants, prefix the name
+ with the desired tenant-id.
+
.. option:: --shard-id=<shard-id>
Optional for mdlog list, data sync status. Required for ``mdlog trim``.
cout << " --start-date=<date> start date in the format yyyy-mm-dd\n";
cout << " --end-date=<date> end date in the format yyyy-mm-dd\n";
cout << " --bucket-id=<bucket-id> bucket id\n";
+ cout << " --bucket-new-name=<bucket>\n";
+ cout << " for bucket link: optional new name\n";
cout << " --shard-id=<shard-id> optional for: \n";
cout << " mdlog list\n";
cout << " data sync status\n";
bool set_temp_url_key = false;
map<int, string> temp_url_keys;
string bucket_id;
+ string new_bucket_name;
Formatter *formatter = NULL;
int purge_data = false;
int pretty_format = false;
cerr << "bad bucket-id" << std::endl;
exit(1);
}
+ } else if (ceph_argparse_witharg(args, i, &val, "--bucket-new-name", (char*)NULL)) {
+ new_bucket_name = val;
} else if (ceph_argparse_witharg(args, i, &val, "--format", (char*)NULL)) {
format = val;
} else if (ceph_argparse_witharg(args, i, &val, "--categories", (char*)NULL)) {
if (opt_cmd == OPT_BUCKET_LINK) {
bucket_op.set_bucket_id(bucket_id);
+ bucket_op.set_new_bucket_name(new_bucket_name);
string err;
int r = RGWBucketAdminOp::link(store, bucket_op, &err);
if (r < 0) {
std::string bucket_name;
std::string bucket_id;
std::string object_name;
+ std::string new_bucket_name;
bool list_buckets;
bool stat_buckets;
void set_object(std::string& object_str) {
object_name = object_str;
}
+ void set_new_bucket_name(std::string& new_bucket_str) {
+ new_bucket_name = new_bucket_str;
+ }
void set_quota(RGWQuotaInfo& value) {
quota = value;
}
--start-date=<date> start date in the format yyyy-mm-dd
--end-date=<date> end date in the format yyyy-mm-dd
--bucket-id=<bucket-id> bucket id
+ --bucket-new-name=<bucket>
+ for bucket link: optional new name
--shard-id=<shard-id> optional for:
mdlog list
data sync status