Queries the configurations of an Object Storage Service (OSS) bucket check policy.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BucketName | string | No | The name of the bucket. | iboxpublic**** |
Id | string | No | The ID of the policy. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "E10BAF1C-A6C5-51E2-866C-76D5922E****",
"Data": {
"Enable": 1,
"ScanDayList": [
1
],
"BucketNameList": [
"bcdata-oss****"
],
"KeySuffixList": [
".asp"
],
"StartTime": "00:00:00",
"EndTime": "00:00:00\n",
"Name": "test0104",
"KeyPrefixList": [
"/root"
],
"Id": "1274****",
"BucketName": "hz-new01****",
"LastUpdateTime": 1702025633079,
"BucketCount": 1,
"AllKeyPrefix": true
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-12-07 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | see changesets | ||||||||||||||
|