DescribeOssObjects
Queries the list of storage objects in authorized OSS buckets.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeOssObjects |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
| Name |
string |
No |
The search keyword. Fuzzy matching is supported. |
test |
| RiskLevelId |
integer |
No |
The risk level ID of the OSS storage object. Valid values:
|
2 |
| RuleId |
integer |
No |
The ID of the sensitive data detection rule hit by the OSS storage object. Note
To query the storage objects in OSS buckets authorized for Data Security Center (DSC) based on the ID of the sensitive data detection rule hit by the objects, you can call the DescribeRules operation to obtain the rule ID. |
1222 |
| InstanceId |
string |
No |
The ID of the asset instance to which the OSS object belongs. Note
To query the storage objects in OSS buckets authorized for DSC based on the ID of the asset instance to which the objects belong, you can call the DescribeInstances operation to obtain the instance ID. |
ins-2222 |
| PageSize |
integer |
No |
The maximum number of entries to return on each page. |
12 |
| CurrentPage |
integer |
No |
The page number to return in a paged query. |
1 |
| ServiceRegionId |
string |
No |
The region where the asset resides. |
cn-hangzhou |
| LastScanTimeStart |
integer |
No |
The start time of the last scan. Format: timestamp. Unit: milliseconds. |
1536751124000 |
| LastScanTimeEnd |
integer |
No |
The end time of the last scan. Format: timestamp. Unit: milliseconds. |
1536751124000 |
| TemplateId |
integer |
No |
The ID of the industry template. |
1 |
| FileCategoryCode |
integer |
No |
The code of the file category. |
1 |
| Marker |
integer |
No |
The marker used to retrieve subsequent data starting from the specified marker in a paged query. |
1754786235714378752 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number of the current page in the result. |
1 |
| RequestId |
string |
The ID of the request. |
769FB3C1-F4C9-42DF-9B72-7077A8989C13 |
| PageSize |
integer |
The number of entries returned on each page. |
12 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| Marker |
string |
[Deprecated] This parameter is deprecated. |
-1 |
| NextMarker |
string |
The starting ID for querying the next page of results. Note
This parameter is returned only when Truncated is set to true. |
1754786235714378752 |
| Truncated |
boolean |
Specifies whether the returned result is truncated. Default value: false. Valid values:
|
false |
| Items |
array<object> |
The list of OSS storage objects. |
|
|
array<object> |
The list of OSS storage objects. |
||
| InstanceId |
integer |
The instance ID of the asset to which the OSS storage object belongs. |
1232122 |
| CategoryName |
string |
The name of the file type. |
MP4 |
| RiskLevelId |
integer |
The risk level ID of the OSS storage object. Valid values:
|
2 |
| RegionId |
string |
The area ID of the object owner of the OSS storage object. |
cn-*** |
| FileId |
string |
The ID of the OSS storage file. |
file-22*** |
| Size |
integer |
The size of the file. Unit: bytes. |
20 |
| BucketName |
string |
The name of the bucket. |
oss-duplicate-*** |
| RiskLevelName |
string |
The risk level name of the OSS storage object. |
High risk |
| Category |
integer |
The object type of the OSS storage object. Valid values include 900001 (MP4 video file), 800015 (PDF document), and 800005 (OSS configuration file). |
900001 |
| Name |
string |
The name of the OSS storage object. |
obj_id |
| RuleCount |
integer |
The number of rule hits. |
100 |
| SensitiveCount |
integer |
The number of hit fields. |
50 |
| Id |
string |
The unique ID of the OSS storage object. |
17383 |
| RuleList |
array<object> |
The list of rules. |
|
|
object |
The rule object. |
||
| Name |
string |
The search keyword. Fuzzy matching is supported. |
ID card |
| RiskLevelId |
integer |
The risk level ID of the OSS storage object. Valid values:
|
2 |
| Count |
integer |
The number of times the rule is hit. |
100 |
| FileCategoryCode |
integer |
The code of the file category. |
1 |
| FileCategoryName |
string |
The name of the file category. |
text file |
| LastModifiedTime |
integer |
The time when the file was last modified. The value is a UNIX timestamp in milliseconds. |
1536751124000 |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"RequestId": "769FB3C1-F4C9-42DF-9B72-7077A8989C13",
"PageSize": 12,
"TotalCount": 1,
"Marker": "-1",
"NextMarker": "1754786235714378752",
"Truncated": false,
"Items": [
{
"InstanceId": 1232122,
"CategoryName": "MP4",
"RiskLevelId": 2,
"RegionId": "cn-***",
"FileId": "file-22***",
"Size": 20,
"BucketName": "oss-duplicate-***",
"RiskLevelName": "High risk",
"Category": 900001,
"Name": "obj_id",
"RuleCount": 100,
"SensitiveCount": 50,
"Id": "17383",
"RuleList": [
{
"Name": "ID card",
"RiskLevelId": 2,
"Count": 100
}
],
"FileCategoryCode": 1,
"FileCategoryName": "text file",
"LastModifiedTime": 1536751124000
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.