New in this release
Test Policy
POST /object/bucket/test-policy
Validates a DM policy.
Query Parameters
bucketName | Bucket name for which DM policy should be validated. |
account | Namespace for which DM policy should be validated. |
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
NAMESPACE_ADMIN
Request Payload
<bucket_copy_policy>
<days_after_last_write></days_after_last_write>
<minimum_size></minimum_size>
<external_endpoint></external_endpoint>
<target_bucket></target_bucket>
<target_access_key></target_access_key>
<target_secret_key></target_secret_key>
<target_account></target_account>
<target_role></target_role>
<tag_filter></tag_filter>
<policy_type></policy_type>
<backup_read_target></backup_read_target>
<sse_s3_enabled></sse_s3_enabled>
<detailed_log_enabled></detailed_log_enabled>
<detailed_log_errors_only></detailed_log_errors_only>
<detailed_log_bucket></detailed_log_bucket>
<detailed_log_prefix></detailed_log_prefix>
<external_certs></external_certs>
</bucket_copy_policy>
{
"days_after_last_write": "",
"minimum_size": "",
"external_endpoint": "",
"target_bucket": "",
"target_access_key": "",
"target_secret_key": "",
"target_account": "",
"target_role": "",
"tag_filter": "",
"policy_type": "",
"backup_read_target": "",
"sse_s3_enabled": "",
"detailed_log_enabled": "",
"detailed_log_errors_only": "",
"detailed_log_bucket": "",
"detailed_log_prefix": "",
"external_certs": ""
}
All parameters are required unless otherwise stated.
Field |
Description |
Type |
Notes |
bucket_copy_policy |
|
|
|
days_after_last_write |
|
Long |
|
minimum_size |
|
Long |
|
external_endpoint |
|
URI |
|
target_bucket |
|
String |
|
target_access_key |
|
String |
|
target_secret_key |
|
String |
|
target_account |
|
String |
|
target_role |
|
String |
|
tag_filter |
|
String |
|
policy_type |
|
|
|
backup_read_target |
|
Boolean |
|
sse_s3_enabled |
|
Boolean |
|
detailed_log_enabled |
|
Boolean |
|
detailed_log_errors_only |
|
Boolean |
|
detailed_log_bucket |
|
String |
|
detailed_log_prefix |
|
String |
|
external_certs |
|
String |
|
Response Body
Indicating success or failure of the bucket validation request