View a markdown version of this page

SetBucketLoggingStatus(SOAP API) - Amazon Simple Storage Service

SetBucketLoggingStatus(SOAP API)

참고

Amazon S3용 SOAP API는 신규 고객에게 제공되지 않으며 2025년 8월 31일에 서비스 종료(EOL)됩니다. REST API 또는 AWS SDK를 사용하는 것이 좋습니다.

SetBucketLoggingStatus 작업은 기존 버킷의 로깅 상태를 업데이트합니다.

이 기능에 대한 일반적인 소개는 서버 로그를 참조하세요.

이 샘플 요청은 'mybucket' 버킷에 대한 서버 액세스 로깅을 활성화하고 접두사 'access_log-' 아래의 'mylogs'로 전달되도록 로그를 구성합니다.

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> <SetBucketLoggingStatus 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> <BucketLoggingStatus> <LoggingEnabled> <TargetBucket>mylogs</TargetBucket> <TargetPrefix>mybucket-access_log-</TargetPrefix> </LoggingEnabled> </BucketLoggingStatus> </SetBucketLoggingStatus> </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> <SetBucketLoggingStatusResponse xmlns="https://s3.amazonaws.com/doc/2006-03-01"/> </soapenv:Body> </soapenv:Envelope>

액세스 통제

버킷 소유자만 이 작업을 간접적으로 호출할 수 있습니다.