S3API (Get-bucket-versioning)是否可以显示MFADelete的SGRID S3存储分段状态?
适用场景
- StorageGRID ( SGRID )
- MFA (多因素身份验证)删除
问题解答
否、无法执行此操作、因为SGRID不支持MFADelete。
实验室示例:
[root@host241 ~]# aws --endpoint-url https://sg5:10443 --ca-bundle /root/.aws/sg5-10443.pem --profile sg5-tenant1-root s3api get-bucket-versioning --bucket bucket4
[root@host241 ~]#
[root@host241 ~]# aws --endpoint-url https://sg5:10443 --ca-bundle /root/.aws/sg5-10443.pem --profile sg5-tenant1-root s3api put-bucket-versioning --bucket bucket4 --versioning-configuration Status=Enabled,MFADelete=Disabled
[root@host241 ~]#
[root@host241 ~]# aws --endpoint-url https://sg5:10443 --ca-bundle /root/.aws/sg5-10443.pem --profile sg5-tenant1-root s3api get-bucket-versioning --bucket bucket4 {
"Status": "Enabled"
}
[root@host241 ~]#
[root@host241 ~]# aws --endpoint-url https://sg5:10443 --ca-bundle /root/.aws/sg5-10443.pem --profile sg5-tenant1-root s3api get-bucket-versioning --bucket bucket5
[root@host241 ~]#
[root@host241 ~]# aws --endpoint-url https://sg5:10443 --ca-bundle /root/.aws/sg5-10443.pem --profile sg5-tenant1-root s3api put-bucket-versioning --bucket bucket5 --versioning-configuration Status=Enabled,MFADelete=Enabled
An error occurred (XNotImplemented) when calling the PutBucketVersioning operation: MfaDelete support not implemented
[root@host241 ~]#
[root@host241 ~]# aws --endpoint-url https://sg5:10443 --ca-bundle /root/.aws/sg5-10443.pem --profile sg5-tenant1-root s3api get-bucket-versioning --bucket bucket5
[root@host241 ~]#