s3
Manage S3 access.
List of S3 users.
Parameters
Responses
Examples
List of all buckets.
Parameters
Responses
Examples
List all available placement policies in all zones.
Parameters
Responses
Examples
Set the default placement rule. This API does not support multi-site setups.
Parameters
Examples
Request Body
{
"storageClass": "string",
"placementRule": "string"
}
Create a new placement policy in the default zonegroup in the default zone. This API does not support multi-site setups.
Parameters
Examples
Request Body
{
"dataPool": "string",
"indexPool": "string",
"dataExtraPool": "string"
}
Set a quota for this user.
Parameters
Examples
Request Body
{
"enabled": true,
"maxSize": 42,
"maxObjects": 42,
"maxSizeNew": 42,
"max_objects": 42,
"max_size_kb": 42,
"maxObjectsNew": 42,
"maxObjectsOld": 42,
"maxSizeKiBOld": 42
}
Retrieve usage statistics for a given S3 user.
Return results aggregated into 1 hour intervals for all buckets the user accessed. Caution: this cannot be used for the anonymous user This can be an expensive call in term of IOPS, do not poll this unnecessarily. The idea is to store the results in an accounting system. Calling this will also trim the S3 usage log if enabled in /config/config.yml, see trimS3Usage in /config/config.yml.default This requires enabling the Ceph option "rgw enable usage log", see https://docs.ceph.com/docs/master/man/8/radosgw/#usage-logging
Parameters
Responses
Examples
List all buckets owner by the user.
Parameters
Responses
Examples
Create a new S3 bucket.
Parameters
Responses
Examples
Request Body
{
"acl": [
{
"userId": "string",
"grantee": "ALL_USERS",
"permission": "FULL_CONTROL",
"displayName": "string"
}
],
"owner": "string",
"endpoint": "string",
"placement": "string",
"versioning": "OFF",
"expectedNumberOfObjects": 42
}
Set a quota for all buckets owned by this user.
Parameters
Examples
Request Body
{
"enabled": true,
"maxSize": 42,
"maxObjects": 42,
"maxSizeNew": 42,
"max_objects": 42,
"max_size_kb": 42,
"maxObjectsNew": 42,
"maxObjectsOld": 42,
"maxSizeKiBOld": 42
}
Set a quota for this bucket.
Parameters
Examples
Request Body
{
"enabled": true,
"maxSize": 42,
"maxObjects": 42,
"maxSizeNew": 42,
"max_objects": 42,
"max_size_kb": 42,
"maxObjectsNew": 42,
"maxObjectsOld": 42,
"maxSizeKiBOld": 42
}
Get a bucket policy.
Parameters
Responses
Examples
Create or update a bucket policy. See the ceph documentation for the list of currently supported actions.
Parameters
Examples
Request Body
{}
Delete a bucket policy.
Parameters
Examples
Upload an object.
Parameters
Examples
Request Body
{
"key": "string",
"file": {},
"size": 42
}
List objects in a bucket. Refer to S3 documentation for listing details
Parameters
Responses
Examples
Delete an object by name.
Parameters
Examples
Retrieve latest usage statistics for a given S3 bucket.
Return results aggregated into 1 hour intervals for all users that accessed the bucket. This can be an expensive call in term of IOPS, do not poll this unnecessarily. The idea is to store the results in an accounting system. Calling this will also trim the S3 usage log if enabled in /config/config.yml, see trimS3Usage in /config/config.yml.default This requires enabling the Ceph option "rgw enable usage log", see https://docs.ceph.com/docs/master/man/8/radosgw/#usage-logging
Parameters
Responses
Examples
Download an object.
Parameters
Responses
Examples
Get the current ACL of an object.
Parameters
Responses
Examples
Override an object's ACL.
Parameters
Examples
Request Body
[
{
"userId": "string",
"grantee": "ALL_USERS",
"permission": "FULL_CONTROL",
"displayName": "string"
}
]
Copy an object.
Parameters
Examples
Move an object.
Parameters
Examples
Get metadata of an object.
Parameters
Responses
Examples
Override object metadata.
Parameters
Examples
Request Body
{
"raw": {},
"etag": "string",
"size": 42,
"versionId": "string",
"contentMD5": "string",
"contentType": "string",
"cacheControl": "string",
"lastModified": "2023-12-01T10:00:00Z",
"userMetadata": {},
"expirationTime": "2023-12-01T10:00:00Z",
"contentEncoding": "string",
"contentLanguage": "string",
"httpExpiresDate": "2023-12-01T10:00:00Z",
"contentDisposition": "string",
"expirationTimeRuleId": "string"
}
List active and abandoned multi-part uploads. API params are identical to object listing.
Parameters
Responses
Examples
Cancel an active or abandoned multi-part upload.
Parameters
Examples
List objects and prefixes in a bucket. Uses croit's pagination.
Parameters
Responses
Examples
List active and abandoned multi-part uploads. Uses croit's pagination.
Parameters
Responses
Examples
Set storage classes on placement rules. This API does not support multi-site setups.
Parameters
Examples
Request Body
{
"dataPool": "string"
}