REST API를 사용하여 requestPayment 구성 검색
Payer
리소스를 요청하여 버킷에 설정된 requestPayment
값을 확인할 수 있습니다.
requestPayment 리소스를 반환하려면
-
다음 요청에서와 같이 GET 요청을 사용하여
requestPayment
리소스를 확인합니다.GET ?requestPayment HTTP/1.1 Host:
[BucketName]
.s3.amazonaws.com Date: Wed, 01 Mar 2009 12:00:00 GMT Authorization: AWS[Signature]
요청이 성공하면 Amazon S3는 다음과 비슷한 응답을 반환합니다.
HTTP/1.1 200 OK x-amz-id-2: [id] x-amz-request-id: [request_id] Date: Wed, 01 Mar 2009 12:00:00 GMT Content-Type: [type] Content-Length: [length] Connection: close Server: AmazonS3 <?xml version="1.0" encoding="UTF-8"?> <RequestPaymentConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <Payer>Requester</Payer> </RequestPaymentConfiguration>
이 응답은 payer
값이 Requester
로 설정되었음을 보여 줍니다.