All Products
Search
Document Center

Security Center:CreateDataSet

Last Updated:Oct 27, 2025

Creates a dataset.

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-sas:CreateDataSet

create

*DataSet

acs:yundun-sas::{#accountId}:dataset/*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region of the Data Management center for threat analysis. Select a region based on where your assets are located. Valid values:

  • cn-hangzhou: Your assets are in the Chinese mainland.

  • ap-southeast-1: Your assets are outside China.

cn-hangzhou

Lang

string

No

The language of the response. Valid values:

  • zh (default): Chinese.

  • en: English.

zh

DataSetName

string

Yes

The name of the dataset.

lmftest

DataSetDescription

string

No

The description of the dataset.

lmftest contains ip list

DataSetFieldKeyName

string

Yes

The name of the unique key for the dataset.

ip

DataSetFileName

string

Yes

The name of the uploaded dataset file.

cloudsiem-dataset/1358117679873357_17433*****.csv

IpWhitelistRecognizers

array<object>

No

The list of recognizers.

object

No

A recognizer.

IpWhitelistRecognizerType

string

No

The type of IP address that the recognizer detects. Valid values:

  • sas_vulnerability_scanner_ip: The IP address of the Security Center web vulnerability scanner.

  • waf_back_source_ip: The back-to-origin IP address of Web Application Firewall (WAF).

  • ddos_back_source_ip: The back-to-origin IP address of Anti-DDoS.

  • esa_back_source_ip: The back-to-origin IP address of an Edge Security Acceleration (ESA) node.

  • ecs_public_ip: The public IP address of an Elastic Compute Service (ECS) instance.

  • slb_public_ip: The public IP address of a Server Load Balancer (SLB) instance.

  • vpc_eip: An Elastic IP Address (EIP).

  • cdn_back_source_ip: The back-to-origin IP address of a content delivery network (CDN).

  • ga_back_source_ip: The back-to-origin IP address of Global Accelerator (GA).

waf_back_source_ip

AutoRecognizeStatus

string

No

The automatic detection status. Valid values:

  • enabled: enabled.

  • disabled: disabled.

enabled

RecognizeScope

string

No

The detection scope. Valid values:

  • current_account: the current account only.

  • rd_accounts: all accounts in your resource directory.

current_account

RoleFor

integer

No

The user ID of the member whose permissions are used to perform the operation. This parameter is used when an administrator acts on behalf of a member.

113091674488****

DataSetStatus

integer

No

The status of the dataset. Valid values:

  • 0: deleted.

  • 1: enabled.

1

DataSetType

string

No

The type of the dataset. Valid values:

  • custom: custom.

  • preset: predefined.

custom

Response elements

Element

Type

Description

Example

object

The response body.

RequestId

string

The request ID.

9AAA9ED9-78F4-5021-86DC-D51C7511****

DataSetRecordStatistic

object

The result returned after the dataset is created.

NewDataSetRecordCount

integer

The number of new records in the dataset.

6

DataSetId

string

The dataset ID.

dataset-qt0n8246gs9nackg****

Examples

Success response

JSON format

{
  "RequestId": "9AAA9ED9-78F4-5021-86DC-D51C7511****",
  "DataSetRecordStatistic": {
    "NewDataSetRecordCount": 6,
    "DataSetId": "dataset-qt0n8246gs9nackg****"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.