CreateDataset
Creates a dataset.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidataset:CreateDataset |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/datasets HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Name |
string |
Yes |
The name of the dataset. The name must meet the following requirements:
|
myName |
| Property |
string |
Yes |
The property of the dataset. Valid values:
Valid values:
|
DIRECTORY |
| DataSourceType |
string |
Yes |
The type of the data source. Valid values:
Valid values:
|
NAS |
| Uri |
string |
Yes |
The URI of the data. The URI format varies based on the
|
nas://09f****f2.cn-hangzhou/ |
| DataType |
string |
No |
The data type of the dataset. The default value is
Valid values:
|
COMMON |
| Labels |
array |
No |
A list of labels. |
|
| Label |
No |
The label to add to the dataset. |
||
| SourceType |
string |
No |
The source of the data. The default value is USER. Valid values:
|
USER |
| SourceId |
string |
No |
The ID of the data source.
|
jdnhf***fnrimv |
| Description |
string |
No |
A custom description to distinguish the dataset from other datasets. |
This is a description of the dataset. |
| WorkspaceId |
string |
No |
The ID of the workspace to which the dataset belongs. For more information about how to obtain a workspace ID, see ListWorkspaces. If this parameter is not specified, the default workspace is used. If the default workspace does not exist, an error is returned. |
478** |
| Options |
string |
No |
The extended fields, which are a JSON string.
When a Data Lake Compute (DLC) job uses the dataset, you can configure the |
{ "mountPath": "/mnt/data/" } |
| Accessibility |
string |
No |
The visibility of the dataset in the workspace. Valid values:
Valid values:
|
PRIVATE |
| ProviderType |
string |
No |
The type of the data source provider. Valid values:
|
Ecs |
| Provider |
string |
No |
The provider of the dataset. You cannot set this parameter to |
Github |
| UserId |
string |
No |
The Alibaba Cloud account ID of the dataset owner. Workspace owners and administrators can create datasets for specified members of a workspace. |
2485765****023475 |
| SourceDatasetId |
string |
No |
The ID of the source dataset for a labeled dataset. |
d-bvfasdfxxxxj8o411 |
| SourceDatasetVersion |
string |
No |
The version of the source dataset for a labeled dataset. |
v2 |
| VersionDescription |
string |
No |
The description of the initial version of the dataset. |
This is a description of the first dataset version. |
| VersionLabels |
array |
No |
A list of labels for the initial version. |
|
| Label |
No |
The label to add to the initial version of the dataset. |
||
| DataSize |
integer |
No |
The size of the dataset files, in bytes. |
10000 |
| DataCount |
integer |
No |
The number of files in the dataset. |
500 |
| MountAccessReadWriteRoleIdList |
array |
No |
A list of workspace role IDs that are granted read and write permissions when the dataset is mounted. Role IDs that start with
|
|
|
string |
No |
The workspace role ID. |
PAI.AlgoOperator |
|
| ImportInfo |
string |
No |
The storage import configuration of the dataset. |
{ "region": "cn-wulanchabu", "fileSystemId": "bmcpfs-xxxxxxxxxxx", "path": "/mnt", "mountTarget": "cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com", "isVpcMount": true } |
| Edition |
string |
No |
The edition of the dataset. The default value is BASIC. Valid values:
Valid values:
|
ADVANCED |
| AccessibleRoleIdList |
array |
No |
This parameter takes effect only when |
|
|
string |
No |
The workspace role ID. |
PAI.AlgoOperator |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response body. |
||
| RequestId |
string |
The ID of the request. |
B2C51F93-1C07-5477-9705-5FDB****F19F |
| DatasetId |
string |
The ID of the dataset. |
d-rbvg5*****jhc9ks92 |
Examples
Success response
JSON format
{
"RequestId": "B2C51F93-1C07-5477-9705-5FDB****F19F",
"DatasetId": "d-rbvg5*****jhc9ks92"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.