diff --git a/docs/obs/s3api/en-us_topic_0125560249.html b/docs/obs/s3api/en-us_topic_0125560249.html index 111cc8541..bcc01eed3 100644 --- a/docs/obs/s3api/en-us_topic_0125560249.html +++ b/docs/obs/s3api/en-us_topic_0125560249.html @@ -32,7 +32,7 @@ Date: date <Key>TagNameJJ1</Key> <Value>tytttasceettt</Value> </Tag> -</TagSet> + </TagSet> </Tagging>
This response uses common headers. For details about common response headers, see section Common Response Headers.
@@ -139,7 +139,7 @@ Content-Length: 441 <Key>TagNameJJ1</Key> <Value>tytttasceettt</Value> </Tag> -</TagSet> + </TagSet> </Tagging>Table 9 describes the common elements contained in an error response.
Element diff --git a/docs/obs/s3api/en-us_topic_0125560310.html b/docs/obs/s3api/en-us_topic_0125560310.html index 773a0c41a..71cacbc55 100644 --- a/docs/obs/s3api/en-us_topic_0125560310.html +++ b/docs/obs/s3api/en-us_topic_0125560310.html @@ -117,7 +117,7 @@ x-amz-content-sha256:44ce7dd67c959e0d3524ffac1771dfbba87d2b6b4b4e99e42034a8b803fDateKey = HMAC-SHA256("AWS4"+"<SecretAccessKey>", "<yyyymmdd>")
DateRegionKey = HMAC-SHA256(<DateKey>, "<aws-region>")
DateRegionServiceKey = HMAC-SHA256(<DateRegionKey>, "<aws-service>")
-SigningKey = HMAC-SHA256(<DateRegionServiceKey>, "aws4_request"
+SigningKey = HMAC-SHA256(<DateRegionServiceKey>, "aws4_request")
Each field is described as follows:
Sample Response: Grant OBS account permissionHTTP/1.1 204 No Content
@@ -77,22 +77,22 @@ Authorization: AWS UDSIAMSTUBTEST000002:1YPpMv6hAokMd/r6Ft5/6SZANDw=
Content-Length: 256
{
-"Id": "Policy1375342051335",
-"Statement": [
-{
-"Sid": "Stmt1375240018062",
-"Action": [
-"s3:PutBucketLogging"
-],
-"Effect": "Allow",
-"Resource": "arn:aws:s3:::logging.bucket3",
-"Principal": {
-"AWS": [
-"arn:aws:iam::219d520ceac84c5a98b237431a2cf4c2:user/71f3901173514e6988115ea2c26d1999"
-]
-}
-}
-]
+ "Id": "Policy1375342051335",
+ "Statement": [
+ {
+ "Sid": "Stmt1375240018062",
+ "Action": [
+ "s3:PutBucketLogging"
+ ],
+ "Effect": "Allow",
+ "Resource": "arn:aws:s3:::logging.bucket3",
+ "Principal": {
+ "AWS": [
+ "arn:aws:iam::219d520ceac84c5a98b237431a2cf4c2:user/71f3901173514e6988115ea2c26d1999"
+ ]
+ }
+ }
+ ]
}
Sample Response: Grant OBS user permissionHTTP/1.1 204 No Content
diff --git a/docs/obs/s3api/en-us_topic_0125560369.html b/docs/obs/s3api/en-us_topic_0125560369.html
index 94fef2743..292be2943 100644
--- a/docs/obs/s3api/en-us_topic_0125560369.html
+++ b/docs/obs/s3api/en-us_topic_0125560369.html
@@ -47,24 +47,25 @@ Server: OBS
Content-Type: application/xml
Date: Fri, 06 Sep 2013 07:06:42 GMT
Content-Length: 184
+
{
- "Id": "Policy1375342051334",
- "Statement": [
- {
- "Sid": "Stmt1375240018061",
- "Action": [
- "s3:GetBucketLogging"
- ],
- "Effect": "Allow",
- "Resource": "arn:aws:s3:::logging.bucket3",
- "Principal": {
- "AWS": [
- "norman"
- ]
- }
- }
- ]
- }
+ "Id": "Policy1375342051334",
+ "Statement": [
+ {
+ "Sid": "Stmt1375240018061",
+ "Action": [
+ "s3:GetBucketLogging"
+ ],
+ "Effect": "Allow",
+ "Resource": "arn:aws:s3:::logging.bucket3",
+ "Principal": {
+ "AWS": [
+ "norman"
+ ]
+ }
+ }
+ ]
+}
diff --git a/docs/obs/s3api/en-us_topic_0125560388.html b/docs/obs/s3api/en-us_topic_0125560388.html
index 880e81c79..c4918eb7d 100644
--- a/docs/obs/s3api/en-us_topic_0125560388.html
+++ b/docs/obs/s3api/en-us_topic_0125560388.html
@@ -171,11 +171,13 @@ Accept: */*
Date: Tue, 07 Mar 2017 08:54:09 +0000
Authorization: AWS UDSIAMSTUBTEST000002:kaEwOixnSVuS6If3Q0Lnd6kxm5A=
Content-Length: 183
-Expect: 100-continue
-<RestoreRequest xmlns="http://s3.amazonaws.com/doc/2006-3-01"> <Days>3</Days>
-<GlacierJobParameters>
- <Tier>Expedited</Tier>
- </GlacierJobParameters>
+Expect: 100-continue
+
+<RestoreRequest xmlns="http://s3.amazonaws.com/doc/2006-3-01">
+ <Days>3</Days>
+ <GlacierJobParameters>
+ <Tier>Expedited</Tier>
+ </GlacierJobParameters>
</RestoreRequest>
Sample ResponseHTTP/1.1 100 Continue diff --git a/docs/obs/s3api/en-us_topic_0125560406.html b/docs/obs/s3api/en-us_topic_0125560406.html index 8bbe3ca41..b585d8d0f 100644 --- a/docs/obs/s3api/en-us_topic_0125560406.html +++ b/docs/obs/s3api/en-us_topic_0125560406.html @@ -37,29 +37,31 @@ In the preceding ACL, permission indicates one of the five permission types supported by OBS. For details about the permission, see Table 2. The format of content in Grantee varies with the grantee.
- OBS supports bucket policies. If you want to restrict server-side encryption for all objects stored in a bucket, you can use bucket policies. For example, if an object upload request does not contain x-amz-server-side-encryption:"aws:kms", the header for requesting server-side encryption (SSE-KMS), the following bucket policy rejects the upload request: -{ -"Version":"2008-10-17", -"Id":"PutObjPolicy", -"Statement":[{ -"Sid":"DenyUnEncryptedObjectUploads", -"Effect":"Deny", -"Principal":"*", -"Action":"s3:PutObject", -"Resource":"arn:aws:s3:::YourBucket/*", -"Condition":{ -"StringNotEquals":{ -"s3:x-amz-server-side-encryption":"aws:kms" -} -} -} -] -} +OBS supports bucket policies. If you want to restrict server-side encryption for all objects stored in a bucket, you can use bucket policies. For example, if an object upload request does not contain x-amz-server-side-encryption:"aws:kms", the header for requesting server-side encryption (SSE-KMS), the following bucket policy rejects the upload request:
{
+"Version":"2008-10-17",
+"Id":"PutObjPolicy",
+"Statement": [
+ {
+ "Sid": "DenyUnEncryptedObjectUploads",
+ "Effect": "Deny",
+ "Principal": "*",
+ "Action": "s3:PutObject",
+ "Resource": "arn:aws:s3:::YourBucket/*",
+ "Condition": {
+ "StringNotEquals": {
+ "s3:x-amz-server-side-encryption": "aws:kms"
+ }
+ }
+ }
+ ]
+}
+
diff --git a/docs/obs/s3api/en-us_topic_0125560497.html b/docs/obs/s3api/en-us_topic_0125560497.html
index f2f2faa0f..1535ebc92 100644
--- a/docs/obs/s3api/en-us_topic_0125560497.html
+++ b/docs/obs/s3api/en-us_topic_0125560497.html
@@ -4,7 +4,7 @@
You can use this operation to get the bucket lifecycle configuration. Only users granted the s3:GetLifecycleConfiguration permission can view the bucket lifecycle configuration. By default, only the bucket owner can get the bucket lifecycle configuration. The bucket owner can allow other users to get the bucket lifecycle configuration by granting them the permission. Request SyntaxGET /?lifecycle HTTP/1.1 -User-Agent: agnet +User-Agent: agent Host: bucketname.obs.example.com Accept: */* Date: date |
|---|