Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::PAI::Dataset

Última atualização: Jun 27, 2026

Consulta um conjunto de dados do PAI.

Sintaxe

{
  "Type": "DATASOURCE::PAI::Dataset",
  "Properties": {
    "DatasetId": String,
    "WorkspaceId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

DatasetId

String

Sim

Sim

ID do conjunto de dados.

Nenhuma.

WorkspaceId

String

Sim

Sim

ID do workspace do conjunto de dados.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos de source durante atualizações da stack.

Valores válidos:

  • Never (padrão): não atualize os recursos de source durante atualizações da stack.

  • Always: atualize os recursos de source durante atualizações da stack.

Valores de retorno

Fn::GetAtt

  • Options: campos estendidos.

  • Description: descrição.

  • Accessibility: acessibilidade do workspace.

  • SourceId: ID da source.

  • CreateTime: hora de criação.

  • SourceType: tipo da source.

  • WorkspaceId: ID do workspace do conjunto de dados.

  • Uri: configurações de URI.

  • GmtModifiedTime: hora da última modificação.

  • DatasetId: ID do conjunto de dados.

  • OwnerId: ID da conta Alibaba Cloud.

  • DatasetName: nome do conjunto de dados.

  • UserId: ID do usuário.

  • DataSourceType: tipo de source de dados.

  • DataType: tipo de dados.

  • Property: propriedade do conjunto de dados.

Exemplos

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      WorkspaceId:
        Type: String
        Description:
          en: |-
            The ID of the workspace where the dataset is located. For details about how to obtain the workspace ID, see [ListWorkspaces].
            If this parameter is not configured, the default workspace is used. If the default workspace does not exist, an error is reported.
        Required: true
      DatasetId:
        Type: String
        Description:
          en: The first ID of the resource.
        Required: true
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::PAI::Dataset
        Properties:
          WorkspaceId:
            Ref: WorkspaceId
          DatasetId:
            Ref: DatasetId
    Outputs:
      Options:
        Description: The extended field, which is of the JsonString type.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Options
      Description:
        Description: Custom descriptions of datasets to distinguish between different datasets.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Description
      Accessibility:
        Description: Workspace visibility.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Accessibility
      SourceId:
        Description: The data source ID.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - SourceId
      CreateTime:
        Description: The creation time of the resource.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - CreateTime
      SourceType:
        Description: The data source type. The default value is USER.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - SourceType
      WorkspaceId:
        Description: The ID of the workspace where the dataset is located.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - WorkspaceId
      Uri:
        Description: The Uri configuration sample is as follows:.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Uri
      GmtModifiedTime:
        Description: Update time.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - GmtModifiedTime
      DatasetId:
        Description: The first ID of the resource.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DatasetId
      OwnerId:
        Description: The ID of the primary account.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - OwnerId
      DatasetName:
        Description: The name of the dataset.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DatasetName
      UserId:
        Description: The ID of the user to which the dataset belongs.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - UserId
      DataSourceType:
        Description: The data source type.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DataSourceType
      DataType:
        Description: The dataset type. The default value is COMMON.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DataType
      Property:
        Description: The properties of the dataset.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Property
    
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "WorkspaceId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the workspace where the dataset is located. For details about how to obtain the workspace ID, see [ListWorkspaces].\nIf this parameter is not configured, the default workspace is used. If the default workspace does not exist, an error is reported."
          },
          "Required": true
        },
        "DatasetId": {
          "Type": "String",
          "Description": {
            "en": "The first ID of the resource."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::PAI::Dataset",
          "Properties": {
            "WorkspaceId": {
              "Ref": "WorkspaceId"
            },
            "DatasetId": {
              "Ref": "DatasetId"
            }
          }
        }
      },
      "Outputs": {
        "Options": {
          "Description": "The extended field, which is of the JsonString type.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Options"
            ]
          }
        },
        "Description": {
          "Description": "Custom descriptions of datasets to distinguish between different datasets.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Description"
            ]
          }
        },
        "Accessibility": {
          "Description": "Workspace visibility.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Accessibility"
            ]
          }
        },
        "SourceId": {
          "Description": "The data source ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "SourceId"
            ]
          }
        },
        "CreateTime": {
          "Description": "The creation time of the resource.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CreateTime"
            ]
          }
        },
        "SourceType": {
          "Description": "The data source type. The default value is USER.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "SourceType"
            ]
          }
        },
        "WorkspaceId": {
          "Description": "The ID of the workspace where the dataset is located.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "WorkspaceId"
            ]
          }
        },
        "Uri": {
          "Description": "The Uri configuration sample is as follows:.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Uri"
            ]
          }
        },
        "GmtModifiedTime": {
          "Description": "Update time.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "GmtModifiedTime"
            ]
          }
        },
        "DatasetId": {
          "Description": "The first ID of the resource.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DatasetId"
            ]
          }
        },
        "OwnerId": {
          "Description": "The ID of the primary account.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "OwnerId"
            ]
          }
        },
        "DatasetName": {
          "Description": "The name of the dataset.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DatasetName"
            ]
          }
        },
        "UserId": {
          "Description": "The ID of the user to which the dataset belongs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "UserId"
            ]
          }
        },
        "DataSourceType": {
          "Description": "The data source type.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DataSourceType"
            ]
          }
        },
        "DataType": {
          "Description": "The dataset type. The default value is COMMON.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DataType"
            ]
          }
        },
        "Property": {
          "Description": "The properties of the dataset.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Property"
            ]
          }
        }
      }
    }