GetBucketLoggingStatus (SOAP API)
注記
SOAP API for Amazon S3 は新規顧客には利用できず、2025 年 8 月 31 日にサポート終了 (EOL) となります。REST API か AWS SDK を使用することをお勧めします。
GetBucketLoggingStatus は、既存のバケットのログ記録ステータスを取得します。
この機能の一般的な概要については、「サーバーログ」を参照してください。
例
Sample Request
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetBucketLoggingStatus xmlns="https://doc.s3.amazonaws.com/2006-03-01"> <Bucket>mybucket</Bucket> <AWSAccessKeyId>YOUR_AWS_ACCESS_KEY_ID</AWSAccessKeyId> <Timestamp>2006-03-01T12:00:00.183Z</Timestamp> <Signature>YOUR_SIGNATURE_HERE</Signature> </GetBucketLoggingStatus> </soap:Body> </soap:Envelope>
Sample Response
<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <soapenv:Header> </soapenv:Header> <soapenv:Body> <GetBucketLoggingStatusResponse xmlns="https://s3.amazonaws.com/doc/2006-03-01"> <GetBucketLoggingStatusResponse> <LoggingEnabled> <TargetBucket>mylogs</TargetBucket> <TargetPrefix>mybucket-access_log-</TargetPrefix> </LoggingEnabled> </GetBucketLoggingStatusResponse> </GetBucketLoggingStatusResponse> </soapenv:Body> </soapenv:Envelope>
アクセスコントロール
このオペレーションを呼び出すことができるのは、バケットの所有者のみです。