文档

DATASOURCE::PAI::Datasets

更新时间:

DATASOURCE::PAI::Datasets类型用于查询数据集基础信息。

语法

{
  "Type": "DATASOURCE::PAI::Datasets",
  "Properties": {
    "SourceId": String,
    "WorkspaceId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

SourceId

String

来源ID。

取值:

  • 当SourceType为USER时,可以自定义SourceId。

  • 当SourceType为ITAG时,即ITAG模块对结果生成的数据集进行标签处理时,SourceId为ITAG的任务ID。  

  • 当SourceType为PAI_PUBLIC_DATASET,即使用PAI公共数据集创建的数据集时,SourceId默认为空。 

WorkspaceId

String

数据集所在工作空间ID。

返回值

Fn::GetAtt

  • Datasets:数据集详情列表

  • DatasetIds:数据集ID列表

属性名称

类型

描述

约束

DatasetIds

List

数据集ID列表

Datasets

List

数据集详情列表

Accessibility

String

工作空间可见度。

CreateTime

String

创建时间。

Options

String

扩展字段

DataType

String

数据类型

SourceType

String

来源类型

Property

String

数据集属性。

Uri

String

URI配置

OwnerId

String

主账户ID。

DatasetName

String

数据集名称。

GmtModifiedTime

String

更新时间。

UserId

String

用户ID。

DataSourceType

String

数据源类型。

SourceId

String

来源ID。

Description

String

描述。

DatasetId

String

数据集ID。

WorkspaceId

String

数据集所在工作空间ID。

示例

YAML格式

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

JSON格式

{
  "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"
        ]
      }
    }
  }
}
  • 本页导读 (1)
文档反馈