1
0
forked from docs/doc-exports
doc-exports/docs/obs/api-swift/obs_03_0023.html
zhangyue 894279c39a Object Storage Service API Reference Swift V1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-02-02 08:50:48 +00:00

2.3 KiB

Examples

Create Account Metadata

Create Book and Subject metadata:

curl -i -H "X-auth-token:b8b574e33b0a4f74a1961bed1b4784b8" "http://172.28.5.31:80/v1/AUTH_0ce042a9be6140769b12c1001d41bcf9" -X POST -H "X-Account-Meta-Book:MobyDick" -H "X-Account-Meta-Subject:Literature"
HTTP/1.1 204 No Content
X-Trans-Id: tx000001513971bc1a370c0-93967ab85f
Content-Length: 0
Content-Type: text/html;charset=UTF-8
Date: Tue, 24 Nov 2015 12:22:13 GMT

Update Account Metadata

Update the Subject metadata:

curl -i -H "X-auth-token:b8b574e33b0a4f74a1961bed1b4784b8" "http://172.28.5.31:80/v1/AUTH_0ce042a9be6140769b12c1001d41bcf9" -X POST -H "X-Account-Meta-Subject:ChineseLiterature"
HTTP/1.1 204 No Content
X-Trans-Id: tx0000015139725538370c0-f6e0c56435
Content-Length: 0
Content-Type: text/html;charset=UTF-8
Date: Tue, 24 Nov 2015 12:22:53 GMT

Delete Account Metadata

Delete the Subject metadata:

curl -i -H "X-auth-token:b8b574e33b0a4f74a1961bed1b4784b8" "http://172.28.5.31:80/v1/AUTH_0ce042a9be6140769b12c1001d41bcf9" -X POST -H "X-Remove-Account-Meta-Subject:d"
HTTP/1.1 204 No Content
X-Trans-Id: tx000001513972ce7c370c0-40b77d13e2
Content-Length: 0
Content-Type: text/html;charset=UTF-8
Date: Tue, 24 Nov 2015 12:23:24 GMT