다큐멘트 센터 Object Storage API Include Signatures in URL

Include Signatures in URL

최신 업데이트:2022-04-15 18:00:02

you can also add your signatures to the URL by using query string parameters, which is useful when you want to express a request entirely in a URL. Others can use the the signed URL to access your OS resources temporarily without having your AccessKeySecret.

Example of signed URL

http://bucketName.s3-cn-east=1.wcsapi.com/keyName
?Signature=hXrFL6wBspF7fNE7lChnOIBEpE4%3D
&AWSAccessKeyId=db17ab5d18c137f786b67c490187317a0738f94a
&Expires=1639390003

Note:Line feeds are added for readability

Parameters

Parameter Name Required Description
Expires Yes The time when the signed URL expires.

Type: string

If the time that OS receives the request is later than the value of this parameter, a request timeout error is returned.
AWSAccessKeyId Yes AK information.

Type: string
Signature Yes The signature information.
The following code shows the format of signature:
Signature = urlencode(base64(hmacsha1(AccessKeySecret, VERB + “\n” + CONTENT-MD5 + “\n” + CONTENT-TYPE + “\n” + EXPIRES + “\n” + CanonicalizedOSSHeaders + CanonicalizedResource)))
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.