Queries Object Storage Service (OSS) objects that you authorize Data Security Center (DSC) to access.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sddp:DescribeOssObjects | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request and response. Valid values:
| zh |
Name | string | No | The search keyword. Fuzzy match is supported. | test |
RiskLevelId | integer | No | The sensitivity level of the OSS object. Valid values:
| 2 |
RuleId | long | No | The ID of the sensitive data detection rule that the OSS object hits. Note
You can call the DescribeRules operation to query the ID of the sensitive data detection rule.
| 1222 |
InstanceId | string | No | The ID of the instance to which the OSS object belongs. Note
You can call the DescribeInstances operation to query the instance ID.
| ins-2222 |
PageSize | integer | No | The number of entries to return on each page. | 12 |
CurrentPage | integer | No | The page number of the page to return. | 1 |
ServiceRegionId | string | No | The region in which the data asset resides. | cn-hangzhou |
LastScanTimeStart | long | No | The start time of the last scan. The value is a UNIX timestamp. Unit: milliseconds. | 1536751124000 |
LastScanTimeEnd | long | No | The end time of the last scan. The value is a UNIX timestamp. Unit: milliseconds. | 1536751124000 |
TemplateId | long | No | The ID of the industry-specific rule template. | 1 |
FileCategoryCode | long | No | The code of the file type. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"CurrentPage": 1,
"RequestId": "769FB3C1-F4C9-42DF-9B72-7077A8989C13",
"PageSize": 12,
"TotalCount": 1,
"Items": [
{
"InstanceId": 1232122,
"CategoryName": "MP4 file\n",
"RiskLevelId": 2,
"RegionId": "cn-***",
"FileId": "file-22***",
"Size": 20,
"BucketName": "oss-duplicate-***",
"RiskLevelName": "Medium sensitivity level\n",
"Category": 900001,
"Name": "obj_id",
"RuleCount": 100,
"SensitiveCount": 50,
"Id": "17383",
"RuleList": [
{
"Name": "ID card\n",
"RiskLevelId": 2,
"Count": 100
}
],
"FileCategoryCode": 1,
"FileCategoryName": "text file",
"LastModifiedTime": 1536751124000
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-13 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2024-06-03 | The response structure of the API has changed | View Change Details |
2023-09-25 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |