Can S3API(get-bucket-versioning) display MFADelete's status of SGRID S3 bucket?
Applies to
- StorageGRID (SGRID)
- MFA (multi-factor authentication) Delete
Answer
No, it cannot because MFADelete is not supported by SGRID.
Lab sample:
[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 ~]#