mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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:
parent
97fffb13fe
commit
1ca532d033
@ -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/>"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user