Queries basic information about datasets in a Platform for AI (PAI) workspace.
Syntax
{
"Type": "DATASOURCE::PAI::Datasets",
"Properties": {
"SourceId": String,
"WorkspaceId": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
SourceId |
String |
No |
Yes |
The source ID. |
Valid values:
|
|
WorkspaceId |
String |
Yes |
Yes |
The ID of the workspace to which the dataset belongs. |
None. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values
Fn::GetAtt
-
Datasets: The details of the datasets.
-
DatasetIds: The IDs of the datasets.
|
Property |
Type |
Description |
Constraint |
|
DatasetIds |
List |
The IDs of the datasets. |
None. |
|
Datasets |
List |
Details of the datasets. |
None. |
|
Accessibility |
String |
The accessibility of the workspace. |
None. |
|
CreateTime |
String |
The creation time. |
None. |
|
Options |
String |
The extended fields. |
None. |
|
DataType |
String |
The data type. |
None. |
|
SourceType |
String |
The source type. |
None. |
|
Property |
String |
The property of the dataset. |
None. |
|
Uri |
String |
The URI configuration. |
None. |
|
OwnerId |
String |
The ID of the Alibaba Cloud account. |
None. |
|
DatasetName |
String |
The dataset name. |
None. |
|
GmtModifiedTime |
String |
The update time. |
None. |
|
UserId |
String |
The user ID. |
None. |
|
DataSourceType |
String |
The type of the data source. |
None. |
|
SourceId |
String |
The source ID. |
None. |
|
Description |
String |
The description. |
None. |
|
DatasetId |
String |
The dataset ID. |
None. |
|
WorkspaceId |
String |
The ID of the workspace to which the dataset belongs. |
None. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
WorkspaceId:
Description: 'The ID of the workspace where the dataset is located. For details
about how to obtain the workspace ID, see [ListWorkspaces](~~ 449124 ~~).
If this parameter is not configured, the default workspace is used. If the default
workspace does not exist, an error is reported.'
Type: String
Resources:
ExtensionDataSource:
Properties:
WorkspaceId:
Ref: WorkspaceId
Type: DATASOURCE::PAI::Datasets
Outputs:
DatasetIds:
Description: The list of dataset IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DatasetIds
Datasets:
Description: The list of datasets.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Datasets{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"WorkspaceId": {
"Type": "String",
"Description": "The ID of the workspace where the dataset is located. For details about how to obtain the workspace ID, see [ListWorkspaces](~~ 449124 ~~).\nIf this parameter is not configured, the default workspace is used. If the default workspace does not exist, an error is reported."
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::PAI::Datasets",
"Properties": {
"WorkspaceId": {
"Ref": "WorkspaceId"
}
}
}
},
"Outputs": {
"Datasets": {
"Description": "The list of datasets.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Datasets"
]
}
},
"DatasetIds": {
"Description": "The list of dataset IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DatasetIds"
]
}
}
}
}