DescribeOssObjects

Updated at:

Queries the list of storage objects in authorized OSS buckets.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sddp:DescribeOssObjects

get

*All Resource

*

  • acs:ResourceGroupId
None

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the request and response. Valid values:

  • zh: Chinese.

  • en: English.

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:

  • 1: N/A: No sensitive data is detected.

  • 2: S1: Level 1 sensitive data.

  • 3: S2: Level 2 sensitive data.

  • 4: S3: Level 3 sensitive data.

  • 5: S4: Level 4 sensitive data.

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:

  • true: The result is truncated.

  • false: The result is not truncated.

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:

  • 1: N/A: No sensitive data is detected.

  • 2: S1: Level 1 sensitive data.

  • 3: S2: Level 2 sensitive data.

  • 4: S3: Level 3 sensitive data.

  • 5: S4: Level 4 sensitive data.

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:

  • 1: N/A: No sensitive data is detected.

  • 2: S1: Level 1 sensitive data.

  • 3: S2: Level 2 sensitive data.

  • 4: S3: Level 3 sensitive data.

  • 5: S4: Level 4 sensitive data.

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.