API overview
API standards and multilingual preset SDKs
The OpenAPI of this product (Sddp/2019-01-03) uses the RPC signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.
Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.
Custom signature scenarios
If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.
Account and security preparation
Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.
Data audit
|
API |
Title |
Description |
| DescribeAuditLogs | Query audit alert logs | Queries the list of audit alert logs. |
Service-linked role
|
API |
Title |
Description |
| CreateSlrRole | Create a service-linked role | Creates a service-linked role for Data Security Center (DSC) and authorizes DSC to access cloud resources. |
Authorization
|
API |
Title |
Description |
| DeleteDataLimit | Delete data asset scan authorization | Deletes authorized data assets such as databases, instances, or buckets from connection authorization. |
| DescribeDataLimits | Query data asset scan authorization list | Queries the list of data assets, including authorized instances, databases, and buckets. |
| ModifyDataLimit | Modify data asset scan authorization | Modifies the configuration items of a Data Security Center (DSC) connection authorization. |
| DescribeDataLimitDetail | DescribeDataLimitDetail | Retrieves the details of an authorized data asset, such as a MaxCompute project, ApsaraDB RDS database, or OSS bucket. |
| CreateDataLimit | Create data asset scan authorization | Creates a scan authorization for a database, project, or Object Storage Service (OSS) bucket. |
| DescribeDataLimitSet | DescribeDataLimitSet | Call the DescribeDataLimitSet operation to query the authorization list for unstructured assets or the list of regions supported by Data Security Center. |
| DescribeInstanceSources | DescribeInstanceSources | Queries a list of data assets. |
| DescribeParentInstance | Query unauthorized or authorized assets | Queries a list of unauthorized or authorized assets. |
Detection configuration
|
API |
Title |
Description |
| ScanOssObjectV1 | Create a file scan task | Creates a scan task to detect sensitive data in the specified storage objects. |
| CreateScanTask | Create a scan task | Calls the CreateScanTask operation to create a custom scan task for detecting sensitive data in assets that have been successfully authorized for detection. |
| ModifyDefaultLevel | Modify risk level definition rules for sensitive data | Modifies the risk level definition rules for sensitive data, including the default risk level for unrecognized data and the risk level for data classified as "sensitive". |
| ModifyRuleStatus | Update the detection status of a sensitive data detection rule | Enables or disables the detection feature of a sensitive data detection rule. |
| ModifyRule | Modify a custom sensitive data detection rule | Modifies a custom sensitive data detection rule in Data Security Center (DSC). |
| DeleteRule | Delete a custom sensitive data detection rule | Deletes a custom sensitive data detection rule. |
| CreateRule | Create a custom sensitive data detection rule | Creates a custom sensitive data detection rule by calling CreateRule. |
Data detection
|
API |
Title |
Description |
| DescribeRules | List detection rules | Queries the list of sensitive data detection rules. |
| DescribeRiskLevels | DescribeRiskLevels | Call the DescribeRiskLevels operation to retrieve a list of risk levels for sensitive data. |
| DescribeDataAssets | DescribeDataAssets | Searches for data assets on the Overview page of Data Security Center (DSC). |
| DescribeInstances | Query data asset instances | Retrieves the list of data asset instances for authorized MaxCompute, ApsaraDB RDS, and OSS connections. |
| DescribeTables | DescribeTables | Queries tables in data assets, such as MaxCompute and RDS, that Data Security Center is authorized to access. |
| DescribeColumns | Query column data in data asset tables | Queries the column data in data asset tables, such as MaxCompute and ApsaraDB RDS, that are authorized in Data Security Center. |
| DescribeColumnsV2 | Query column data in data asset tables V2 | Queries column data in data asset tables, such as MaxCompute and ApsaraDB RDS tables, that are connected to and authorized by Data Security Center. |
| DescribeOssObjects | Query OSS storage objects | Queries the list of storage objects in authorized OSS buckets. |
| DescribeOssObjectDetail | Query details of an OSS storage object | Queries the details of a single OSS storage object that is authorized for connection in Data Security Center. |
| DescribeOssObjectDetailV2 | Query details of an OSS storage object V2 | Queries the details of a single storage object in OSS that is authorized for connection to Data Security Center. |
| DescribePackages | DescribePackages | Retrieves information about MaxCompute packages authorized for scanning, including package names, owner accounts, and risk levels. |
| DescribeCategoryTemplateList | Query industry templates | Queries the list of industry templates. |
| DescribeCategoryTemplateRuleList | DescribeCategoryTemplateRuleList | Queries a paginated list of rules in a data classification template. |
| DescribeTemplateAllRules | Query All Models List of Industry Templates | Lists all rules in an industry-specific template. |
| DescribeDocTypes | Query the list of detectable OSS file types | Queries the list of OSS file types that can be detected. |
| DescribeDataObjects | Query data object list | Queries the data detection results of data tables and files. |
| DescribeDataObjectColumnDetail | Query data object column details | Queries the column detection results of a data table. |
| DescribeDataObjectColumnDetailV2 | Query data object column details V2 | Queries the column detection results of a data table. |
Security configuration
|
API |
Title |
Description |
| CreateConfig | CreateConfig | Modifies the general alert configuration parameters. |
| DescribeConfigs | DescribeConfigs | Queries common configuration items for anomaly alerts. |
| ModifyReportTaskStatus | ModifyReportTaskStatus | You can call the ModifyReportTaskStatus operation to enable or disable report tasks. |
| DescribeUserStatus | Query user account status | Queries the status of a user account by calling DescribeUserStatus. |
| DisableUserConfig | Disable a user configuration | Calls the DisableUserConfig operation to disable a user configuration. After the user configuration is disabled, you can call the CreateConfig operation with the same request parameter Code to restore the anomaly alert general configuration for the configuration item. |
Anomaly alerts
|
API |
Title |
Description |
| ModifyEventTypeStatus | Update detection status for anomalous activity child classes | Invokes this operation to enable the feature for detecting anomalous activity events of specified child classes. |
| ModifyEventStatus | ModifyEventStatus | Handles anomalous activities. |
| DescribeEvents | DescribeEvents | Lists anomalous events. |
| DescribeEventDetail | Query anomalous activity details | Queries the details of a single anomalous activity, including the time when the anomalous activity occurred, the anomaly description, and the handling status. |
| DescribeEventTypes | DescribeEventTypes | Queries anomalous activity types. |
Data masking
|
API |
Title |
Description |
| DescribeDataMaskingTasks | Query static data masking tasks | Queries the list of static data masking tasks. |
| DescribeDataMaskingRunHistory | Query the execution status of data masking tasks | Queries the execution status of data masking tasks. |
| ExecDatamask | Perform dynamic data masking | Calls the ExecDatamask operation to perform dynamic data masking. |
| StopMaskingProcess | StopMaskingProcess | You can call the StopMaskingProcess operation to stop a data masking task. You can call the ManualTriggerMaskingProcess operation to restart a stopped task using its unique resource ID. |
| ManualTriggerMaskingProcess | Trigger a data masking task | Triggers a data masking task. |
Others
|
API |
Title |
Description |
| DescribeIdentifyTaskStatus | Retrieve detection task status | Retrieves the completion status of a detection task based on the task ID. You can obtain the task ID from the ID field in the response of the CreateScanTask or ScanOssObjectV1 operation. |
| RestoreOssImage | Restore a masked image | Restores a masked image. |
| MaskOssImage | Dynamically mask images | Masks images in storage objects. |