Call this operation to query a list of authorized OSS objects.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeOssObjects |
get |
*All Resource
|
None | 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 match is supported. |
test |
| RiskLevelId |
integer |
No |
The risk level ID of the OSS object. Valid values:
|
2 |
| RuleId |
integer |
No |
The ID of the sensitive data detection rule that the OSS object matches. Note
To query the list of authorized OSS objects by the ID of a matched sensitive data detection rule, 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 list of authorized OSS objects by the ID of the asset instance, 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. |
1 |
| ServiceRegionId |
string |
No |
The region of the asset. |
cn-hangzhou |
| LastScanTimeStart |
integer |
No |
The start time of the last scan. The value is a UNIX timestamp. Unit: milliseconds. |
1536751124000 |
| LastScanTimeEnd |
integer |
No |
The end time of the last scan. The value is a UNIX timestamp. Unit: milliseconds. |
1536751124000 |
| TemplateId |
integer |
No |
The ID of the industry-specific template. |
1 |
| FileCategoryCode |
integer |
No |
The code of the file category. |
1 |
| Marker |
integer |
No |
The position where the query starts. To retrieve the next page of results, set this parameter to the value of |
1754786235714378752 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number of the returned page. |
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 |
This parameter is deprecated. |
-1 |
| NextMarker |
string |
The token that marks the start of the next page of results. Note
This parameter is returned only when |
1754786235714378752 |
| Truncated |
boolean |
Indicates whether the results are truncated. The default value is false. Valid values:
|
false |
| Items |
array<object> |
A list of OSS objects. |
|
|
object |
An OSS object. |
||
| InstanceId |
integer |
The ID of the asset instance to which the OSS object belongs. |
1232122 |
| CategoryName |
string |
The name of the file type. |
MP4视频文件 |
| RiskLevelId |
integer |
The risk level ID of the OSS object. Valid values:
|
2 |
| RegionId |
string |
The region ID of the OSS object owner. |
cn-*** |
| FileId |
string |
The ID of the OSS file. |
file-22*** |
| Size |
integer |
The file size. Unit: bytes. |
20 |
| BucketName |
string |
The bucket name. |
oss-duplicate-*** |
| RiskLevelName |
string |
The name of the risk level for the OSS object. |
中等风险等级 |
| Category |
integer |
The type of the OSS object, such as 900001 (MP4 video file), 800015 (PDF document), and 800005 (OSS configuration file). |
900001 |
| Name |
string |
The name of the OSS object. |
obj_id |
| RuleCount |
integer |
The number of matched rules. |
100 |
| SensitiveCount |
integer |
The number of matched fields. |
50 |
| Id |
string |
The unique ID of the OSS object. |
17383 |
| RuleList |
array<object> |
A list of rules. |
|
|
object |
A rule. |
||
| Name |
string |
The name of the rule. |
身份证 |
| RiskLevelId |
integer |
The risk level ID of the rule. Valid values:
|
2 |
| Count |
integer |
The number of times the rule is matched. |
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. |
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": "中等风险等级",
"Category": 900001,
"Name": "obj_id",
"RuleCount": 100,
"SensitiveCount": 50,
"Id": "17383",
"RuleList": [
{
"Name": "身份证",
"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.