examples: rgw: add boto3 extensions for GetUsage S3 API

This allows for boto3 & aws cli to use the GetUsageStats api to get usage by a
user

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
This commit is contained in:
Abhishek Lekshmanan 2020-02-04 15:28:07 +01:00
parent 97fffb13fe
commit 1ca532d033

View File

@ -12,6 +12,17 @@
"input":{"shape":"DeleteBucketNotificationConfigurationRequest"},
"documentationUrl":"https://docs.ceph.com/docs/master/radosgw/s3/bucketops/#delete-notification",
"documentation":"<p>Deletes the notification configuration from the bucket.</p>"
},
"GetUsageStats":{
"name":"GetUsageStats",
"http":{
"method":"GET",
"requestUri":"/?usage",
"responseCode":200
},
"output": {"shape": "GetUsageStatsOutput"},
"documentationUrl":"https://docs.ceph.com/docs/master/radosgw/s3/",
"documentation":"<p>Get usage stats for the user</p>"
}
},
"shapes": {
@ -139,6 +150,26 @@
},
"documentation":"<p>A container for object tags filtering rules.</p>"
}
"GetUsageStatsOutput": {
"type": "structure",
"members": {
"Summary": {
"shape":"UsageStatsSummary",
"documentation": "<p/>"
}
}
},
"UsageStatsSummary": {
"type": "structure",
"members": {
"TotalBytes":{"shape":"TotalBytes"},
"TotalBytesRounded":{"shape":"TotalBytesRounded"},
"TotalEntries":{"shape":"TotalEntries"}
}
},
"TotalBytesRounded":{"type":"integer"},
"TotalBytes":{"type":"integer"},
"TotalEntries":{"type":"integer"}
},
"documentation":"<p/>"
}