diff options
author | Yehuda Sadeh <yehuda@redhat.com> | 2017-01-05 22:47:24 +0100 |
---|---|---|
committer | Yehuda Sadeh <yehuda@redhat.com> | 2017-01-13 23:33:33 +0100 |
commit | a220a2efbfd675e6abf14ae33c21005bcbf6dadf (patch) | |
tree | b922f6d1e38ab59de1ea842db6009a80ddca7c1d /src/rgw/rgw_rest_config.h | |
parent | Merge pull request #12924 from dillaman/wip-librbd-test-header (diff) | |
download | ceph-a220a2efbfd675e6abf14ae33c21005bcbf6dadf.tar.xz ceph-a220a2efbfd675e6abf14ae33c21005bcbf6dadf.zip |
rgw: rest api to read zone config params
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_rest_config.h')
-rw-r--r-- | src/rgw/rgw_rest_config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/rgw/rgw_rest_config.h b/src/rgw/rgw_rest_config.h index e9fcfd79ca6..8835c1a821f 100644 --- a/src/rgw/rgw_rest_config.h +++ b/src/rgw/rgw_rest_config.h @@ -36,6 +36,24 @@ public: } }; +class RGWOp_ZoneConfig_Get : public RGWRESTOp { + RGWZoneParams zone_params; +public: + RGWOp_ZoneConfig_Get() {} + + int check_caps(RGWUserCaps& caps) { + return caps.check_cap("admin", RGW_CAP_READ); + } + int verify_permission() { + return check_caps(s->user->caps); + } + void execute() {} /* store already has the info we need, just need to send response */ + void send_response(); + const string name() { + return "get_zone_config"; + } +}; + class RGWHandler_Config : public RGWHandler_Auth_S3 { protected: RGWOp *op_get(); |