userID: ********************{
"regionID": "nm8",
"bucket": "ztces-230404-create",
"bucketLoggingStatus": {
"loggingEnabled": {
"targetBucket": "ztces-230404-create",
"targetPrefix": "ces",
"targetGrants": [
{
"permission": "FULL_CONTROL",
"grantee": {
"ID": "c49b0049-deff-568b-9534-1a31d515d9b6",
"displayName": "hybtest@chinatelecom.cn",
"emailAddress": "",
"type": "CanonicalUser"
}
}
]
}
}
}curl --location --request POST 'http://ct-global.ctapi-internal.ctyun.local:31111/v4/oss/put-bucket-logging' \
--header 'x-ctyun-user-id: {{userID}}' \
--header 'Accept-Language: zh-CN' \
--header 'userId: ef378f73-1c52-435e-90f2-6a9cd2258c8e' \
--header 'userID: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"regionID": "nm8",
"bucket": "ztces-230404-create",
"bucketLoggingStatus": {
"loggingEnabled": {
"targetBucket": "ztces-230404-create",
"targetPrefix": "ces",
"targetGrants": [
{
"permission": "FULL_CONTROL",
"grantee": {
"ID": "c49b0049-deff-568b-9534-1a31d515d9b6",
"displayName": "hybtest@chinatelecom.cn",
"emailAddress": "",
"type": "CanonicalUser"
}
}
]
}
}
}'{
"description":"成功",
"errorCode":null,
"message":"SUCCESS",
"statusCode":800
}