You can call this operation to query MaxCompute packages that you authorize Sensitive Data Discovery and Protection (SDDP) to access, including the names of the MaxCompute packages, accounts of the MaxCompute package owners, and risk levels of the MaxCompute packages.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribePackages

The operation that you want to perform. Set the value to DescribePackages.

CurrentPage Integer No 1

The number of the page to return.

InstanceId Long No 12321

The ID of the instance to which the MaxCompute package belongs.

Note You can call the DescribeInstances operation to query the instance ID.
Lang String No zh

The language of the request and response. Valid values:

  • zh: Chinese
  • en: English
Name String No test

The keyword used to search for the MaxCompute package. SDDP searches for MaxCompute packages based on the keyword that you enter in fuzzy match mode.

PageSize Integer No 10

The number of entries to return on each page.

ProductId Long No 2566600

The ID of the service to which the MaxCompute package belongs.

Note You can call the DescribeDataAssets operation to query the service ID.
RiskLevelId Long No 2

The risk level ID of the MaxCompute package. Valid values:

  • 1: S1, indicating the low risk level
  • 2: S2, indicating the medium risk level
  • 3: S3, indicating the high risk level
  • 4: S4, indicating the highest risk level
RuleId Long No 266666

The ID of the sensitive data detection rule that the package hits.

Note You can call the DescribeRules operation to query the ID of the sensitive data detection rule.

Response parameters

Parameter Type Example Description
CurrentPage Integer 1

The page number of the returned page.

Items

The list of MaxCompute packages that were queried.

CreationTime Long 1536751124000

The time when the MaxCompute package was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Id Long 111111

The unique ID of the MaxCompute package.

InstanceId Long 223453332

The ID of the instance to which the MaxCompute package belongs.

Name String gxdata

The name of the MaxCompute package.

Owner String cou-2221

The account that owns the MaxCompute package.

RiskLevelId Long 4

The risk level ID of the MaxCompute package. Valid values:

  • 1: S1, indicating the low risk level
  • 2: S2, indicating the medium risk level
  • 3: S3, indicating the high risk level
  • 4: S4, indicating the highest risk level
RiskLevelName String Highest risk level

The risk level of the MaxCompute package.

Sensitive Boolean true

Indicates whether the MaxCompute package contains sensitive data. Valid values:

  • true: The MaxCompute package contains sensitive data.
  • false: The MaxCompute package does not contain sensitive data.
SensitiveCount Integer 123

The total volume of sensitive data in the MaxCompute package. For example, the value can be the total number of sensitive tables in the MaxCompute package.

TotalCount Integer 321

The total volume of data in the MaxCompute package. For example, the value can be the total number of tables in the MaxCompute package.

PageSize Integer 10

The number of entries returned per page.

RequestId String 769FB3C1-F4C9-42DF-9B72-7077A8989C13

The ID of the request.

TotalCount Integer 12

The total number of returned entries.

Examples

Sample requests


http(s)://[Endpoint]/? Action=DescribePackages
&<Common request parameters>

Sample success responses

XML format

<DescribePackages>
	  <RequestId>769FB3C1-F4C9-42DF-9B72-7077A8989C13</RequestId>
	  <TotalCount>4</TotalCount>
	  <PageSize>10</PageSize>
	  <CurrentPage>1</CurrentPage>
	  <Items>
		    <Owner>dtdep-239-******</Owner>
		    <RiskLevelId>2</RiskLevelId>
		    <RiskLevelName>Medium risk level</RiskLevelName>
		    <DepartName>***DemoCenter</DepartName>
		    <Name>gxdata</Name>
		    <CreationTime>1536751124000</CreationTime>
		    <Sensitive>true</Sensitive>
		    <Id>268</Id>
		    <InstanceId>1</InstanceId>
	  </Items>
</DescribePackages>

JSON format

{
	"Items":[
		{
			"CreationTime":1536751124000,
			"Name":"gxdata",
			"Owner":"dtdep-239-******",
			"Sensitive":true,
			"RiskLevelName":"Medium risk level",
			"InstanceId":123400,
			"DepartName":"***DemoCenter",
			"RiskLevelId":2,
			"Id":268
		}
	],
	"TotalCount":4,
	"PageSize":10,
	"RequestId":"769FB3C1-F4C9-42DF-9B72-7077A8989C13",
	"CurrentPage":1
}

Error codes

For a list of error codes, visit the API Error Center.