From 7347bac4ab7e136157fc94777e6cf87ef9e08599 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 13 Feb 2026 10:54:11 +0800 Subject: first commit --- .../zh_cn/dataworks-public/2020-05-18/api-docs.php | 66429 +++++++++++++++++++ 1 file changed, 66429 insertions(+) create mode 100644 data/zh_cn/dataworks-public/2020-05-18/api-docs.php (limited to 'data/zh_cn/dataworks-public/2020-05-18/api-docs.php') diff --git a/data/zh_cn/dataworks-public/2020-05-18/api-docs.php b/data/zh_cn/dataworks-public/2020-05-18/api-docs.php new file mode 100644 index 0000000..c45acf8 --- /dev/null +++ b/data/zh_cn/dataworks-public/2020-05-18/api-docs.php @@ -0,0 +1,66429 @@ + '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'dataworks-public', + 'version' => '2020-05-18', + ], + 'directories' => [ + [ + 'id' => 120438, + 'title' => '租户', + 'type' => 'directory', + 'children' => [ + 'ListCalcEngines', + 'CreateDataSource', + 'ListDataSources', + 'UpdateDataSource', + 'DeleteDataSource', + 'ListResourceGroups', + 'GetProject', + 'AddProjectMemberToRole', + 'CreateProjectMember', + 'DeleteProjectMember', + 'ListProjectRoles', + 'RemoveProjectMemberFromRole', + 'ListProjectMembers', + 'ListProjects', + 'ListProjectIds', + 'CreateProject', + 'ChangeResourceManagerResourceGroup', + 'ListMeasureData', + ], + ], + [ + 'id' => 120453, + 'title' => '元数据', + 'type' => 'directory', + 'children' => [ + 'ListTables', + 'GetMetaDBInfo', + 'GetMetaDBTableList', + 'CheckMetaTable', + 'CheckMetaPartition', + 'SearchMetaTables', + 'GetMetaTableBasicInfo', + 'GetMetaTableColumn', + 'GetMetaTablePartition', + 'GetMetaTableOutput', + 'GetMetaTableChangeLog', + 'GetMetaTableIntroWiki', + 'CreateMetaCategory', + 'DeleteMetaCategory', + 'UpdateMetaCategory', + 'GetMetaCategory', + 'GetMetaTableListByCategory', + 'AddToMetaCategory', + 'DeleteFromMetaCategory', + 'UpdateMetaTable', + 'UpdateMetaTableIntroWiki', + 'ListMetaDB', + 'UpdateTableModelInfo', + 'CreateTableTheme', + 'DeleteTableTheme', + 'UpdateTableTheme', + 'ListTableTheme', + 'GetMetaTableThemeLevel', + 'CreateTableLevel', + 'UpdateTableLevel', + 'DeleteTableLevel', + 'ListTableLevel', + 'UpdateMetaCollection', + 'ListMetaCollections', + 'ListMetaCollectionEntities', + 'DeleteMetaCollection', + 'GetMetaCollectionDetail', + 'DeleteMetaCollectionEntity', + 'AddMetaCollectionEntity', + 'CreateMetaCollection', + 'ListLineage', + 'DeleteLineageRelation', + 'RegisterLineageRelation', + 'GetMetaTableLineage', + 'GetMetaColumnLineage', + ], + ], + [ + 'id' => 120493, + 'title' => '数据开发', + 'type' => 'directory', + 'children' => [ + 'CreateFile', + 'CreateUdfFile', + 'CreateBusiness', + 'DeleteBusiness', + 'CreateFolder', + 'UpdateBusiness', + 'ListFiles', + 'EstablishRelationTableToBusiness', + 'SubmitFile', + 'ListBusiness', + 'GetFileVersion', + 'DeleteFolder', + 'DeleteFile', + 'GetDeployment', + 'UpdateFile', + 'GetFolder', + 'ListFileVersions', + 'GetFile', + 'ListFolders', + 'DeployFile', + 'UpdateUdfFile', + 'GetBusiness', + 'UpdateFolder', + 'ListDeployments', + 'UpdateIDEEventResult', + 'GetIDEEventDetail', + 'CreateResourceFile', + ], + ], + [ + 'id' => 120518, + 'title' => '数据集成', + 'type' => 'directory', + 'children' => [ + 'CreateDISyncTask', + 'DeleteDISyncTask', + 'UpdateDISyncTask', + 'TestNetworkConnection', + 'GetDataSourceMeta', + 'ListDIProjectConfig', + 'UpdateDIProjectConfig', + 'GetDISyncTask', + 'DeployDISyncTask', + 'GetDISyncInstanceInfo', + 'TerminateDISyncInstance', + 'GenerateDISyncTaskConfigForCreating', + 'GenerateDISyncTaskConfigForUpdating', + 'StartDISyncInstance', + 'StopDISyncInstance', + 'QueryDISyncTaskConfigProcessResult', + 'CreateDIJob', + 'DeleteDIJob', + 'GetDIJob', + 'ListDIJobs', + 'StartDIJob', + 'StopDIJob', + 'UpdateDIJob', + 'CreateDIAlarmRule', + 'DeleteDIAlarmRule', + 'GetDIAlarmRule', + 'ListDIAlarmRules', + 'UpdateDIAlarmRule', + ], + ], + [ + 'id' => 191818, + 'title' => '数据建模', + 'type' => 'directory', + 'children' => [ + 'QueryPublicModelEngine', + ], + ], + [ + 'id' => 120540, + 'title' => '运维中心', + 'type' => 'directory', + 'children' => [ + 'GetAlertMessage', + 'ListAlertMessages', + 'GetBaselineConfig', + 'ListNodesByBaseline', + 'ListBaselineConfigs', + 'GetBaselineKeyPath', + 'GetBaselineStatus', + 'ListBaselineStatuses', + 'DeleteRemind', + 'UpdateRemind', + 'CreateRemind', + 'GetRemind', + 'ListReminds', + 'ListTopics', + 'GetTopic', + 'GetTopicInfluence', + 'GetNode', + 'ListNodeInputOrOutput', + 'ListNodes', + 'GetNodeCode', + 'GetInstance', + 'ListInstances', + 'GetInstanceLog', + 'StopInstance', + 'RestartInstance', + 'SetSuccessInstance', + 'SuspendInstance', + 'ResumeInstance', + 'RunCycleDagNodes', + 'RunSmokeTest', + 'ListSuccessInstanceAmount', + 'ListInstanceAmount', + 'TopTenElapsedTimeInstance', + 'TopTenErrorTimesInstance', + 'GetFileTypeStatistic', + 'GetInstanceStatusStatistic', + 'ListFileType', + 'RunManualDagNodes', + 'ListManualDagInstances', + 'GetDag', + 'ListDags', + 'ListNodesByOutput', + 'RunTriggerNode', + 'GetNodeParents', + 'GetNodeChildren', + 'UpdateNodeRunMode', + 'UpdateNodeOwner', + 'UpdateWorkbenchEventResult', + 'ListShiftPersonnels', + 'ListShiftSchedules', + 'ListInstanceHistory', + 'ListInnerNodes', + 'OfflineNode', + 'GetBaseline', + 'DeleteBaseline', + 'ListBaselines', + 'CreateBaseline', + 'UpdateBaseline', + ], + ], + [ + 'id' => 120587, + 'title' => '数据质量', + 'type' => 'directory', + 'children' => [ + 'UpdateQualityFollower', + 'UpdateQualityRule', + 'GetQualityRule', + 'ListQualityRules', + 'CreateQualityRule', + 'DeleteQualityFollower', + 'DeleteQualityRule', + 'GetQualityFollower', + 'CreateQualityFollower', + 'DeleteQualityEntity', + 'GetQualityEntity', + 'CreateQualityEntity', + 'CreateQualityRelativeNode', + 'DeleteQualityRelativeNode', + 'ListQualityResultsByEntity', + 'ListQualityResultsByRule', + ], + ], + [ + 'id' => 120604, + 'title' => '数据服务', + 'type' => 'directory', + 'children' => [ + 'CreateDataServiceApi', + 'PublishDataServiceApi', + 'DeleteDataServiceApi', + 'ListDataServiceApis', + 'GetDataServiceApi', + 'UpdateDataServiceApi', + 'GetDataServicePublishedApi', + 'ListDataServicePublishedApis', + 'ListDataServiceApiAuthorities', + 'ListDataServiceAuthorizedApis', + 'AbolishDataServiceApi', + 'GetDataServiceApplication', + 'ListDataServiceApplications', + 'CreateDataServiceFolder', + 'GetDataServiceFolder', + 'ListDataServiceFolders', + 'CreateDataServiceGroup', + 'GetDataServiceGroup', + 'ListDataServiceGroups', + 'CreateDataServiceApiAuthority', + 'DeleteDataServiceApiAuthority', + 'ListDataServiceApiTest', + 'TestDataServiceApi', + 'GetDataServiceApiTest', + 'SubmitDataServiceApi', + 'SaveDataServiceApiTestResult', + ], + ], + [ + 'id' => 191820, + 'title' => '数据保护伞', + 'type' => 'directory', + 'children' => [ + 'GetOpSensitiveData', + 'DesensitizeData', + 'GetOpRiskData', + 'GetSensitiveData', + 'ScanSensitiveData', + 'DsgQuerySensResult', + 'QueryDefaultTemplate', + 'DsgStopSensIdentify', + 'QuerySensClassification', + 'QuerySensLevel', + 'QueryRecognizeRulesType', + 'DsgRunSensIdentify', + 'DeleteRecognizeRule', + 'QuerySensNodeInfo', + 'AddRecognizeRule', + 'EditRecognizeRule', + 'QueryRecognizeDataByRuleType', + 'QueryRecognizeRuleDetail', + 'DsgUserGroupGetOdpsRoleGroups', + 'DsgDesensPlanAddOrUpdate', + 'DsgPlatformQueryProjectsAndSchemaFromMeta', + 'DsgUserGroupDelete', + 'DsgWhiteListDeleteList', + 'DsgScenedDeleteScene', + 'DsgDesensPlanDelete', + 'DsgDesensPlanUpdateStatus', + 'DsgWhiteListQueryList', + 'DsgSceneAddOrUpdateScene', + 'DsgSceneQuerySceneListByName', + 'DsgUserGroupAddOrUpdate', + 'DsgUserGroupQueryList', + 'DsgUserGroupQueryUserList', + 'DsgDesensPlanQueryList', + 'DsgWhiteListAddOrUpdate', + 'DsgQueryDefaultTemplates', + ], + ], + [ + 'id' => 166717, + 'title' => '迁移助手', + 'type' => 'directory', + 'children' => [ + 'CreateImportMigration', + 'GetMigrationProcess', + 'StartMigration', + 'CreateExportMigration', + 'GetMigrationSummary', + 'ListMigrations', + ], + ], + [ + 'id' => 191821, + 'title' => '安全中心', + 'type' => 'directory', + 'children' => [ + 'CreatePermissionApplyOrder', + 'GetPermissionApplyOrderDetail', + 'ListPermissionApplyOrders', + 'ApprovePermissionApplyOrder', + 'RevokeTablePermission', + 'RevokeTablePermission', + ], + ], + [ + 'id' => 166724, + 'title' => '开放平台', + 'type' => 'directory', + 'children' => [ + 'ListExtensions', + 'GetExtension', + 'GetOptionValueForProject', + 'ListEnabledExtensionsForProject', + 'CallbackExtension', + 'ListCheckProcesses', + 'ListCheckProcesses', + ], + ], + [ + 'id' => 191836, + 'title' => '其他', + 'type' => 'directory', + 'children' => [ + 'UpdateTableAddColumn', + 'GetMetaTableFullInfo', + 'GetDDLJobStatus', + 'DeleteTable', + 'UpdateTable', + 'CreateTable', + 'CheckFileDeployment', + 'ListRefDISyncTasks', + 'ExportDataSources', + 'ImportDataSources', + 'UpdateClusterConfigs', + 'ListClusterConfigs', + 'ListClusters', + ], + ], + [ + 'id' => 120626, + 'title' => '废弃API', + 'type' => 'directory', + 'children' => [ + 'ListEntitiesByTags', + 'RemoveEntityTags', + 'SetEntityTags', + 'ListEntityTags', + 'SetDataSourceShare', + 'CreateConnection', + 'CreateDagComplement', + 'CreateDagTest', + 'CreateManualDag', + 'DeleteConnection', + 'UpdateConnection', + 'ListConnections', + 'GetProjectDetail', + 'ListNodeIO', + 'GetInstanceStatusCount', + 'ListProgramTypeCount', + 'GetManualDagInstances', + 'SearchNodesByOutput', + 'GetNodeTypeListInfo', + 'GetNodeOnBaseline', + 'GetSuccessInstanceTrend', + 'GetInstanceCountTrend', + 'GetInstanceConsumeTimeRank', + 'GetInstanceErrorRank', + ], + ], + ], + 'components' => [ + 'schemas' => [ + 'Cluster' => [ + 'title' => 'Cluster Information', + 'description' => '注册到 DataWorks 的集群的信息。', + 'type' => 'object', + 'properties' => [ + 'ClusterId' => [ + 'title' => 'Cluster ID Generated by DataWorks', + 'description' => 'DataWorks 生成的集群 ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '1234', + ], + 'ClusterBizId' => [ + 'title' => 'Cluster Business Identifier', + 'description' => '集群的业务唯一标识。', + 'type' => 'string', + 'required' => true, + 'example' => 'c-d8a7523****', + ], + ], + ], + 'ClusterConfig' => [ + 'title' => 'Cluster config', + 'description' => '集群配置信息。', + 'type' => 'object', + 'properties' => [ + 'ModuleName' => [ + 'title' => 'DataWorks module name', + 'description' => '配置在哪个模块生效,支持的模块如下:'."\n" + .'- scheduler.test:运维中心 - 测试实例。'."\n" + .'- scheduler.manual:运维中心 - 手动实例。'."\n" + .'- ide:DataStudio(数据开发)。'."\n" + .'- scheduler.backfill:运维中心 - 补数据实例。'."\n" + .'- da:数据分析。'."\n" + .'- scheduler.auto:运维中心 - 周期实例。', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'ide', + ], + 'ConfigValue' => [ + 'title' => 'Config value', + 'description' => '配置值。', + 'type' => 'string', + 'example' => '{"spark.driver.memory":"1g"}', + ], + 'EnableOverwrite' => [ + 'title' => 'Whether to overwrite node config', + 'description' => '是否覆盖数据开发中节点的高级设置:'."\n" + .'- true(覆盖)'."\n" + .'- false(不覆盖)', + 'type' => 'boolean', + 'enumValueTitles' => [], + 'example' => 'false', + ], + ], + ], + 'Collection' => [ + 'title' => 'Definition of Collection', + 'description' => '集合定义。', + 'type' => 'object', + 'properties' => [ + 'QualifiedName' => [ + 'title' => 'Unique identifier of identity', + 'description' => '集合唯一标识。', + 'type' => 'string', + 'example' => 'album.12334', + ], + 'CollectionType' => [ + 'title' => 'Collection Type', + 'description' => '集合类型。'."\n" + .'- **ALBUM**:专辑类型。'."\n" + .'- **ALBUM_CATEGORY**:专辑中的子类目类型。', + 'type' => 'string', + 'example' => 'album', + ], + 'Name' => [ + 'title' => 'The name of the collection', + 'description' => '集合名称。', + 'type' => 'string', + 'example' => 'collectionName', + ], + 'Comment' => [ + 'title' => 'The comment of the collection', + 'description' => '备注信息。', + 'type' => 'string', + 'example' => 'comment', + ], + 'OwnerId' => [ + 'title' => 'The ownerId of the collection', + 'description' => '集合所属人ID(阿里云账号ID)。', + 'type' => 'string', + 'example' => '1234444', + ], + 'OwnerName' => [ + 'title' => 'The name of the collection owner', + 'description' => '集合所属人名称。', + 'type' => 'string', + 'example' => 'owner', + ], + 'CreateTime' => [ + 'title' => 'The create timestamp of the collection', + 'description' => '创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1668600147617', + ], + 'UpdateTime' => [ + 'title' => 'The update timestamp of the collection', + 'description' => '更新时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1668600148617', + ], + 'Level' => [ + 'title' => 'The level of the collection', + 'description' => '集合层级。'."\n" + .'只有ALBUM_CATEGORY类型会返回该参数,目前支持4层。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + 'Entity' => [ + 'title' => 'Definition of Entity', + 'description' => '实体定义。', + 'type' => 'object', + 'properties' => [ + 'QualifiedName' => [ + 'title' => 'Unique identifier of identity', + 'description' => '实体唯一标识。'."\n" + .'例如:maxcompute-table.projectA.tableB', + 'type' => 'string', + 'example' => 'maxcompute_table.563f0357118d05ef145d6bddf2966cc23e86ca8f2f013f915e565afdf09f7a23', + ], + 'TenantId' => [ + 'title' => 'Identifier of tenant', + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'EntityContent' => [ + 'title' => 'Attribute map', + 'description' => '实体的其他属性。包括:'."\n" + .'- **entityType**:实体类型。例如,maxcompute-table、emr-table等。'."\n" + .'- **name**:实体名称。'."\n" + .'- **projectName**:MaxCompute项目名称。', + 'type' => 'object', + ], + ], + ], + 'LineageEntityVO' => [ + 'title' => 'Definition of entity in lineage', + 'description' => '注册血缘时的实体对象', + 'type' => 'object', + 'properties' => [ + 'QualifiedName' => [ + 'title' => 'Unique identifier of entity', + 'description' => 'Unique identifier of entity', + 'type' => 'string', + 'example' => 'maxcompute-table.projectName.tablename', + ], + 'Name' => [ + 'title' => 'Name of entity', + 'description' => 'Name of entity', + 'type' => 'string', + 'example' => 'tableName', + ], + 'ParentName' => [ + 'title' => 'Parent name of entity', + 'description' => 'Parent name of entity', + 'type' => 'string', + 'example' => 'dbName', + ], + 'DetailUrl' => [ + 'title' => 'Detail url of entity', + 'description' => 'Detail url of entity', + 'type' => 'string', + 'example' => 'http://domain.test.url/entity', + ], + 'EntityType' => [ + 'title' => 'Entity type', + 'description' => 'Entity type', + 'type' => 'string', + 'example' => 'maxcompute-table', + ], + 'Owner' => [ + 'title' => 'Owner', + 'description' => 'Owner', + 'type' => 'string', + 'example' => 'owner', + ], + 'Attributes' => [ + 'title' => 'Other attributes', + 'description' => 'Other attributes', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + ], + 'example' => 'attribute map', + ], + ], + ], + 'LineageRelationRegisterBulkVO' => [ + 'title' => 'A short description of struct', + 'type' => 'object', + 'properties' => [ + 'SrcEntities' => [ + 'title' => 'All source entities', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/LineageEntityVO', + ], + ], + 'DestEntities' => [ + 'title' => 'All destination entities', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/LineageEntityVO', + ], + ], + 'Relationship' => [ + 'title' => 'relationship between entities', + '$ref' => '#/components/schemas/RelationshipVO', + ], + 'CreateTimestamp' => [ + 'title' => 'The time of lineage relation generation', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1684327487964', + ], + ], + ], + 'LineageRelationRegisterTaskVO' => [ + 'title' => 'A short description of struct', + 'type' => 'object', + 'properties' => [ + 'InputEntities' => [ + 'title' => 'All input entities', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/LineageEntityVO', + ], + ], + 'OutputEntities' => [ + 'title' => 'All output entities', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/LineageEntityVO', + ], + ], + 'CreateTimestamp' => [ + 'title' => 'The time of lineage relation generation', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1684327487964', + ], + 'QualifiedName' => [ + 'title' => 'Unique identifier of entity', + 'type' => 'string', + 'example' => 'pai_dlcjob-task.12304', + ], + 'Name' => [ + 'title' => 'Task name', + 'type' => 'string', + 'example' => 'pai-task name', + ], + 'Attributes' => [ + 'title' => 'Other task attributes', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'example' => 'owner', + ], + ], + ], + ], + 'LineageRelationRegisterVO' => [ + 'title' => 'Lineage relation register struct', + 'description' => '血缘关系注册结构体', + 'type' => 'object', + 'properties' => [ + 'SrcEntity' => [ + 'title' => 'The source entity in lineage relation', + 'description' => 'The source entity in lineage relation', + '$ref' => '#/components/schemas/LineageEntityVO', + ], + 'DestEntity' => [ + 'title' => 'The destination entity in lineage relation', + 'description' => 'The destination entity in lineage relation', + '$ref' => '#/components/schemas/LineageEntityVO', + ], + 'Relationship' => [ + 'title' => 'The relationship between entities', + 'description' => 'The relationship between entities', + '$ref' => '#/components/schemas/RelationshipVO', + ], + 'CreateTimestamp' => [ + 'title' => 'The time of lineage relation generation', + 'description' => 'The time of lineage relation generation', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1684327487964', + ], + ], + ], + 'RelationshipVO' => [ + 'title' => 'relationship info', + 'description' => '实体关系结构体', + 'type' => 'object', + 'properties' => [ + 'RelationshipType' => [ + 'title' => 'Type name of relationship', + 'description' => 'Type name of relationship', + 'type' => 'string', + 'example' => 'sql', + ], + 'RelationshipGuid' => [ + 'title' => 'Relationship uniqId', + 'description' => 'Relationship uniqId', + 'type' => 'string', + ], + 'Attributes' => [ + 'title' => 'other attribute', + 'description' => 'other attribute', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'example' => 'key-value', + ], + ], + ], + ], + 'UserEntityTag' => [ + 'title' => '标签', + 'description' => '标签', + 'type' => 'object', + 'properties' => [ + 'TagKey' => [ + 'title' => '标签 Key', + 'description' => '标签 Key', + 'type' => 'string', + 'example' => 'priority', + ], + 'TagValue' => [ + 'title' => '标签 Value', + 'description' => '标签 Value', + 'type' => 'string', + 'example' => 'p1', + ], + ], + ], + ], + ], + 'apis' => [ + 'ListCalcEngines' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所属的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '466230'."\n", + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '查询的数据源名称,精确匹配。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'test_mc', + ], + ], + [ + 'name' => 'CalcEngineType', + 'in' => 'query', + 'schema' => [ + 'description' => '查询的数据源类型。目前范围如下,不区分大小写。'."\n" + .'- **ODPS**'."\n" + .'- **EMR**'."\n" + .'- **BLINK**'."\n" + .'- **HOLO**'."\n" + .'- **MaxGraph**'."\n" + .'- **HYBRIDDB_FOR_POSTGRESQL**'."\n" + .'- **ADB_MYSQL**'."\n" + .'- **HADOOP_CDH**'."\n" + .'- **CLICKHOUSE**', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'ODPS', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所属的环境。'."\n" + .'- **DEV**:开发环境'."\n" + .'- **PRD**:生产环境。', + 'type' => 'string', + 'required' => false, + 'example' => 'PRD', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询时每页显示的数据量,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询的页码。大于等于1的正整数,默认为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + 'Success' => [ + 'description' => '请求是否成功,取值如下:'."\n" + .'- **true**:请求成功。'."\n" + .'- **false**:请求失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '分页查询结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '20', + ], + 'TotalCount' => [ + 'description' => '数据源的总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'CalcEngines' => [ + 'description' => '数据源列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据源信息。', + 'type' => 'object', + 'properties' => [ + 'BindingProjectName' => [ + 'description' => '数据源关联的工作空间名称。', + 'type' => 'string', + 'example' => 'test_project', + ], + 'IsDefault' => [ + 'description' => '是否为当前类型的默认数据源。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'EngineId' => [ + 'description' => '数据源ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '35', + ], + 'DwRegion' => [ + 'description' => '数据源关联的DataWorks工作空间所在的地域。', + 'type' => 'string', + 'example' => 'cn-zhangjiakou', + ], + 'TaskAuthType' => [ + 'description' => '数据源的访问身份。'."\n" + .'- **USER**:当前用户。'."\n" + .'- **PROJECT**:项目执行用户。'."\n" + .'- **SUBACCOUNT**:子账号。'."\n" + .'- **STS_ROLE**:STS角色。', + 'type' => 'string', + 'example' => 'PROJECT', + ], + 'CalcEngineType' => [ + 'description' => '数据源类型。', + 'type' => 'string', + 'example' => 'ODPS', + ], + 'EngineInfo' => [ + 'description' => '数据源的详细信息。'."\n" + .'- ODPS'."\n" + .' ```'."\n" + .' {'."\n" + .' "pubEndpoint": "service.cn.maxcompute.aliyun.com/api",'."\n" + .' "endpoint": "service.cn.maxcompute.aliyun-inc.com/api",'."\n" + .' "initProperties": " '."\n" + .' {\\"odpsTypeMode\\":\\"STANDARD\\",\\"openPai\\":false,\\"openPaiGpu\\":false}",'."\n" + .' "resourceGroupType": "ODPS",'."\n" + .' "resourceGroupId": "361826516****",'."\n" + .' "vpcEndpoint": "service.cn.maxcompute.aliyun-inc.com/api",'."\n" + .' "projectName": "onefall_test_zjk",'."\n" + .' "taskSameAsOwner": "true"'."\n" + .' }'."\n" + .' ```'."\n" + .'- EMR'."\n" + .' ```'."\n" + .' {'."\n" + .' "emrClusterId": "C-xxx",'."\n" + .' "specs": "{\\"emrClusterId\\":\\"C-xxx\\",\\"emrAccessMode\\":\\"simple\\",\\"emrResourceQueueName\\":\\"default\\",\\"emrProjectId\\":\\"FP-xxx\\"}",'."\n" + .' "endpoint": "emr.aliyuncs.com",'."\n" + .' "emrResourceQueueName": "default",'."\n" + .' "emrAccessMode": "simple",'."\n" + .' "resourceGroupType": "DW",'."\n" + .' "projectName": "xx-xxxx",'."\n" + .' "emrProjectId": "FP-xxxx",'."\n" + .' "taskSameAsOwner": "false"'."\n" + .' } '."\n" + .' ```'."\n" + .'- BLINK'."\n" + .' ```'."\n" + .' {'."\n" + .' "bayesProjectId": "xxxx",'."\n" + .' "bayesProjectName": "xc_blxxixxxnk_1",'."\n" + .' "cluster": "xxxssxsx",'."\n" + .' "endpoint": "https://stream.console.aliyun.com",'."\n" + .' "engineType": "BLINK",'."\n" + .' "name": "xsxsxxxxx",'."\n" + .' "projectName": "xc_blxxxsxink_1",'."\n" + .' "queue": "root.xc_blxsxxxxxxink_1",'."\n" + .' "resourceGroupType": "DW",'."\n" + .' "specs": "{\\"cluster\\":\\"xxxxxx\\",\\"bayesProjectName\\":\\"xc_blxxixxxnk_1\\",\\"bayesProjectId\\":\\"ssxxxsa\\",\\"name\\":\\"sxsxsxxx\\",\\"queue\\":\\"root.sxxsxxsx\\"}",'."\n" + .' "taskSameAsOwner": false'."\n" + .' }'."\n" + .' ```'."\n" + .'- HOLO'."\n" + .' ```'."\n" + .' {'."\n" + .' "endpoint": "hgprecn-cn-xsxssxsx-cn-shanghai-internal.hologres.aliyuncs.com:80",'."\n" + .' "engineType": "ODPS",'."\n" + .' "odpsEndpoint": "hgprecn-cn-xsxssxxs-cn-shanghai-internal.hologres.aliyuncs.com:80",'."\n" + .' "odpsProjectName": "xsxssxsxsx",'."\n" + .' "projectName": "xsxssxsxsx",'."\n" + .' "resourceGroupType": "DW",'."\n" + .' "specs": "{\\"pubEndpoint\\":\\"hgprecn-cn-xsxssxsxs-cn-shanghai.hologres.aliyuncs.com:80\\",\\"commonBuyInstanceId\\":\\"hgprecn-cn-xsxsxsxs\\",\\"project\\":\\"holo_upxsxgrade1\\",\\"common_buy_instance_id\\":\\"hgprecn-cn-xsxsxs\\",\\"endpoint\\":\\"hgprecn-cn-xsxxsxs-cn-shanghai-internal.hologres.aliyuncs.com:80\\",\\"port\\":\\"80\\",\\"host\\":\\"hgprecn-cn-xsxsxsxs-cn-shanghai-internal.hologres.aliyuncs.com\\",\\"vpcEndpoint\\":\\"hgprecn-cn-xsxsxsxs-cn-shanghai-vpc.hologres.aliyuncs.com:80\\",\\"authType\\":2,\\"region\\":\\"cn-shanghai\\"}",'."\n" + .' "taskSameAsOwner": false'."\n" + .' }'."\n" + .' ```'."\n" + .'- MaxGraph'."\n" + .' ```'."\n" + .' {'."\n" + .' "endpoint": "http://pre-graphcompute.aliyuncs.com",'."\n" + .' "engineType": "ODPS",'."\n" + .' "odpsEndpoint": "http://pre-graphcompute.aliyuncs.com",'."\n" + .' "odpsProjectName": "xsxsxsxs",'."\n" + .' "projectName": "xsxsxsxs",'."\n" + .' "resourceGroupType": "DW",'."\n" + .' "taskSameAsOwner": false'."\n" + .' }'."\n" + .' ```'."\n" + .'- HYBRIDDB_FOR_POSTGRESQL'."\n" + .' ```'."\n" + .' {'."\n" + .' "endpoint": "hybriddb_for_postgresql_mo12121ck_endpoint",'."\n" + .' "engineType": "ODPS",'."\n" + .' "odpsEndpoint": "hybriddb_for_postgresql_m121212ock_endpoint",'."\n" + .' "odpsProjectName": "sxasaxsaxaxas",'."\n" + .' "projectName": "sxasaxsaxaxas",'."\n" + .' "resourceGroupType": "DW",'."\n" + .' "specs": "{\\"connectionString\\":\\"gp-xsxsxsxxs.gpdb.rds.aliyuncs.com\\",\\"database\\":\\"xsxsxxsxs\\",\\"password\\":\\"xxxxxxx\\",\\"instanceId\\":\\"gp-cdcdacdacda\\",\\"port\\":\\"3432\\",\\"ownerId\\":\\"12121212\\",\\"username\\":\\"sdasaddsa\\"}",'."\n" + .' "taskSameAsOwner": false'."\n" + .' }'."\n" + .' ```'."\n" + .'- ADB_MYSQL'."\n" + .' ```'."\n" + .' {'."\n" + .' "endpoint": "adb_mysql_mock_endpoint",'."\n" + .' "engineType": "ODPS",'."\n" + .' "odpsEndpoint": "adb_mysql_mock_endpoint",'."\n" + .' "odpsProjectName": "am-xsaxaxa",'."\n" + .' "projectName": "am-xsxsaxa",'."\n" + .' "resourceGroupType": "DW",'."\n" + .' "specs": "{\\"connectionString\\":\\"am-xsaxsa.ads.aliyuncs.com:3306\\",\\"database\\":\\"xsaxsaxa\\",\\"password\\":\\"xsaxsaxassxsa\\",\\"instanceId\\":\\"am-xsaxsasx\\",\\"username\\":\\"xsaxsadsd\\"}",'."\n" + .' "taskSameAsOwner": false'."\n" + .' }'."\n" + .' ```'."\n" + .'- HADOOP_CDH'."\n" + .' ```'."\n" + .' {'."\n" + .' "bindingBaseId": "xsaxsaxs",'."\n" + .' "endpoint": "xsaaaaa",'."\n" + .' "engineType": "ODPS",'."\n" + .' "odpsEndpoint": "axsxaxssxs",'."\n" + .' "odpsProjectName": "ssxxax",'."\n" + .' "projectName": "xsaxsaxsa",'."\n" + .' "resourceGroupId": 45208xxxxxx,'."\n" + .' "resourceGroupType": "GATEWAY",'."\n" + .' "specs": "{\\"cluster\\":{\\"hive\\":{\\"hiveServer2Url\\":\\"jdbc:hive2://xxxxxxer-1-cn-shanghai-pre-kerberos-1:10000\\",\\"hiveMetastore\\":\\"thrift://xxxxxxxr-1-cn-shanghai-pre-kerberos-1:9083\\",\\"version\\":\\"2.1.1\\"},\\"configFiles\\":{\\"coreSite\\":\\"4534574xxxxxx\\",\\"hdfsSite\\":\\"453457919xxxxxxx\\",\\"mapredSite\\":\\"45345750xxxxxx\\",\\"yarnSite\\":\\"4534575xxxxx\\",\\"krb5Conf\\":\\"4534576xxxxx1\\",\\"hiveSite\\":\\"453457xxxxx20\\"},\\"spark\\":{\\"version\\":\\"2.4.0\\"},\\"cdh\\":{\\"version\\":\\"6.3.2\\"},\\"hdfs\\":{\\"version\\":\\"3.0.0\\"},\\"impala\\":{\\"impalaUrl\\":\\"jdbc:impala://cdh-xsxssxxsx-1-cn-shanghai-pre-kerberos-1:21050\\",\\"version\\":\\"3.2.0\\"},\\"yarn\\":{\\"YarnUrl\\":\\"http://cdh-xsxsxsxsxs-1-cn-shanghai-pre-kerberos-1:8032\\",\\"webUrl\\":\\"http://cdh-xsxsxssxxssx-1-cn-shanghai-pre-kerberos-1:8088\\",\\"version\\":\\"3.0.0\\"},\\"presto\\":{\\"prestoUrl\\":\\"jdbc:presto://cdh-xssxsxxsxsxs-1-cn-shanghai-pre-kerberos-1:8080/hive/default\\",\\"version\\":\\"0.244.1\\"}},\\"instanceId\\":161sdads733,\\"authDetail\\":{\\"principal\\":\\"hive@HADOOP.COM\\",\\"keytabFileId\\":\\"45345815xsxsxs3\\",\\"type\\":\\"kerberos\\",\\"username\\":\\"xsxsxsxsa@HADOOP.COM\\"},\\"resGroupStatus\\":\\"\\",\\"hadoopAuthType\\":\\"kerberos\\",\\"clusterIdentifier\\":\\"xssxsxsxsx\\",\\"clusterId\\":xsxsx,\\"resGroupId\\":4520870619xsxssxxs,\\"accessMode\\":\\"security\\",\\"authType\\":2}",'."\n" + .' "taskSameAsOwner": false'."\n" + .' }'."\n" + .' ```', + 'type' => 'object', + 'example' => '{'."\n" + .' "pubEndpoint": "service.cn.maxcompute.aliyun.com/api",'."\n" + .' "endpoint": "service.cn.maxcompute.aliyun-inc.com/api",'."\n" + .' "initProperties": " {\\"odpsTypeMode\\":\\"STANDARD\\",\\"openPai\\":false,\\"openPaiGpu\\":false}",'."\n" + .' "resourceGroupType": "ODPS",'."\n" + .' "resourceGroupId": "361826516****",'."\n" + .' "vpcEndpoint": "service.cn.maxcompute.aliyun-inc.com/api",'."\n" + .' "projectName": "onefall_test_zjk",'."\n" + .' "taskSameAsOwner": "true"'."\n" + .'}', + ], + 'EnvType' => [ + 'description' => '数据源所在的环境。'."\n" + .'- **DEV**:开发环境。'."\n" + .'- **PRD**:生产环境。', + 'type' => 'string', + 'example' => 'PRD', + ], + 'Region' => [ + 'description' => '数据源所在的地域。', + 'type' => 'string', + 'example' => 'cn-zhangjiakou', + ], + 'GmtCreate' => [ + 'description' => '数据源的创建时间。', + 'type' => 'string', + 'example' => 'Oct 10, 2019 3:42:44 PM', + ], + 'BindingProjectId' => [ + 'description' => '数据源所在的工作空间ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '466230', + ], + 'Name' => [ + 'description' => '数据源的显示名称。', + 'type' => 'string', + 'example' => 'test_mc', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234567', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + [ + 'errorCode' => 'Invalid.CalcEngineEnvType', + 'errorMessage' => 'The specified envType %s is invalid.', + ], + [ + 'errorCode' => 'Invalid.CalcEngineType', + 'errorMessage' => 'The specified calcEngineType %s is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1,\\n \\"CalcEngines\\": [\\n {\\n \\"BindingProjectName\\": \\"test_project\\",\\n \\"IsDefault\\": true,\\n \\"EngineId\\": 35,\\n \\"DwRegion\\": \\"cn-zhangjiakou\\",\\n \\"TaskAuthType\\": \\"PROJECT\\",\\n \\"CalcEngineType\\": \\"ODPS\\",\\n \\"EngineInfo\\": {\\n \\"pubEndpoint\\": \\"service.cn.maxcompute.aliyun.com/api\\",\\n \\"endpoint\\": \\"service.cn.maxcompute.aliyun-inc.com/api\\",\\n \\"initProperties\\": \\" {\\\\\\"odpsTypeMode\\\\\\":\\\\\\"STANDARD\\\\\\",\\\\\\"openPai\\\\\\":false,\\\\\\"openPaiGpu\\\\\\":false}\\",\\n \\"resourceGroupType\\": \\"ODPS\\",\\n \\"resourceGroupId\\": \\"361826516****\\",\\n \\"vpcEndpoint\\": \\"service.cn.maxcompute.aliyun-inc.com/api\\",\\n \\"projectName\\": \\"onefall_test_zjk\\",\\n \\"taskSameAsOwner\\": \\"true\\"\\n },\\n \\"EnvType\\": \\"PRD\\",\\n \\"Region\\": \\"cn-zhangjiakou\\",\\n \\"GmtCreate\\": \\"Oct 10, 2019 3:42:44 PM\\",\\n \\"BindingProjectId\\": 466230,\\n \\"Name\\": \\"test_mc\\",\\n \\"TenantId\\": 1234567\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0bc1ec92159376****\\n true\\n \\n 1\\n 20\\n 1\\n \\n abc\\n true\\n 35\\n cn-zhangjiakou\\n PROJECT\\n ODPS\\n PRD\\n cn-zhangjiakou\\n Oct 10, 2019 3:42:44 PM\\n 27\\n abc\\n 1234567\\n \\n \\n","errorExample":""}]', + 'title' => '查看数据开发中绑定的数据源列表', + 'summary' => '该接口用于查询指定DataWorks工作空间的数据开发中绑定的数据源列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateDataSource' => [ + 'summary' => '该接口用于创建DataWorks数据源。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'high', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATUREdide7FTVFZ', + ], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所在的DataWorks工作空间ID。您可以通过[ListProjects](~~2780068~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'abc', + ], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的描述信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的类型。常用类型如下:'."\n" + .'- odps'."\n" + .'- mysql'."\n" + .'- rds'."\n" + .'- oss'."\n" + .'- sqlserver'."\n" + .'- polardb'."\n" + .'- oracle'."\n" + .'- mongodb'."\n" + .'- emr'."\n" + .'- postgresql'."\n" + .'- analyticdb_for_mysql'."\n" + .'- hybriddb_for_postgresql'."\n" + .'- holo', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'rds', + ], + ], + [ + 'name' => 'SubType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的子类型。使用如下:'."\n" + ."\n" + .'- 当DataSourceType参数配置为RDS时,SubType参数生效。'."\n" + .'- 如果DataSourceType参数配置为RDS,SubType参数支持配置为mysql、sqlserver或postgresql。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所属的环境,包括0(开发环境)和1(生产环境)。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'Content', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的详细信息。部分常用数据源样例如下:'."\n" + .'- odps'."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "*****",'."\n" + .' "accessKey": "*****",'."\n" + .' "authType": 2,'."\n" + .' "endpoint": "http://service.odps.aliyun.com/api",'."\n" + .' "project": "xsaxsax",'."\n" + .' "tag": "public"'."\n" + .' }'."\n" + .' ```'."\n" + .'- mysql'."\n" + .' ```'."\n" + .' {'."\n" + .' "database": "xsaxsa",'."\n" + .' "instanceName": "rm-xsaxsa",'."\n" + .' "password": "xsaxsa",'."\n" + .' "rdsOwnerId": "xasxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "rds",'."\n" + .' "username": "xsaxsa"'."\n" + .' }'."\n" + .' ```'."\n" + .'- rds'."\n" + .' ```'."\n" + .' {'."\n" + .' "configType": 1,'."\n" + .' "tag": "rds",'."\n" + .' "database": "xsaxsa",'."\n" + .' "username": "xsaxsa",'."\n" + .' "password": "xssaxsa$32050",'."\n" + .' "instanceName": "rm-xsaxs",'."\n" + .' "rdsOwnerId": "11111111"'."\n" + .' }'."\n" + .' ```'."\n" + .'- oss'."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "*****",'."\n" + .' "accessKey": "*****",'."\n" + .' "bucket": "xsa-xs-xs",'."\n" + .' "endpoint": "http://oss-cn-shanghai.aliyuncs.com",'."\n" + .' "tag": "public"'."\n" + .' }'."\n" + .' ```'."\n" + .'- sqlserver'."\n" + .' ```'."\n" + .' {'."\n" + .' "jdbcUrl": "jdbc:sqlserver://xsaxsa-xsaxsa.database.xxx.cn:123;DatabaseName=xsxs-xsxs",'."\n" + .' "password": "sdasda$fs",'."\n" + .' "tag": "public",'."\n" + .' "username": "sxaxacdacdd"'."\n" + .' }'."\n" + .' ```'."\n" + .'- polardb'."\n" + .' ```'."\n" + .' {'."\n" + .' "clusterId": "pc-sdadsadsa",'."\n" + .' "database": "dsadsadsa",'."\n" + .' "ownerId": "121212122",'."\n" + .' "password": "sdasdafssa",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "tag": "polardb",'."\n" + .' "username": "asdadsads"'."\n" + .' }'."\n" + .' ```'."\n" + .'- redis'."\n" + .' ```'."\n" + .' { '."\n" + .' "password": "xxxxxx", '."\n" + .' "address":"[{\\"host\\":\\"xxxxxxx.redis.rds.aliyuncs.com\\",\\"port\\":6379}]", '."\n" + .' "tag": "public"'."\n" + .' }'."\n" + .' ```'."\n" + .'- oracle'."\n" + .' ```'."\n" + .' {'."\n" + .' "jdbcUrl": "jdbc:oracle:saaa:@xxxxx:1521:PROD",'."\n" + .' "password": "sxasaxsa",'."\n" + .' "tag": "public",'."\n" + .' "username": "sasfadfa"'."\n" + .' }'."\n" + .' ```'."\n" + .'- mongodb'."\n" + .' ```'."\n" + .' {'."\n" + .' "address": "[\\"xsaxxsa.mongodb.rds.aliyuncs.com:3717\\"]",'."\n" + .' "database": "admin",'."\n" + .' "password": "sadsda@",'."\n" + .' "tag": "public",'."\n" + .' "username": "dsadsadas"'."\n" + .' }'."\n" + .' ```'."\n" + .'- emr'."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "*****",'."\n" + .' "emrClusterId": "C-dsads",'."\n" + .' "emrResourceQueueName": "default",'."\n" + .' "emrEndpoint": "emr.aliyuncs.com",'."\n" + .' "accessKey": "*****",'."\n" + .' "emrUserId": "224833315798889783",'."\n" + .' "name": "sasdsadsa",'."\n" + .' "emrAccessMode": "simple",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "authType": "2",'."\n" + .' "emrProjectId": "FP-sdadsad"'."\n" + .' }'."\n" + .' ```'."\n" + .'- postgresql'."\n" + .' ```'."\n" + .' {'."\n" + .' "jdbcUrl": "jdbc:postgresql://xxxx:1921/ssss",'."\n" + .' "password": "sdadsads",'."\n" + .' "tag": "public",'."\n" + .' "username": "sdsasda"'."\n" + .' }'."\n" + .' ```'."\n" + .'- analyticdb_for_mysql'."\n" + .' ```'."\n" + .' {'."\n" + .' "instanceId": "am-sadsada",'."\n" + .' "database": "xsxsx",'."\n" + .' "username": "xsxsa",'."\n" + .' "password": "asdadsa",'."\n" + .' "connectionString": "am-xssxsxs.ads.aliyuncs.com:3306"'."\n" + .' }'."\n" + .' ```'."\n" + .'- hybriddb_for_postgresql'."\n" + .' ```'."\n" + .' {'."\n" + .' "connectionString": "gp-xsaxsaxa-master.gpdbmaster.rds.aliyuncs.com",'."\n" + .' "database": "xsaxsaxas",'."\n" + .' "password": "xsaxsaxsa@11",'."\n" + .' "instanceId": "gp-xsaxsaxsa",'."\n" + .' "port": "541132",'."\n" + .' "ownerId": "xsaxsaxsas",'."\n" + .' "username": "sadsad"'."\n" + .' }'."\n" + .' ```'."\n" + .'- holo'."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "*****",'."\n" + .' "accessKey": "*****",'."\n" + .' "database": "xsaxsaxsa",'."\n" + .' "instanceId": "xsaxa",'."\n" + .' "tag": "aliyun"'."\n" + .' }'."\n" + .' ```'."\n" + .'- kafka'."\n" + .' ```'."\n" + .' {'."\n" + .' "instanceId": "xsax-cn-xsaxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "aliyun",'."\n" + .' "ownerId": "1212121212112"'."\n" + .' }'."\n" + .' ```', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '{"database":"dbname","instanceName":"instancename","password":"password","rdsOwnerId":"123","username":"username"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'string', + 'example' => '200', + ], + 'Data' => [ + 'description' => '数据源ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc141151593763****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + [ + 'errorCode' => 'ConnectionAlreadyExist', + 'errorMessage' => 'The connection with envType %s and name %s already exists.', + ], + [ + 'errorCode' => 'DataSource.CheckRamRoleFailure', + 'errorMessage' => 'Failed to check the RAM role. AccountId %s. roleArn %s.', + ], + [ + 'errorCode' => 'DataSource.ConnectionStrProperty.PatternNotMatch', + 'errorMessage' => 'The pattern value %s is invalid. The correct pattern is %s.', + ], + [ + 'errorCode' => 'Invalid.DataSource.DataSourceTypeNotSupport', + 'errorMessage' => 'The dataSourceType %s and subType %s are not supported.', + ], + [ + 'errorCode' => 'Invalid.Param.Odps.EngineIdOrConnectStrEmpty', + 'errorMessage' => 'Either the compute engine ID or the connection string must be specified when data source type is ODPS.', + ], + [ + 'errorCode' => 'MissingParam.ConnectionStr.Property', + 'errorMessage' => 'You must specify property %s required by the data source connection string.', + ], + [ + 'errorCode' => 'Invalid.DataSource.DataSourceTypeNotExist', + 'errorMessage' => 'The data source type %s does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"Data\\": 123,\\n \\"RequestId\\": \\"0bc141151593763****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 123\\n 0bc141151593763****\\n true\\n","errorExample":""}]', + 'title' => '创建数据源', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListDataSources' => [ + 'summary' => '该接口用于查询DataWorks的数据源列表。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所在的DataWorks工作空间ID。您可以通过[ListProjects](~~2780068~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '查询的数据源名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'test', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的类型。常用的类型如下:'."\n" + .'- odps'."\n" + .'- mysql'."\n" + .'- rds'."\n" + .'- oss'."\n" + .'- sqlserver'."\n" + .'- polardb'."\n" + .'- oracle'."\n" + .'- mongodb'."\n" + .'- emr'."\n" + .'- postgresql'."\n" + .'- analyticdb_for_mysql'."\n" + .'- hybriddb_for_postgresql'."\n" + .'- holo', + 'type' => 'string', + 'required' => false, + 'example' => 'rds', + ], + ], + [ + 'name' => 'SubType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的子类型。仅当DataSourceType参数配置为RDS时,该参数生效。'."\n" + ."\n" + .'当DataSourceType参数配置为RDS时,该参数可以配置为mysql、sqlserver或postgresql。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的状态。取值如下:'."\n" + .'- ENABLED,正常。'."\n" + .'- DISABLED,禁用。', + 'type' => 'string', + 'required' => false, + 'example' => 'ENABLED', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所属的环境,包括0(开发环境)和1(生产环境)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询的页码。取值为大于等于1的正整数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc14115159376359****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '数据源的查询结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '20', + ], + 'TotalCount' => [ + 'description' => '数据源的总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '233', + ], + 'DataSources' => [ + 'description' => '数据源列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据源详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '数据源的状态。取值如下:'."\n" + .'- 1:表示数据源正常使用。'."\n" + .'- 2:表示数据源已禁用。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectId' => [ + 'description' => '数据源关联的工作空间ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '123', + ], + 'SubType' => [ + 'description' => '数据源的子类型。仅当DataSourceType参数配置为RDS时,该参数生效。', + 'type' => 'string', + 'example' => 'mysql', + ], + 'GmtModified' => [ + 'description' => '修改数据源的时间。时间格式示例为Mar 17, 2021 4:09:32 PM。', + 'type' => 'string', + 'example' => 'Mar 17, 2021 4:09:32 PM', + ], + 'EnvType' => [ + 'description' => '数据源所在的环境。取值如下:'."\n" + .'- 0:开发环境。'."\n" + .'- 1:生产环境。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ConnectStatus' => [ + 'description' => '数据源的状态。取值如下:'."\n" + .'- 1:表示数据源正常使用。'."\n" + .'- 2:表示数据源已禁用。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Sequence' => [ + 'description' => '排序字段。数据源按此字段从大到小排序。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '300', + ], + 'Description' => [ + 'description' => '数据源的描述信息。', + 'type' => 'string', + 'example' => 'a connection', + ], + 'DataSourceType' => [ + 'description' => '数据源的类型。常用类型如下:'."\n" + .'- odps'."\n" + .'- mysql'."\n" + .'- rds'."\n" + .'- oss'."\n" + .'- sqlserver'."\n" + .'- polardb'."\n" + .'- oracle'."\n" + .'- mongodb'."\n" + .'- emr'."\n" + .'- postgresql'."\n" + .'- analyticdb_for_mysql'."\n" + .'- hybriddb_for_postgresql'."\n" + .'- holo', + 'type' => 'string', + 'example' => 'rds', + ], + 'GmtCreate' => [ + 'description' => '创建数据源的时间。时间格式示例为Mar 17, 2021 4:09:32 PM。', + 'type' => 'string', + 'example' => 'Mar 17, 2021 4:09:32 PM', + ], + 'DefaultEngine' => [ + 'description' => '数据源关联的引擎是否为同类型数据源选用的默认引擎。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Shared' => [ + 'description' => '是否为共享的数据源。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Operator' => [ + 'description' => '最近一次修改数据源的阿里云用户ID。'."\n" + ."\n", + 'type' => 'string', + 'example' => '193543050****', + ], + 'Name' => [ + 'description' => '数据源的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Content' => [ + 'description' => '数据连接串的相关信息。格式为JSON格式。常用的数据源对应的连接串样例如下:'."\n" + .'- MaxCompute '."\n" + .' ```'."\n" + .' {'."\n" + .' "pubEndpoint": "http://service.cn.maxcompute.aliyun.com/api",'."\n" + .' "accessId": "xxxxxxx",'."\n" + .' "securityToken": null,'."\n" + .' "endpoint": "http://service.cn.maxcompute.aliyun-inc.com/api",'."\n" + .' "accessKey": "***",'."\n" + .' "name": "PRE_PROJECT_A_engine",'."\n" + .' "project": "PRE_PROJECT_A",'."\n" + .' "vpcEndpoint": "http://service.cn.maxcompute.aliyun-inc.com/api",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "authType": "2"'."\n" + .' }'."\n" + .' ```'."\n" + .'- mysql '."\n" + .' ```'."\n" + .' {'."\n" + .' "configType": "1",'."\n" + .' "database": "mysql_d111b",'."\n" + .' "instanceName": "rm-xxxxxx",'."\n" + .' "password": "***",'."\n" + .' "rdsOwnerId": "12133xxxxxx",'."\n" + .' "tag": "rds",'."\n" + .' "username": "mysql_db111"'."\n" + .' }'."\n" + .' ```'."\n" + .'- sqlserver '."\n" + .' ```'."\n" + .' {'."\n" + .' "configType": "1",'."\n" + .' "jdbcUrl": "jdbc:sqlserver://rm-xxxxx.sqlserver.rds.aliyuncs.com:1433;DatabaseName=sqlserver_db1",'."\n" + .' "password": "***",'."\n" + .' "tag": "public",'."\n" + .' "username": "sqlserver_db111"'."\n" + .' }'."\n" + .' ```'."\n" + .'- oss '."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "***********",'."\n" + .' "accessKey": "***********",'."\n" + .' "bucket": "bigxxx1223",'."\n" + .' "configType": "1",'."\n" + .' "endpoint": "http://oss-cn-hangzhou.aliyuncs.com",'."\n" + .' "tag": "public"'."\n" + .' }'."\n" + .' ```'."\n" + .'- postgresql '."\n" + .' ```'."\n" + .' {'."\n" + .' "configType": "1",'."\n" + .' "database": "cdp_xxx",'."\n" + .' "instanceName": "rm-xxxx",'."\n" + .' "password": "***",'."\n" + .' "rdsOwnerId": "121xxxxx",'."\n" + .' "tag": "rds",'."\n" + .' "username": "cdp_xxx"'."\n" + .' }'."\n" + .' ```'."\n" + .'- ads '."\n" + .' ```'."\n" + .' {'."\n" + .' "configType": "1",'."\n" + .' "password": "***",'."\n" + .' "schema": "ads_demo",'."\n" + .' "tag": "public",'."\n" + .' "url": "ads-xxx-xxxx.cn-hangzhou-1.ads.aliyuncs.com:3029",'."\n" + .' "username": "lslslsls"'."\n" + .' }'."\n" + .' ```', + 'type' => 'string', + 'example' => '{"pubEndpoint":"http://service.cn.maxcompute.aliyun.com/api","accessId":"TMP.3KecGjvzy3i8MYfn2BGHgF7EHGyBFZcHm7GgngrABVRyvvKQrfF5kskR36xP361C3dqwbGo7SGYptAeGyiTwHXqLaBUvYC","securityToken":null,"endpoint":"http://service.cn.maxcompute.aliyun-inc.com/api","accessKey":"***","name":"PRE_PROJECT_A_engine","project":"PRE_PROJECT_A","vpcEndpoint":"http://service.cn.maxcompute.aliyun-inc.com/api","region":"cn-shanghai","authType":"2"}', + ], + 'Id' => [ + 'description' => '数据源ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'BindingCalcEngineId' => [ + 'description' => '数据源关联的计算引擎ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234567', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0bc14115159376359****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 233,\\n \\"DataSources\\": [\\n {\\n \\"Status\\": 1,\\n \\"ProjectId\\": 123,\\n \\"SubType\\": \\"mysql\\",\\n \\"GmtModified\\": \\"Mar 17, 2021 4:09:32 PM\\",\\n \\"EnvType\\": 1,\\n \\"ConnectStatus\\": 1,\\n \\"Sequence\\": 300,\\n \\"Description\\": \\"a connection\\",\\n \\"DataSourceType\\": \\"rds\\",\\n \\"GmtCreate\\": \\"Mar 17, 2021 4:09:32 PM\\",\\n \\"DefaultEngine\\": false,\\n \\"Shared\\": false,\\n \\"Operator\\": \\"193543050****\\",\\n \\"Name\\": \\"abc\\",\\n \\"Content\\": \\"{\\\\\\"pubEndpoint\\\\\\":\\\\\\"http://service.cn.maxcompute.aliyun.com/api\\\\\\",\\\\\\"accessId\\\\\\":\\\\\\"TMP.3KecGjvzy3i8MYfn2BGHgF7EHGyBFZcHm7GgngrABVRyvvKQrfF5kskR36xP361C3dqwbGo7SGYptAeGyiTwHXqLaBUvYC\\\\\\",\\\\\\"securityToken\\\\\\":null,\\\\\\"endpoint\\\\\\":\\\\\\"http://service.cn.maxcompute.aliyun-inc.com/api\\\\\\",\\\\\\"accessKey\\\\\\":\\\\\\"***\\\\\\",\\\\\\"name\\\\\\":\\\\\\"PRE_PROJECT_A_engine\\\\\\",\\\\\\"project\\\\\\":\\\\\\"PRE_PROJECT_A\\\\\\",\\\\\\"vpcEndpoint\\\\\\":\\\\\\"http://service.cn.maxcompute.aliyun-inc.com/api\\\\\\",\\\\\\"region\\\\\\":\\\\\\"cn-shanghai\\\\\\",\\\\\\"authType\\\\\\":\\\\\\"2\\\\\\"}\\",\\n \\"Id\\": 1,\\n \\"BindingCalcEngineId\\": 123,\\n \\"TenantId\\": 1234567\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"0bc14115159376359****\\n200\\n\\n 233\\n 20\\n 1\\n \\n 1\\n 193543050****\\n 1\\n mysql\\n a connection\\n 123\\n 123\\n Mar 17, 2021 4:09:32 PM\\n 300\\n false\\n 1\\n abc\\n false\\n 1234567\\n Mar 17, 2021 4:09:32 PM\\n {\\"pubEndpoint\\":\\"http://service.cn.maxcompute.aliyun.com/api\\",\\"accessId\\":\\"TMP.3KecGjvzy3i8MYfn2BGHgF7EHGyBFZcHm7GgngrABVRyvvKQrfF5kskR36xP361C3dqwbGo7SGYptAeGyiTwHXqLaBUvYC\\",\\"securityToken\\":null,\\"endpoint\\":\\"http://service.cn.maxcompute.aliyun-inc.com/api\\",\\"accessKey\\":\\"***\\",\\"name\\":\\"PRE_PROJECT_A_engine\\",\\"project\\":\\"PRE_PROJECT_A\\",\\"vpcEndpoint\\":\\"http://service.cn.maxcompute.aliyun-inc.com/api\\",\\"region\\":\\"cn-shanghai\\",\\"authType\\":\\"2\\"}\\n rds\\n 1\\n \\n\\ntrue","errorExample":""}]', + 'title' => '查询数据源列表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateDataSource' => [ + 'summary' => '该接口用于更新数据源。', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'high', + 'chargeType' => 'free', + 'abilityTreeCode' => '78369', + 'abilityTreeNodes' => [ + 'FEATUREdideRWC5F7', + ], + ], + 'parameters' => [ + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的描述信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所在的环境。取值如下:'."\n" + .'- 0:开发环境。'."\n" + .'- 1:生产环境。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'Content', + 'in' => 'query', + 'schema' => [ + 'description' => '需要修改的目标数据源的详细信息。'."\n" + .'不支持修改数据源的类型,例如,您不可以修改odps类型的数据源为MySQL类型。'."\n" + .'部分常用数据源的信息样例如下:'."\n" + .'- odps'."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "*****",'."\n" + .' "accessKey": "*****",'."\n" + .' "authType": 2,'."\n" + .' "endpoint": "http://service.odps.aliyun.com/api",'."\n" + .' "project": "xsaxsax",'."\n" + .' "tag": "public"'."\n" + .' }'."\n" + .' ```'."\n" + .'- mysql'."\n" + .' ```'."\n" + .' {'."\n" + .' "database": "xsaxsa",'."\n" + .' "instanceName": "rm-xsaxsa",'."\n" + .' "password": "xsaxsa",'."\n" + .' "rdsOwnerId": "xasxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "rds",'."\n" + .' "username": "xsaxsa"'."\n" + .' }'."\n" + .' ```'."\n" + .'- rds'."\n" + .' ```'."\n" + .' {'."\n" + .' "configType": 1,'."\n" + .' "tag": "rds",'."\n" + .' "database": "xsaxsa",'."\n" + .' "username": "xsaxsa",'."\n" + .' "password": "xssaxsa$32050",'."\n" + .' "instanceName": "rm-xsaxs",'."\n" + .' "rdsOwnerId": "11111111"'."\n" + .' }'."\n" + .' ```'."\n" + .'- oss'."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "*****",'."\n" + .' "accessKey": "*****",'."\n" + .' "bucket": "xsa-xs-xs",'."\n" + .' "endpoint": "http://oss-cn-shanghai.aliyuncs.com",'."\n" + .' "tag": "public"'."\n" + .' }'."\n" + .' ```'."\n" + .'- sqlserver'."\n" + .' ```'."\n" + .' {'."\n" + .' "jdbcUrl": "jdbc:sqlserver://xsaxsa-xsaxsa.database.xxx.cn:123;DatabaseName=xsxs-xsxs",'."\n" + .' "password": "sdasda$fs",'."\n" + .' "tag": "public",'."\n" + .' "username": "sxaxacdacdd"'."\n" + .' }'."\n" + .' ```'."\n" + .'- polardb'."\n" + .' ```'."\n" + .' {'."\n" + .' "clusterId": "pc-sdadsadsa",'."\n" + .' "database": "dsadsadsa",'."\n" + .' "ownerId": "121212122",'."\n" + .' "password": "sdasdafssa",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "tag": "polardb",'."\n" + .' "username": "asdadsads"'."\n" + .' }'."\n" + .' ```'."\n" + .'- oracle'."\n" + .' ```'."\n" + .' {'."\n" + .' "jdbcUrl": "jdbc:oracle:saaa:@xxxxx:1521:PROD",'."\n" + .' "password": "sxasaxsa",'."\n" + .' "tag": "public",'."\n" + .' "username": "sasfadfa"'."\n" + .' }'."\n" + .' ```'."\n" + .'- mongodb'."\n" + .' ```'."\n" + .' {'."\n" + .' "address": "[\\"xsaxxsa.mongodb.rds.aliyuncs.com:3717\\"]",'."\n" + .' "database": "admin",'."\n" + .' "password": "sadsda@",'."\n" + .' "tag": "public",'."\n" + .' "username": "dsadsadas"'."\n" + .' }'."\n" + .' ```'."\n" + .'- emr'."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "*****",'."\n" + .' "emrClusterId": "C-dsads",'."\n" + .' "emrResourceQueueName": "default",'."\n" + .' "emrEndpoint": "emr.aliyuncs.com",'."\n" + .' "accessKey": "*****",'."\n" + .' "emrUserId": "224833315798889783",'."\n" + .' "name": "sasdsadsa",'."\n" + .' "emrAccessMode": "simple",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "authType": "2",'."\n" + .' "emrProjectId": "FP-sdadsad"'."\n" + .' }'."\n" + .' ```'."\n" + .'- postgresql'."\n" + .' ```'."\n" + .' {'."\n" + .' "jdbcUrl": "jdbc:postgresql://xxxx:1921/ssss",'."\n" + .' "password": "sdadsads",'."\n" + .' "tag": "public",'."\n" + .' "username": "sdsasda"'."\n" + .' }'."\n" + .' ```'."\n" + .'- analyticdb_for_mysql'."\n" + .' ```'."\n" + .' {'."\n" + .' "instanceId": "am-sadsada",'."\n" + .' "database": "xsxsx",'."\n" + .' "username": "xsxsa",'."\n" + .' "password": "asdadsa",'."\n" + .' "connectionString": "am-xssxsxs.ads.aliyuncs.com:3306"'."\n" + .' }'."\n" + .' ```'."\n" + .'- hybriddb_for_postgresql'."\n" + .' ```'."\n" + .' {'."\n" + .' "connectionString": "gp-xsaxsaxa-master.gpdbmaster.rds.aliyuncs.com",'."\n" + .' "database": "xsaxsaxas",'."\n" + .' "password": "xsaxsaxsa@11",'."\n" + .' "instanceId": "gp-xsaxsaxsa",'."\n" + .' "port": "541132",'."\n" + .' "ownerId": "xsaxsaxsas",'."\n" + .' "username": "sadsad"'."\n" + .' }'."\n" + .' ```'."\n" + .'- holo'."\n" + .' ```'."\n" + .' {'."\n" + .' "accessId": "*****",'."\n" + .' "accessKey": "*****",'."\n" + .' "database": "xsaxsaxsa",'."\n" + .' "instanceId": "xsaxa",'."\n" + .' "tag": "aliyun"'."\n" + .' }'."\n" + .' ```'."\n" + .'- kafka'."\n" + .' ```'."\n" + .' {'."\n" + .' "instanceId": "xsax-cn-xsaxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "aliyun",'."\n" + .' "ownerId": "1212121212112"'."\n" + .' }'."\n" + .' ```', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '{"accessId":"*****","accessKey":"*****","authType":2,"endpoint":"http://service.odps.aliyun.com/api","project":"xsaxsax","tag":"public"}', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的状态。该字段已废弃,请勿使用。', + 'type' => 'string', + 'required' => false, + 'example' => 'ENABLED', + ], + ], + [ + 'name' => 'DataSourceId', + 'in' => 'query', + 'schema' => [ + 'description' => '需要更新的数据源ID,您可以调用[ListDataSources](~~2780072~~)获取数据源的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'string', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否成功更新数据源。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc14115159376359****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + [ + 'errorCode' => 'MissingParam.ConnectionStr.Property', + 'errorMessage' => 'You must specify property %s required by the data source connection string.', + ], + [ + 'errorCode' => 'DataSource.CheckRamRoleFailure', + 'errorMessage' => 'Failed to check the RAM role. AccountId %s. roleArn %s.', + ], + [ + 'errorCode' => 'DataSource.ConnectionStrProperty.PatternNotMatch', + 'errorMessage' => 'The pattern value %s is invalid. The correct pattern is %s.', + ], + [ + 'errorCode' => 'DataSource.NotFound', + 'errorMessage' => 'The specified data source ID %s does not exist.', + ], + [ + 'errorCode' => 'Invalid.Connection.Empty', + 'errorMessage' => 'You must specify the connection parameter.', + ], + [ + 'errorCode' => 'Invalid.DataSource.DataSourceTypeNotExist', + 'errorMessage' => 'The data source type %s does not exist.', + ], + [ + 'errorCode' => 'Invalid.DataSource.DataSourceTypeNotSupport', + 'errorMessage' => 'The dataSourceType %s and subType %s are not supported.', + ], + [ + 'errorCode' => 'Invalid.Operation', + 'errorMessage' => 'You cannot delete the bindingCalcEngine that is bound to the data source.', + ], + [ + 'errorCode' => 'Invalid.Param.Odps.EngineIdOrConnectStrEmpty', + 'errorMessage' => 'Either the compute engine ID or the connection string must be specified when data source type is ODPS.', + ], + [ + 'errorCode' => 'Required.Parameter.Empty', + 'errorMessage' => 'You must specify the parameter %s.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc14115159376359****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n 0bc14115159376359****\\n true\\n","errorExample":""}]', + 'title' => '更新数据源', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteDataSource' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'DataSourceId', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源ID,您可以调用[ListDataSources](~~211431~~)获取数据源的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'string', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否成功删除数据源。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1411515937635****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + [ + 'errorCode' => 'Invalid.Operation', + 'errorMessage' => 'You cannot delete the bindingCalcEngine that is bound to the data source.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc1411515937635****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0bc1411515937635****\\n200\\ntrue\\ntrue","errorExample":""}]', + 'title' => '删除数据源', + 'summary' => '该接口用于删除数据源。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListResourceGroups' => [ + 'summary' => '该接口用于查看指定类型的资源组列表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ResourceGroupType', + 'in' => 'query', + 'schema' => [ + 'description' => '需要查看的资源组类型ID。取值如下:'."\n" + .'- 0(DataWorks)'."\n" + .'- 1(调度)'."\n" + .'- 2(MaxCompute)'."\n" + .'- 3(PAI)'."\n" + .'- 4(数据集成)'."\n" + .'- 7 (下单购买独享调度资源组时,生成的购买资源ID)'."\n" + .'- 9 (dataService)'."\n" + .'- 默认取值为1(调度)。'."\n" + ."\n" + .'当取值表示引擎时,查看的资源组列表为购买该类型引擎时创建的资源组列表。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'query', + 'schema' => [ + 'description' => '关键字。用于模糊查询资源组名称和资源组标识。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'BizExtKey', + 'in' => 'query', + 'schema' => [ + 'description' => '资源组的类别。取值如下:'."\n" + .'- default:默认值,公共资源组。'."\n" + .'- single:独享资源组。', + 'type' => 'string', + 'required' => false, + 'example' => 'default', + ], + ], + [ + 'name' => 'ResourceManagerResourceGroupId', + 'in' => 'query', + 'schema' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'rg-acfmzbn7pti3zfa', + ], + ], + [ + 'name' => 'Tags', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签键。', + 'type' => 'string', + 'required' => false, + 'example' => 'Env', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'required' => false, + 'example' => 'Test', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 20, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '资源组列表。', + 'type' => 'array', + 'items' => [ + 'description' => '资源组详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '资源组的状态。取值如下:'."\n" + .'- NORMAL(0),表示资源组状态正常,处于运行中或服务中。'."\n" + .'- STOP(1),表示资源组已到期,处于冻结状态。'."\n" + .'- DELETED(2),表示资源组已被释放或销毁。'."\n" + .'- CREATING(3),表示资源组正在创建或启动。'."\n" + .'- CREATE_FAILED(4),表示资源组创建或启动失败。'."\n" + .'- UPDATING(5),表示资源组正在扩容或升级。'."\n" + .'- UPDATE_FAILED(6),表示资源组扩容或升级失败。'."\n" + .'- DELETING(7),表示资源组正在被释放或销毁。'."\n" + .'- DELETE_FAILED(8),表示资源组释放或销毁失败。'."\n" + .'- TIMEOUT(9),表示对资源组执行的操作超时。所有变更操作均可能会超时,该枚举值暂时仅提供给数据服务使用。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'UpdateTime' => [ + 'description' => '最近一次更新资源组的时间。', + 'type' => 'string', + 'example' => 'Jul 9, 2018 2:43:37 PM', + ], + 'IsDefault' => [ + 'description' => '是否为默认资源组。取值如下:'."\n" + .'- true:是默认资源组。'."\n" + .'- false:非默认资源组。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Cluster' => [ + 'description' => '集群的名称。该参数仅对于MaxCompute和PAI资源组类型生效。', + 'type' => 'string', + 'example' => 'AY18G', + ], + 'EnableKp' => [ + 'description' => '是否使用Kp(关键人)访问。取值如下:'."\n" + .'- true:表示MaxCompute引擎使用阿里云账号UID作为访问账户的显示名称。'."\n" + .'- false:表示MaxCompute引擎使用阿里云账号名称作为访问账户的显示名称。'."\n" + .'其余类型无意义。该参数仅对MaxCompute引擎生效。'."\n", + 'type' => 'boolean', + 'example' => 'false', + ], + 'ResourceGroupType' => [ + 'description' => '资源组的类型。取值如下:'."\n" + .'- 0(DataWorks)'."\n" + .'- 2(MaxCompute)'."\n" + .'- 3(PAI)'."\n" + .'- 4(数据集成)'."\n" + .'- 7(调度)'."\n" + .'- 9 (dataService)', + 'type' => 'string', + 'example' => '3', + ], + 'CreateTime' => [ + 'description' => '创建集群的时间。格式示例为Jul 9, 2018 2:43:37 PM。', + 'type' => 'string', + 'example' => 'Jul 9, 2018 2:43:37 PM', + ], + 'Identifier' => [ + 'description' => '资源组的标识。', + 'type' => 'string', + 'example' => 'e1815577-2f4e-4c5e-b29****', + ], + 'Mode' => [ + 'description' => '资源组的类型。取值如下:'."\n" + .'- ISOLATE:表示预付费的独享资源组。'."\n" + .'- SHARE:表示后付费的公共资源组。'."\n" + .'- DEVELOP:表示开发者版本。', + 'type' => 'string', + 'example' => 'SHARE', + ], + 'BizExtKey' => [ + 'description' => '资源组的类别。取值如下:'."\n" + .'- default,公共资源组。'."\n" + .'- single,独享资源组。', + 'type' => 'string', + 'example' => 'default', + ], + 'Sequence' => [ + 'description' => '序列字段。用于将已创建的资源组按照创建的序号从小到大升序排序。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '300', + ], + 'Specs' => [ + 'description' => '资源组的详细信息。{}中显示的内容为资源组的详细信息。', + 'type' => 'object', + 'example' => '{}', + ], + 'Name' => [ + 'description' => '资源组的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Id' => [ + 'description' => '资源组的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234567', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234567', + ], + 'ResourceManagerResourceGroupId' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'example' => 'rg-acfmzbn7pti3zfa', + ], + 'Tags' => [ + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签键。', + 'type' => 'string', + 'example' => 'Env', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'example' => 'Test', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'staticInfo' => [], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Status\\": 0,\\n \\"UpdateTime\\": \\"Jul 9, 2018 2:43:37 PM\\",\\n \\"IsDefault\\": true,\\n \\"Cluster\\": \\"AY18G\\",\\n \\"EnableKp\\": false,\\n \\"ResourceGroupType\\": \\"3\\",\\n \\"CreateTime\\": \\"Jul 9, 2018 2:43:37 PM\\",\\n \\"Identifier\\": \\"e1815577-2f4e-4c5e-b29****\\",\\n \\"Mode\\": \\"SHARE\\",\\n \\"BizExtKey\\": \\"default\\",\\n \\"Sequence\\": 300,\\n \\"Specs\\": {},\\n \\"Name\\": \\"abc\\",\\n \\"Id\\": 1234567,\\n \\"TenantId\\": 1234567,\\n \\"ResourceManagerResourceGroupId\\": \\"rg-acfmzbn7pti3zfa\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"Env\\",\\n \\"Value\\": \\"Test\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0bc1411515937635973****\\n true\\n \\n 0\\n Jul 9, 2018 2:43:37 PM\\n true\\n AY18G\\n false\\n 3\\n Jul 9, 2018 2:43:37 PM\\n e1815577-2f4e-4c5e-b29****\\n SHARE\\n default\\n 300\\n abc\\n 1234567\\n 1234567\\n rg-acfmzbn7pti3zfa\\n \\n Env\\n Test\\n \\n \\n","errorExample":""}]', + 'title' => '查看资源组列表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetProject' => [ + 'summary' => '该接口用于查询一个DataWorks工作空间的详细信息。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间ID。'."\n" + .'您可以通过[ListProjects](~~2780068~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'example' => '466230', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的名称。您可以通过[ListProjects](~~2780068~~)接口获取工作空间的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'test_project', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + 'Success' => [ + 'description' => '请求是否成功,取值如下:'."\n" + .'- **true**:请求成功。'."\n" + .'- **false**:请求失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '工作空间的详细信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '工作空间的状态,取值如下:'."\n" + .'- **0**:AVAILABLE,工作空间运行正常。'."\n" + .'- **1**:DELETED,工作空间已被删除。'."\n" + .'- **2**:INITIALIZING,初始化工作空间。'."\n" + .'- **3**:INIT_FAILED,工作空间初始化失败。'."\n" + .'- **4**:FORBIDDEN,手动禁用工作空间。'."\n" + .'- **5**:DELETING,正在删除工作空间。'."\n" + .'- **6**:DEL_FAILED,工作空间删除失败。'."\n" + .'- **7**:FROZEN,工作空间欠费冻结。'."\n" + .'- **8**:UPDATING,更新工作空间(为工作空间添加并初始化计算引擎)。'."\n" + .'- **9**:UPDATE_FAILED,更新工作空间(为工作空间添加并初始化计算引擎)失败。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'MaxFlowNode' => [ + 'description' => '该参数已废弃。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '466230', + ], + 'IsAllowDownload' => [ + 'description' => '是否允许下载ide上查询的结果,取值如下:'."\n" + .'- **1**:允许下载。'."\n" + .'- **0**:不允许下载。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectMode' => [ + 'description' => '工作空间的模式,取值如下:'."\n" + .'- **2**:表示简单工作空间模式。'."\n" + .'- **3**:表示标准工作空间模式。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'GmtModified' => [ + 'description' => '修改工作空间的时间,示例格式为`Dec 3, 2019 9:12:20 PM`。', + 'type' => 'string', + 'example' => 'Dec 3, 2019 9:12:20 PM', + ], + 'ProdStorageQuota' => [ + 'description' => '该参数已废弃。', + 'type' => 'string', + 'example' => ' 1', + ], + 'ProjectDescription' => [ + 'description' => '工作空间的详细描述信息。', + 'type' => 'string', + 'example' => 'test_describe', + ], + 'DevelopmentType' => [ + 'description' => '该参数已废弃。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '4', + ], + 'TablePrivacyMode' => [ + 'description' => 'MaxCompute表的可见性权限,取值如下:'."\n" + .'- **0**:租户内用户不可见MaxCompute表。'."\n" + .'- **1**:租户内用户可见MaxCompute表。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'DefaultDiResourceGroupIdentifier' => [ + 'description' => '购买MaxCompute独享资源组时,默认分配的资源组的标识。', + 'type' => 'string', + 'example' => 'group_280749521****', + ], + 'SchedulerMaxRetryTimes' => [ + 'description' => '默认出错自动重跑的次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'ProtectedMode' => [ + 'description' => '工作空间是否开启了保护模式,取值如下:'."\n" + .'- **1**:开启保护模式。'."\n" + .'- **0**:未开启保护模式。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'SchedulerRetryInterval' => [ + 'description' => '默认出错自动重跑的时间间隔,单位为ms。取值最大为30分钟,注意单位转换。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '120000', + ], + 'Appkey' => [ + 'description' => '该参数已废弃。', + 'type' => 'string', + 'example' => '0', + ], + 'DevStorageQuota' => [ + 'description' => '该参数已废弃。', + 'type' => 'string', + 'example' => '0', + ], + 'ResidentArea' => [ + 'description' => '工作空间的类型。'."\n" + .'- **private**:私有区'."\n" + .'- **swap**:交换区。', + 'type' => 'string', + 'example' => 'private', + ], + 'IsDefault' => [ + 'description' => '是否为默认工作空间,取值如下:'."\n" + .'- **1**:是。'."\n" + .'- **0**:否。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Destination' => [ + 'description' => '该参数已废弃。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectName' => [ + 'description' => '工作空间的显示名称。', + 'type' => 'string', + 'example' => 'test_project', + ], + 'ProjectIdentifier' => [ + 'description' => '工作空间的名称。', + 'type' => 'string', + 'example' => 'test_project', + ], + 'DisableDevelopment' => [ + 'description' => '是否禁用开发角色,取值如下:'."\n" + .' - **false**:默认值,开启开发角色。'."\n" + .' - **true**:禁用开发角色。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ProjectOwnerBaseId' => [ + 'description' => '工作空间所有者的阿里云ID。', + 'type' => 'string', + 'example' => '18229311****', + ], + 'BaseProject' => [ + 'description' => '该参数已废弃。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'UseProxyOdpsAccount' => [ + 'description' => '访问MaxCompute引擎是否使用代理账号。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'GmtCreate' => [ + 'description' => '创建工作空间时间,示例格式`Dec 3, 2019 9:12:20 PM`。', + 'type' => 'string', + 'example' => 'Oct 10, 2019 3:42:53 PM', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '280749521', + ], + 'EnvTypes' => [ + 'description' => '工作空间包含的环境信息。', + 'type' => 'array', + 'items' => [ + 'description' => '工作空间包含的环境:'."\n" + .'- 简单模式只有生产环境(**PROD**)。'."\n" + .'- 标准模式包含开发环境(**DEV**)和生产环境(**PROD**)。', + 'type' => 'string', + 'example' => '["PROD"]', + ], + ], + 'ResourceManagerResourceGroupId' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'example' => 'rg-acfmzbn7****', + ], + 'Tags' => [ + 'description' => '工作空间绑定的标签信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息详情。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签键。', + 'type' => 'string', + 'example' => 'key', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'example' => 'value', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Status\\": 0,\\n \\"MaxFlowNode\\": 1,\\n \\"ProjectId\\": 466230,\\n \\"IsAllowDownload\\": 1,\\n \\"ProjectMode\\": 2,\\n \\"GmtModified\\": \\"Dec 3, 2019 9:12:20 PM\\",\\n \\"ProdStorageQuota\\": \\" 1\\",\\n \\"ProjectDescription\\": \\"test_describe\\",\\n \\"DevelopmentType\\": 4,\\n \\"TablePrivacyMode\\": 1,\\n \\"DefaultDiResourceGroupIdentifier\\": \\"group_280749521****\\",\\n \\"SchedulerMaxRetryTimes\\": 3,\\n \\"ProtectedMode\\": 1,\\n \\"SchedulerRetryInterval\\": 120000,\\n \\"Appkey\\": \\"0\\",\\n \\"DevStorageQuota\\": \\"0\\",\\n \\"ResidentArea\\": \\"private\\",\\n \\"IsDefault\\": 1,\\n \\"Destination\\": 0,\\n \\"ProjectName\\": \\"test_project\\",\\n \\"ProjectIdentifier\\": \\"test_project\\",\\n \\"DisableDevelopment\\": true,\\n \\"ProjectOwnerBaseId\\": \\"18229311****\\",\\n \\"BaseProject\\": false,\\n \\"UseProxyOdpsAccount\\": true,\\n \\"GmtCreate\\": \\"Oct 10, 2019 3:42:53 PM\\",\\n \\"TenantId\\": 280749521,\\n \\"EnvTypes\\": [\\n \\"[\\\\\\"PROD\\\\\\"]\\"\\n ],\\n \\"ResourceManagerResourceGroupId\\": \\"rg-acfmzbn7****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"key\\",\\n \\"Value\\": \\"value\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0bc1411515937635973****\\n true\\n \\n 0\\n 1\\n 27\\n 1\\n 2\\n Dec 3, 2019 9:12:20 PM\\n 1\\n abc\\n 4\\n 1\\n group_280749521****\\n 3\\n 1\\n 120000\\n 0\\n 0\\n private\\n 1\\n 0\\n abc\\n abc\\n true\\n 18229311****\\n false\\n true\\n Oct 10, 2019 3:42:53 PM\\n 280749521\\n [\\"PROD\\"]\\n rg-acfmzbn7pti3zfa\\n \\n Env\\n Test\\n \\n \\n","errorExample":""}]', + 'title' => '查询工作空间详细信息', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'AddProjectMemberToRole' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以通过[ListProjects](~~2780068~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000', + 'minimum' => '0', + 'example' => '27', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'description' => '阿里云账号ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),鼠标悬停至顶部菜单栏右侧的用户头像,查看账号ID。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'RoleCode', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间角色的Code。您可以调用[ListProjectRoles](~~2780079~~)获取角色的Code。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'role_project_guest', + ], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => [ + 'description' => '幂等字段,建议使用UUID。用于唯一标识此次调用操作。', + 'type' => 'string', + 'required' => false, + 'example' => '1AFAE64E-D1BE-432B-A9*****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求的ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 1AFAE64E-D1BE-432B-A9****\\n","errorExample":""}]', + 'title' => '添加工作空间用户至角色', + 'summary' => '该接口用于添加DataWorks工作空间用户至角色。使用该接口前,您需要先添加目标账号为DataWorks工作空间的成员。', + 'description' => '- 添加目标账号为DataWorks工作空间的成员,详情请参见[DataWorks工作空间添加成员](~~136941~~)。'."\n" + .'- 添加用户至DataWorks工作空间的预设角色时,会同步在该工作空间开发环境的MaxCompute项目中添加项目角色成员。详情请参见:[空间级预设角色与MaxCompute引擎权限的映射关系](~~449397~~)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateProjectMember' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '100000000', + 'minimum' => '0', + 'example' => '27', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'description' => '待添加的用户ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => [ + 'description' => '幂等串,建议使用UUID。', + 'type' => 'string', + 'required' => false, + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + ], + [ + 'name' => 'RoleCode', + 'in' => 'query', + 'schema' => [ + 'description' => '角色code,非必填,当不为空,则用户一并添加到此角色中。', + 'type' => 'string', + 'required' => false, + 'example' => 'role_project_guest', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserAlreadyInProject', + 'errorMessage' => 'The user already exists in the project.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in the tenant.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 1AFAE64E-D1BE-432B-A9****\\n","errorExample":""}]', + 'title' => '添加一个用户至工作空间', + 'summary' => '该接口用于添加一个用户至DataWorks工作空间。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteProjectMember' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78212', + 'abilityTreeNodes' => [ + 'FEATUREdideZ4P4R1', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '100000000', + 'minimum' => '0', + 'example' => '27', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'description' => '用户ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserAlreadyInProject', + 'errorMessage' => 'The user already exists in the project.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in the tenant.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 1AFAE64E-D1BE-432B-A9****\\n","errorExample":""}]', + 'title' => '从DataWorks工作空间移除用户', + 'summary' => '该接口用于从DataWorks工作空间移除用户。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListProjectRoles' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78327', + 'abilityTreeNodes' => [ + 'FEATUREdideL60QLN', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '1000000', + 'minimum' => '0', + 'example' => '27', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + 'ProjectRoleList' => [ + 'description' => '工作空间的角色列表。', + 'type' => 'array', + 'items' => [ + 'description' => '角色详情。', + 'type' => 'object', + 'properties' => [ + 'ProjectRoleId' => [ + 'description' => '工作空间的角色ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectRoleType' => [ + 'description' => '工作空间的角色类型。', + 'type' => 'string', + 'example' => '0', + ], + 'ProjectRoleName' => [ + 'description' => '工作空间的角色名称。', + 'type' => 'string', + 'example' => '访客', + ], + 'ProjectRoleCode' => [ + 'description' => '工作空间的角色Code。'."\n", + 'type' => 'string', + 'example' => 'role_project_guest', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\",\\n \\"ProjectRoleList\\": [\\n {\\n \\"ProjectRoleId\\": 1,\\n \\"ProjectRoleType\\": \\"0\\",\\n \\"ProjectRoleName\\": \\"访客\\",\\n \\"ProjectRoleCode\\": \\"role_project_guest\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 1AFAE64E-D1BE-432B-A9****\\n \\n 1\\n 0\\n 访客\\n role_project_guest\\n \\n","errorExample":""}]', + 'title' => '获取工作空间所有角色的列表', + 'summary' => '该接口用于获取工作空间所有角色的列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'RemoveProjectMemberFromRole' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000', + 'minimum' => '0', + 'example' => '27', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'description' => '用户的ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'RoleCode', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的角色Code。可调用接口ListProjectRoles获取项目有哪些角色code列表。'."\n" + .'默认预设角色枚举如下:'."\n" + ."\n" + .'- role\\_project\\_owner 项目所有者'."\n" + .'- role\\_project\\_admin 空间管理员'."\n" + .'- role\\_project\\_dev 开发'."\n" + .'- role\\_project\\_pe 运维'."\n" + .'- role\\_project\\_deploy 部署'."\n" + .'- role\\_project\\_guest 访客'."\n" + .'- role\\_project\\_security 安全管理员'."\n" + .'- role\\_project\\_tester 体验者'."\n" + .'- role\\_project\\_erd 模型设计师', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'role_project_guest', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 1AFAE64E-D1BE-432B-A9****\\n","errorExample":""}]', + 'title' => '将工作空间内用户从角色中移除', + 'summary' => '该接口用于将DataWorks工作空间内的用户从DataWorks角色中移除。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListProjectMembers' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78326', + 'abilityTreeNodes' => [ + 'FEATUREdideL60QLN', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000', + 'minimum' => '0', + 'example' => '27', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页的页数。默认值为1,最小值为1,最大值为30。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '10000', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '20', + 'minimum' => '5', + 'example' => '10', + 'default' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + 'Data' => [ + 'description' => '查询结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前的页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页的大小。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '结果的总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'ProjectMemberList' => [ + 'description' => '工作空间的成员列表。', + 'type' => 'array', + 'items' => [ + 'description' => '成员详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '查询状态。取值如下:'."\n" + .' '."\n" + .'- 0 ,表示正常(NORMAL)。'."\n" + .'- 1,表示禁用(FORBIDDEN)。'."\n" + .'- 2,表示已删除(DELETED)。', + 'type' => 'string', + 'example' => '0', + ], + 'ProjectMemberId' => [ + 'description' => '成员的用户ID。'."\n", + 'type' => 'string', + 'example' => '121', + ], + 'Nick' => [ + 'description' => '工作空间成员的昵称。', + 'type' => 'string', + 'example' => 'zhangsan', + ], + 'ProjectMemberName' => [ + 'description' => '成员的名称。', + 'type' => 'string', + 'example' => '张三', + ], + 'ProjectMemberType' => [ + 'description' => '成员的类型,取值如下:'."\n" + ."\n" + .'- 1: 阿里云主账号(USER_ALIYUN);'."\n" + .'- 5:RAM USER子账号(USER_UBACCOUNT);'."\n" + .'- 6:RAM ROLE角色(USER_STS_ROLE)。', + 'type' => 'string', + 'example' => '1', + ], + 'ProjectRoleList' => [ + 'description' => '成员所拥有的角色列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'ProjectRoleId' => [ + 'description' => '角色ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectRoleType' => [ + 'description' => '角色的类型。取值如下:'."\n" + ."\n" + .'- SYSTEM(0):系统角色;'."\n" + ."\n" + .'- USER_CUSTOM(2):自定义角色。', + 'type' => 'string', + 'example' => '0', + ], + 'ProjectRoleName' => [ + 'description' => '角色的名称。'."\n" + .'DataWorks为您提供了预设角色,您也可以根据业务需求自定义角色。角色更多详情,请参见[用户、角色与权限概述](~~295463~~)。', + 'type' => 'string', + 'example' => '访客', + ], + 'ProjectRoleCode' => [ + 'description' => '角色Code。'."\n" + .'DataWorks为您提供了预设角色,您也可以根据业务需求自定义角色。角色更多详情,请参见[用户、角色与权限概述](~~295463~~)。', + 'type' => 'string', + 'example' => 'role_project_guest', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 3,\\n \\"ProjectMemberList\\": [\\n {\\n \\"Status\\": \\"0\\",\\n \\"ProjectMemberId\\": \\"121\\",\\n \\"Nick\\": \\"zhangsan\\",\\n \\"ProjectMemberName\\": \\"张三\\",\\n \\"ProjectMemberType\\": \\"1\\",\\n \\"ProjectRoleList\\": [\\n {\\n \\"ProjectRoleId\\": 1,\\n \\"ProjectRoleType\\": \\"0\\",\\n \\"ProjectRoleName\\": \\"访客\\",\\n \\"ProjectRoleCode\\": \\"role_project_guest\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 1AFAE64E-D1BE-432B-A9****\\n \\n 1\\n 10\\n 3\\n \\n 0\\n 121\\n zhangsan\\n 张三\\n 1\\n \\n 1\\n 0\\n 访客\\n role_project_guest\\n \\n \\n \\n","errorExample":""}]', + 'title' => '查询工作空间成员列表', + 'summary' => '该接口用于查询DataWorks工作空间中已存在成员的列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListProjects' => [ + 'summary' => '该接口用于查询用户所在租户下的DataWorks工作空间列表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '页码数。最小值1,最大值100', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '10000000', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的数据量,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '10000000', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'ResourceManagerResourceGroupId', + 'in' => 'query', + 'schema' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'rg-acfmzbn7pt****', + ], + ], + [ + 'name' => 'Tags', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '工作空间绑定的标签信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签键。', + 'type' => 'string', + 'required' => false, + 'example' => 'key', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'required' => false, + 'example' => 'value', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 20, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '20658801****', + ], + 'PageResult' => [ + 'description' => '查询结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前的页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '返回结果的总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '68', + ], + 'ProjectList' => [ + 'description' => 'DataWorks工作空间的结果列表。', + 'type' => 'array', + 'items' => [ + 'description' => '工作空间详情。', + 'type' => 'object', + 'properties' => [ + 'ProjectStatusCode' => [ + 'description' => '工作空间的状态码。'."\n" + ."\n" + .'- AVAILABLE:状态取值为0,表示正常。'."\n" + .'- DELETED:状态取值为1,表示已删除。'."\n" + .'- INITIALIZING:状态取值为2,表示初始化。'."\n" + .'- INIT_FAILED:状态取值为3,表示初始化失败。'."\n" + .'- FORBIDDEN:状态取值为4,表示手动禁用。'."\n" + .'- DELETING:状态取值为5,表示删除中。'."\n" + .'- DEL_FAILED:状态取值为6,表示删除失败。'."\n" + .'- FROZEN:状态取值为7,表示欠费冻结。'."\n" + .'- UPDATING:状态取值为8,表示项目更新(为项目添加并初始化计算引擎)中。'."\n" + .'- UPDATE_FAILED:状态取值为9,表示项目更新(为项目添加并初始化计算引擎)失败。', + 'type' => 'string', + 'example' => 'AVAILABLE', + ], + 'ProjectStatus' => [ + 'description' => '工作空间的状态。'."\n" + .'- AVAILABLE:状态取值为0,表示正常。'."\n" + .'- DELETED:状态取值为1,表示已删除。'."\n" + .'- INITIALIZING:状态取值为2,表示初始化。'."\n" + .'- INIT_FAILED:状态取值为3,表示初始化失败。'."\n" + .'- FORBIDDEN:状态取值为4,表示手动禁用。'."\n" + .'- DELETING:状态取值为5,表示删除中。'."\n" + .'- DEL_FAILED:状态取值为6,表示删除失败。'."\n" + .'- FROZEN:状态取值为7,表示欠费冻结。'."\n" + .'- UPDATING:状态取值为8,表示项目更新(为项目添加并初始化计算引擎)中。'."\n" + .'- UPDATE_FAILED:状态取值为9,表示项目更新(为项目添加并初始化计算引擎)失败。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectName' => [ + 'description' => '工作空间的显示名称。', + 'type' => 'string', + 'example' => 'test_project', + ], + 'ProjectIdentifier' => [ + 'description' => '工作空间的名称。', + 'type' => 'string', + 'example' => 'test_project', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '466230', + ], + 'ProjectDescription' => [ + 'description' => '工作空间的详细描述信息。', + 'type' => 'string', + 'example' => 'test_describe', + ], + 'ProjectOwnerBaseId' => [ + 'description' => '工作空间所有者的用户ID。', + 'type' => 'string', + 'example' => '13969939245****', + ], + 'ResourceManagerResourceGroupId' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'example' => 'rg-acfmzbn7****', + ], + 'Tags' => [ + 'description' => '工作空间绑定的标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签键。', + 'type' => 'string', + 'example' => 'key', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'example' => 'value', + ], + ], + ], + ], + 'DisableDevelopment' => [ + 'description' => '是否禁用开发角色,取值如下:'."\n" + .'- **false**:开启开发角色。'."\n" + .'- **true**:禁用开发角色。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'UseProxyOdpsAccount' => [ + 'description' => '访问MaxCompute引擎是否使用代理账号。'."\n" + .'- **false**:不使用。'."\n" + .'- **true**:使用。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'TablePrivacyMode' => [ + 'description' => 'MaxCompute表的可见性权限,取值如下:'."\n" + .'- **0**:租户内用户不可见MaxCompute表。'."\n" + .'- **1**:租户内用户可见MaxCompute表。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'IsDefault' => [ + 'description' => '是否为默认工作空间,取值如下:'."\n" + .'- **1**:是。'."\n" + .'- **0**:否。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserAlreadyInProject', + 'errorMessage' => 'The user already exists in the project.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"20658801****\\",\\n \\"PageResult\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 68,\\n \\"ProjectList\\": [\\n {\\n \\"ProjectStatusCode\\": \\"AVAILABLE\\",\\n \\"ProjectStatus\\": 0,\\n \\"ProjectName\\": \\"test_project\\",\\n \\"ProjectIdentifier\\": \\"test_project\\",\\n \\"ProjectId\\": 466230,\\n \\"ProjectDescription\\": \\"test_describe\\",\\n \\"ProjectOwnerBaseId\\": \\"13969939245****\\",\\n \\"ResourceManagerResourceGroupId\\": \\"rg-acfmzbn7****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"key\\",\\n \\"Value\\": \\"value\\"\\n }\\n ],\\n \\"DisableDevelopment\\": true,\\n \\"UseProxyOdpsAccount\\": true,\\n \\"TablePrivacyMode\\": 1,\\n \\"IsDefault\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 20658801***\\n \\n 1\\n 10\\n 123\\n \\n AVAILABLE\\n 0\\n 测试空间\\n test\\n 1212\\n 测试空间\\n 122222\\n rg-acfmzbn7pti3zfa\\n \\n Env\\n Test\\n \\n true\\n true\\n 1\\n 1\\n \\n \\n","errorExample":""}]', + 'title' => '查询工作空间列表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListProjectIds' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'description' => '目标阿里云账号ID。'."\n" + ."\n" + .'您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),鼠标悬停至顶部菜单栏右侧的用户头像,获取账号ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '139699392458****', + 'maxLength' => 10000000, + 'minLength' => 0, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0b57ff7216278945532771749d****', + ], + 'ProjectIds' => [ + 'description' => '返回的DataWorks工作空间ID列表。'."\n" + ."\n" + .'返回结果为目标阿里云账号所拥有角色权限的DataWorks工作空间的ID列表,此处仅以一个工作空间ID示例。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的DataWorks工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '466230', + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0b57ff7216278945532771749d****\\",\\n \\"ProjectIds\\": [\\n 466230\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 0b57ff7216278945532771749d****\\n 466230\\n","errorExample":""}]', + 'title' => '查询指定账号下DataWorks工作空间ID列表', + 'summary' => '该接口用于查询指定阿里云账号(包括阿里云主账号或RAM用户)在目标地域下拥有角色权限的DataWorks工作空间的ID列表。', + 'description' => '您的阿里云账号在DataWorks工作空间中可以拥有开发、运维、空间管理员等不同的角色权限。DataWorks工作空间的角色权限介绍,详情请参见[DataWorks角色管理](~~136941~~)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateProject' => [ + 'summary' => '该接口用于创建一个DataWorks工作空间。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '158574', + 'abilityTreeNodes' => [ + 'FEATUREdideYNK30F', + ], + ], + 'parameters' => [ + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => [ + 'description' => '幂等参数,该参数可为空。', + 'type' => 'string', + 'required' => false, + 'example' => 'ABFUOEUOTRTRJKE', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间的显示名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'test_project', + ], + ], + [ + 'name' => 'ProjectDescription', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间的详细描述信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'test_describe', + ], + ], + [ + 'name' => 'DisableDevelopment', + 'in' => 'query', + 'schema' => [ + 'description' => '是否禁用开发角色,取值如下:'."\n" + .'- **false**:默认值,开启开发角色。'."\n" + .'- **true**:禁用开发角色。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'IsAllowDownload', + 'in' => 'query', + 'schema' => [ + 'description' => '是否允许下载ide上查询的结果,取值如下:'."\n" + .'- **1**:默认值,允许下载。'."\n" + .'- **0**:不允许下载。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'ProjectMode', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间的模式,模式区别详情参见[必读:简单模式和标准模式的区别](~~85772~~)。'."\n" + ."\n" + .'取值如下:'."\n" + .'- **2**:默认值,表示简单工作空间模式。'."\n" + .'- **3**:表示标准工作空间模式。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '3', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '工作空间的名称,只能包含大小写字母、数字和下划线,且首字母必须是字母或数字。', + 'type' => 'string', + 'required' => true, + 'example' => 'test_project', + ], + ], + [ + 'name' => 'ResourceManagerResourceGroupId', + 'in' => 'query', + 'schema' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'rg-acfmzbn7pti3****', + ], + ], + [ + 'name' => 'Tags', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '工作空间绑定的标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签键。', + 'type' => 'string', + 'required' => true, + 'example' => 'key', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'required' => true, + 'example' => 'value', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 21, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + 'Success' => [ + 'description' => '请求是否成功,取值如下:'."\n" + .'- **true**:请求成功。'."\n" + .'- **false**:请求失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '创建成功的DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '466230', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\",\\n \\"Success\\": true,\\n \\"Data\\": 466230\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 1AFAE64E-D1BE-432B-A9****\\n true\\n 25\\n","errorExample":""}]', + 'title' => '创建DataWorks工作空间', + ], + 'ChangeResourceManagerResourceGroup' => [ + 'summary' => '该接口用于修改资源归属资源组。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '资源的类型,取值如下:'."\n" + .'- project,工作空间。如果您需要修改的是DataWorks版本所归属的资源组信息时,请选择project。'."\n" + .'- tenantresourcegroup,独享资源组。如果您需要修改的是DataWorks独享资源组所归属的资源组信息时,请选择tenantresourcegroup。', + 'type' => 'string', + 'required' => true, + 'example' => 'project', + ], + ], + [ + 'name' => 'ResourceId', + 'in' => 'query', + 'schema' => [ + 'description' => '资源类型的ID标识符,取值如下:'."\n" + .'- 当ResourceType=project时,则ResourceId可以理解为通过[ListProjects](~~2780068~~)接口获取工作空间的名称(ProjectIdentifier)。'."\n" + .'- 当ResourceType=tenantresourcegroup时,则ResourceId可以理解为通过[ListResourceGroups](~~2780075~~)接口获取独享资源组的标识(Identifier), 仅限ResourceGroupType=7、8、9的类型。', + 'type' => 'string', + 'required' => true, + 'example' => 'test_project', + ], + ], + [ + 'name' => 'ResourceManagerResourceGroupId', + 'in' => 'query', + 'schema' => [ + 'description' => '目标资源组ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'rg-bp67acfmxazb4p****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '变更资源组是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 1AFAE64E-D1BE-432B-A9****\\n 200\\n true\\n true\\n","errorExample":""}]', + 'title' => '修改资源归属资源组', + ], + 'ListMeasureData' => [ + 'summary' => '该接口用于查询用户所在租户下最近30天电话告警、短信告警计量数据。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '215284', + 'abilityTreeNodes' => [ + 'FEATUREdideD3SWSQ', + ], + ], + 'parameters' => [ + [ + 'name' => 'DomainCode', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'title' => '计量项,取值如下:'."\n" + .'- DideAlarmPhone:电话告警'."\n" + .'- DideAlarmSms:短信告警', + 'description' => '计量项,取值如下:'."\n" + .'- DideAlarmPhone:电话告警'."\n" + .'- DideAlarmSms:短信告警', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DideAlarmPhone', + ], + ], + [ + 'name' => 'ComponentCode', + 'in' => 'query', + 'schema' => [ + 'title' => '计量组件,取值如下:'."\n" + .'- Count:DideAlarmPhone电话告警条数、DideAlarmSms短信告警条数。', + 'description' => '计量组件,取值如下:'."\n" + .'- Count:DideAlarmPhone电话告警条数、DideAlarmSms短信告警条数', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'Count', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'title' => '计量周期开始时间戳(毫秒),计量周期是按照天统计,EndTime - StartTime仅能查询最近30天的数据。', + 'description' => '计量周期开始时间戳(毫秒),计量周期是按照天统计,EndTime - StartTime 仅能查询最近30天的数据。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1717344000000', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '计量周期截止时间戳(毫秒),计量周期是按照天统计,EndTime - StartTime仅能查询最近30天的数据。', + 'description' => '计量周期截止时间戳(毫秒),计量周期是按照天统计,EndTime - StartTime 仅能查询最近30天的数据。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1717430400000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '返回结果。', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求ID。', + 'description' => '请求 ID。', + 'type' => 'string', + 'example' => '1AFAE64E-D1BE-432B-A9****', + ], + 'MeasureDatas' => [ + 'title' => '查询计量结果列表。', + 'description' => '查询计量结果。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DomainCode' => [ + 'title' => '计量项。', + 'description' => '计量项。', + 'type' => 'string', + 'example' => 'DideAlarmPhone', + ], + 'ComponentCode' => [ + 'title' => '计量组件。', + 'description' => '计量组件。', + 'type' => 'string', + 'example' => 'Count', + ], + 'StartTime' => [ + 'title' => '计量周期开始时间戳(毫秒)。', + 'description' => '计量周期开始时间戳(毫秒)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1717344000000', + ], + 'EndTime' => [ + 'title' => '计量周期结束时间戳(毫秒)。', + 'description' => '计量周期结束时间戳(毫秒)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1717430400000', + ], + 'Usage' => [ + 'title' => '计量周期内使用总量。'."\n", + 'description' => '计量周期内使用总量。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + ], + ], + ], + 'Success' => [ + 'title' => '请求是否成功,取值如下:'."\n" + .'- true:请求成功。'."\n" + .'- false:请求失败。', + 'description' => '请求是否成功,取值如下:'."\n" + .'- true:请求成功。'."\n" + .'- false:请求失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'title' => '请求错误码。', + 'description' => '请求错误码。', + 'type' => 'string', + 'example' => '100001001', + ], + 'ErrorMessage' => [ + 'title' => '请求报错信息。', + 'description' => '请求报错信息。', + 'type' => 'string', + 'example' => 'The user is not in tenant.', + ], + 'HttpStatusCode' => [ + 'title' => '请求返回码。', + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1AFAE64E-D1BE-432B-A9****\\",\\n \\"MeasureDatas\\": [\\n {\\n \\"DomainCode\\": \\"DideAlarmPhone\\",\\n \\"ComponentCode\\": \\"Count\\",\\n \\"StartTime\\": 1717344000000,\\n \\"EndTime\\": 1717430400000,\\n \\"Usage\\": 10\\n }\\n ],\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"100001001\\",\\n \\"ErrorMessage\\": \\"The user is not in tenant.\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]', + 'title' => '查询计量数据', + ], + 'ListTables' => [ + 'summary' => '分页获取租户下面的数据源类型粒度的表名称。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '234146', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为 10 条,最大为 100 条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源类型。支持取值为odps、'."\n" + .'emr、'."\n" + .'mysql、'."\n" + .'holo、'."\n" + .'analyticdb_for_mysql、'."\n" + .'oracle、'."\n" + .'postgresql、'."\n" + .'sqlserver、'."\n" + .'clickhouse、'."\n" + .'starrocks 。', + 'type' => 'string', + 'required' => true, + 'example' => 'odps', + ], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => [ + 'description' => '分页信息,指定本次读取的起始点。', + 'type' => 'string', + 'required' => false, + 'example' => '12222', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求 ID。', + 'type' => 'string', + 'example' => 'E25887B7-579C-54A5-9C4F-83A****', + ], + 'Data' => [ + 'description' => '响应数据。', + 'type' => 'object', + 'properties' => [ + 'Total' => [ + 'description' => '总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'TableEntityList' => [ + 'description' => '实体数组。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的表信息。', + 'type' => 'object', + 'properties' => [ + 'EntityQualifiedName' => [ + 'description' => '表实体唯一标识。', + 'type' => 'string', + 'example' => 'maxcompute-table.project.table', + ], + 'EntityContent' => [ + 'description' => '表实体信息。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '表名称。', + 'type' => 'string', + 'example' => 'table', + ], + 'DataSourceQualifiedName' => [ + 'description' => '数据源唯一标识。', + 'type' => 'string', + 'example' => 'accountId:cn-shanghai:odps:project', + ], + 'DataSourceUniqueId' => [ + 'description' => '数据源标识唯一ID。', + 'type' => 'string', + 'example' => 'e70f92239d491057f6a2563b545bdaf8cc6b537d9dc55ec84c55f7cfefg', + ], + 'DatabaseName' => [ + 'description' => '数据库名称。', + 'type' => 'string', + 'example' => 'database', + ], + 'ProjectName' => [ + 'description' => 'odps项目名称。', + 'type' => 'string', + 'example' => 'project', + ], + 'InstanceId' => [ + 'description' => '数据源实例ID。', + 'type' => 'string', + 'example' => 'rm-uf6rn0123', + ], + ], + ], + ], + ], + ], + 'NextToken' => [ + 'description' => '分页信息,指定下次读取的起始点。', + 'type' => 'string', + 'example' => 'AAAAAVY3rYiv9VoUJQSiCitgjgSwg+byk0FIjirFkm4zfM4G0xYwM/FQvOhgrTHsCPIZ5yqXYu2NG6qRCRC52HvwbOA=', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E25887B7-579C-54A5-9C4F-83A****\\",\\n \\"Data\\": {\\n \\"Total\\": 100,\\n \\"TableEntityList\\": [\\n {\\n \\"EntityQualifiedName\\": \\"maxcompute-table.project.table\\",\\n \\"EntityContent\\": {\\n \\"TableName\\": \\"table\\",\\n \\"DataSourceQualifiedName\\": \\"accountId:cn-shanghai:odps:project\\",\\n \\"DataSourceUniqueId\\": \\"e70f92239d491057f6a2563b545bdaf8cc6b537d9dc55ec84c55f7cfefg\\",\\n \\"DatabaseName\\": \\"database\\",\\n \\"ProjectName\\": \\"project\\",\\n \\"InstanceId\\": \\"rm-uf6rn0123\\"\\n }\\n }\\n ],\\n \\"NextToken\\": \\"AAAAAVY3rYiv9VoUJQSiCitgjgSwg+byk0FIjirFkm4zfM4G0xYwM/FQvOhgrTHsCPIZ5yqXYu2NG6qRCRC52HvwbOA=\\"\\n }\\n}","type":"json"}]', + 'title' => '获取表列表', + ], + 'GetMetaDBInfo' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78259', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'AppGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '引擎ID,格式为`引擎类型.引擎名称`。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'odps.some_engine_name', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的clusterId。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的数据库。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,包括odps和emr。', + 'type' => 'string', + 'required' => false, + 'example' => 'emr', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1411515937****', + ], + 'Data' => [ + 'description' => '基本元数据信息。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => '数据库类型。', + 'type' => 'string', + 'example' => 'hive', + ], + 'Comment' => [ + 'description' => '备注。', + 'type' => 'string', + 'example' => '备注', + ], + 'CreateTime' => [ + 'description' => '创建引擎的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1541576644000', + ], + 'ProjectId' => [ + 'description' => '工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '22', + ], + 'ProjectName' => [ + 'description' => '工作空间的名称。', + 'type' => 'string', + 'example' => 'test', + ], + 'AppGuid' => [ + 'description' => '引擎ID,格式为`引擎类型.引擎名称`。', + 'type' => 'string', + 'example' => 'odps.engine_name', + ], + 'OwnerName' => [ + 'description' => '工作空间Owner的名称。', + 'type' => 'string', + 'example' => 'my_name', + ], + 'OwnerId' => [ + 'description' => '工作空间Owner的云账号ID。', + 'type' => 'string', + 'example' => 'userId', + ], + 'EnvType' => [ + 'description' => '环境类型:0表示非生产表,1表示生产表。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectNameCn' => [ + 'description' => '工作空间的显示名称。', + 'type' => 'string', + 'example' => '测试项目', + ], + 'Endpoint' => [ + 'description' => '服务地址Endpoint。', + 'type' => 'string', + 'example' => 'http://service.odpsstg.aliyun-inc.com/', + ], + 'ClusterBizId' => [ + 'description' => 'emr集群id。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Name' => [ + 'description' => '数据库名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Location' => [ + 'description' => 'emr数据库对应数据存储地址。', + 'type' => 'string', + 'example' => 'hdfs://', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '233', + ], + 'ModifyTime' => [ + 'description' => '修改引擎的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1541576644000', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.AppNotExist', + 'errorMessage' => 'The MaxCompute project does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The data does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0bc1411515937****\\",\\n \\"Data\\": {\\n \\"Type\\": \\"hive\\",\\n \\"Comment\\": \\"备注\\",\\n \\"CreateTime\\": 1541576644000,\\n \\"ProjectId\\": 22,\\n \\"ProjectName\\": \\"test\\",\\n \\"AppGuid\\": \\"odps.engine_name\\",\\n \\"OwnerName\\": \\"my_name\\",\\n \\"OwnerId\\": \\"userId\\",\\n \\"EnvType\\": 1,\\n \\"ProjectNameCn\\": \\"测试项目\\",\\n \\"Endpoint\\": \\"http://service.odpsstg.aliyun-inc.com/\\",\\n \\"ClusterBizId\\": \\"abc\\",\\n \\"Name\\": \\"abc\\",\\n \\"Location\\": \\"hdfs://\\",\\n \\"TenantId\\": 233,\\n \\"ModifyTime\\": 1541576644000\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0bc1411515937****\\n \\n hive\\n 备注\\n 1541576644000\\n 22\\n test\\n odps.engine_name\\n 323\\n 23\\n 1\\n 测试项目\\n http://service.odpsstg.aliyun-inc.com/\\n abc\\n abc\\n hdfs://\\n 233\\n 1541576644000\\n \\n","errorExample":""}]', + 'title' => '获取引擎实例的基本元数据信息', + 'summary' => '该接口用于获取引擎实例的基本元数据信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaDBInfo接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaDBTableList' => [ + 'summary' => '该接口用于获取引擎实例中的表。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78260', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大为1000条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '1000', + 'minimum' => '1', + 'exclusiveMinimum' => false, + 'example' => '100', + ], + ], + [ + 'name' => 'AppGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '项目的唯一标识,格式为`odps.{projectName}`。仅当数据类型为odps时,需要配置该参数。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.testProjectName', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID,仅当数据类型为emr时,需要配置该参数。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => '数据库的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,目前仅支持odps和emr。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Data' => [ + 'description' => '引擎实例下的表信息。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '计算引擎的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '20', + ], + 'TableEntityList' => [ + 'description' => '引擎实例下的表列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的表信息。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'example' => 'tname', + ], + 'TableGuid' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.tname', + ], + 'DatabaseName' => [ + 'description' => '数据库的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.AppNotExist', + 'errorMessage' => 'The MaxCompute project does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 20,\\n \\"TableEntityList\\": [\\n {\\n \\"TableName\\": \\"tname\\",\\n \\"TableGuid\\": \\"odps.engine_name.tname\\",\\n \\"DatabaseName\\": \\"abc\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0bc1ec92159376\\n \\n 1\\n 10\\n 20\\n \\n tname\\n odps.engine_name.tname\\n abc\\n \\n \\n","errorExample":""}]', + 'title' => '获取引擎实例下的表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaDBTableList接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。'."\n", + ], + 'CheckMetaTable' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78173', + 'abilityTreeNodes' => [ + 'FEATUREdideYZD64M', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR数据库的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR表名。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,odps或者emr。', + 'type' => 'string', + 'required' => false, + 'example' => 'emr', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '表是否存在。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc1ec92159376\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1ec92159376\\n","errorExample":""}]', + 'title' => '检查表是否存在', + 'summary' => '该接口用于检查表是否存在。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' CheckMetaTable接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'CheckMetaPartition' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78172', + 'abilityTreeNodes' => [ + 'FEATUREdideYZD64M', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute表的唯一标识。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'Partition', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute表分区的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'ds=202005', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => '该参数已废弃使用。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => '数据库的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => '表名。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,目前仅支持odps。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => 'MaxCompute表的分区是否存在。'."\n" + .'- true:存在。'."\n" + .'- false:不存在。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n 0bc1ec92159376\\n The connection does not exist.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '检查分区是否存在', + 'summary' => '该接口用于检查分区是否存在。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => 'CheckMetaPartition接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'SearchMetaTables' => [ + 'summary' => '该接口用于根据条件搜索表。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78351', + 'abilityTreeNodes' => [ + 'FEATUREdideE9OA4H', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询页码。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'AppGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表所在工作空间的标识。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'query', + 'schema' => [ + 'description' => '关键字采用分词匹配算法搜索表名,如果没有匹配的字段则返回空值。默认按照下划线分词搜索。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test', + ], + ], + [ + 'name' => 'EntityType', + 'in' => 'query', + 'schema' => [ + 'description' => '表的类型:0表示table,1表示view。如果不填,则默认搜索全部类型。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID,仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以登录[EMR的控制台](https://emr.console.aliyun.com/?spm=a2c4g.11186623.0.0.965cc5c2GeiHet#/cn-hangzhou),获取集群ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,包括ODPS和emr。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'emr', + ], + ], + [ + 'name' => 'Schema', + 'in' => 'query', + 'schema' => [ + 'description' => '表Schema信息。在ODPS,用户启动了三层模型需要填写Schema信息', + 'type' => 'string', + 'required' => false, + 'example' => 'default', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Data' => [ + 'description' => '搜索结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '分页查询页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '分页查询每页的大小。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '表的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'DataEntityList' => [ + 'description' => '查询返回的表列表。', + 'type' => 'array', + 'items' => [ + 'description' => '表详情。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'example' => 'test_name', + ], + 'DatabaseName' => [ + 'description' => '数据库名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'EntityType' => [ + 'description' => '表的类型:'."\n" + ."\n" + .'- 0表示table。'."\n" + .'- 1表示view。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectName' => [ + 'description' => '工作空间的名称。', + 'type' => 'string', + 'example' => 'test', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '323', + ], + 'TableGuid' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.test_name', + ], + 'OwnerId' => [ + 'description' => '工作空间Owner的云账号ID。', + 'type' => 'string', + 'example' => '123', + ], + 'ClusterId' => [ + 'description' => 'EMR集群ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'EnvType' => [ + 'description' => '环境类型:'."\n" + .'- 1表示生产环境。'."\n" + .'- 0表示开发环境。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'Schema' => [ + 'description' => '表Schema信息。在ODPS,用户启动了三层模型需要填写Schema信息', + 'type' => 'string', + 'example' => 'default', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"RequestId\\": \\"0bc1ec92159376****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"DataEntityList\\": [\\n {\\n \\"TableName\\": \\"test_name\\",\\n \\"DatabaseName\\": \\"abc\\",\\n \\"EntityType\\": 0,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 323,\\n \\"TableGuid\\": \\"odps.engine_name.test_name\\",\\n \\"OwnerId\\": \\"123\\",\\n \\"ClusterId\\": \\"abc\\",\\n \\"EnvType\\": 1,\\n \\"TenantId\\": 12345,\\n \\"Schema\\": \\"default\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The specified parameters are invalid.\\n 0bc1ec92159376****\\n true\\n 1031203110005\\n \\n 1\\n 10\\n 100\\n \\n test_name\\n abc\\n 0\\n test\\n 323\\n odps.engine_name.test_name\\n 123\\n abc\\n 1\\n 12345\\n default\\n \\n \\n","errorExample":""}]', + 'title' => '根据条件搜索表', + 'description' => '仅支持搜索MaxCompute和EMR两种类型的引擎表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' SearchMetaTables接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaTableBasicInfo' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78261', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute表的唯一标识。格式为odps.projectName.tableName。'."\n" + ."\n" + .'> EMR场景下,该参数非必选。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID,当DataSourceType(数据类型)参数配置为EMR时,当前参数必配。'."\n" + ."\n" + .'您可以登录[EMR的控制台](https://emr.console.aliyun.com/?spm=a2c4g.11186623.0.0.965cc5c2GeiHet#/cn-hangzhou),获取集群ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => '数据库的名称。仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以调用[ListMetaDB](~~2780105~~)接口获取。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR的表名称。仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以通过调用[GetMetaDBTableList](~~2780086~~)接口,获取表名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,包括odps和emr。', + 'type' => 'string', + 'required' => false, + 'example' => 'emr', + ], + ], + [ + 'name' => 'Extension', + 'in' => 'query', + 'schema' => [ + 'description' => '是否包含扩展字段。'."\n" + .'扩展字段包含读取次数、收藏次数、浏览次数等。'."\n" + .'仅当数据类型为ODPS时,该参数生效。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '请求返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1411515937', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'example' => 'table_name', + ], + 'FavoriteCount' => [ + 'description' => '表的收藏次数。仅当Extension参数取值为true时才会返回该参数,并且该参数仅对odps数据类型生效。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '6', + ], + 'Comment' => [ + 'description' => '表的描述。', + 'type' => 'string', + 'example' => 'test table', + ], + 'ColumnCount' => [ + 'description' => '字段的个数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'CreateTime' => [ + 'description' => '创建表的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589870294000', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '232', + ], + 'OwnerId' => [ + 'description' => '表所有者的ID。', + 'type' => 'string', + 'example' => '123', + ], + 'EnvType' => [ + 'description' => '环境类型,取值如下:'."\n" + .'- 0表示开发表。'."\n" + .'- 1表示生产表。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'DatabaseName' => [ + 'description' => '数据库的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'IsVisible' => [ + 'description' => '表的可见性:'."\n" + .'- 0表示目标表对工作空间成员可见。'."\n" + .'- 1表示目标表对租户内成员可见。'."\n" + .'- 2表示目标表对租户间成员均可见。'."\n" + .'- 3表示目标表仅对责任人可见。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TableGuid' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name', + ], + 'ReadCount' => [ + 'description' => '表的读取次数。仅当Extension参数取值为true时才会返回该参数,并且该参数仅对odps数据类型生效。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3', + ], + 'ClusterId' => [ + 'description' => 'EMR集群的ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'IsPartitionTable' => [ + 'description' => '是否为分区表,取值如下:'."\n" + .'- true:是分区表。'."\n" + .'- false:不是分区表。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'IsView' => [ + 'description' => '是否为视图,取值如下:'."\n" + .'- true:是视图。'."\n" + .'- false:不是视图。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'LifeCycle' => [ + 'description' => '表的生命周期。单位为天。'."\n" + .'> MaxCompute表未设置生命周期时,返回值为0,表示永久有效', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + 'ProjectName' => [ + 'description' => '工作空间的名称。', + 'type' => 'string', + 'example' => 'test', + ], + 'ViewCount' => [ + 'description' => '表的浏览次数。仅当Extension参数取值为true时才会返回该参数,并且该参数仅对odps数据类型生效。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + ], + 'LastAccessTime' => [ + 'description' => '最近一次访问表的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589870294000', + ], + 'DataSize' => [ + 'description' => '表占用的存储空间。单位为Byte。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'LastModifyTime' => [ + 'description' => '最近一次更新表的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589870294000', + ], + 'LastDdlTime' => [ + 'description' => '最近一次变更表结构的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589870294000', + ], + 'PartitionKeys' => [ + 'description' => 'Hive分区。', + 'type' => 'string', + 'example' => 'ab', + ], + 'Location' => [ + 'description' => 'Hive数据库的存储地址。', + 'type' => 'string', + 'example' => 'hdfs://', + ], + 'Caption' => [ + 'description' => '表的中文名称。', + 'type' => 'string', + 'example' => '中文名', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'Schema' => [ + 'description' => '表Schema信息。在ODPS,用户启动了三层模型需要填写Schema信息', + 'type' => 'string', + 'example' => 'default', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1411515937\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"TableName\\": \\"table_name\\",\\n \\"FavoriteCount\\": 6,\\n \\"Comment\\": \\"test table\\",\\n \\"ColumnCount\\": 3,\\n \\"CreateTime\\": 1589870294000,\\n \\"ProjectId\\": 232,\\n \\"OwnerId\\": \\"123\\",\\n \\"EnvType\\": 1,\\n \\"DatabaseName\\": \\"abc\\",\\n \\"IsVisible\\": 1,\\n \\"TableGuid\\": \\"odps.engine_name.table_name\\",\\n \\"ReadCount\\": 3,\\n \\"ClusterId\\": \\"abc\\",\\n \\"IsPartitionTable\\": true,\\n \\"IsView\\": false,\\n \\"LifeCycle\\": 5,\\n \\"ProjectName\\": \\"test\\",\\n \\"ViewCount\\": 2,\\n \\"LastAccessTime\\": 1589870294000,\\n \\"DataSize\\": 10,\\n \\"LastModifyTime\\": 1589870294000,\\n \\"LastDdlTime\\": 1589870294000,\\n \\"PartitionKeys\\": \\"ab\\",\\n \\"Location\\": \\"hdfs://\\",\\n \\"Caption\\": \\"中文名\\",\\n \\"TenantId\\": 12345,\\n \\"Schema\\": \\"default\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0bc1411515937\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n table_name\\n 6\\n test table\\n 3\\n 1589870294000\\n 232\\n 123\\n 1\\n abc\\n 1\\n odps.engine_name.table_name\\n 3\\n abc\\n true\\n false\\n 5\\n test\\n 2\\n 1589870294000\\n 10\\n 1589870294000\\n 1589870294000\\n ab\\n hdfs://\\n 中文名\\n 12345\\n default\\n \\n","errorExample":""}]', + 'title' => '获取表的基础信息', + 'summary' => '该接口用于获取表的基础信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaTableBasicInfo接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaTableColumn' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78263', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。您可以通过调用[GetMetaDBTableList](~~2780086~~),获取表的唯一标识。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => [ + 'description' => '请求获取的数据页码数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID,您可以登录EMR管理控制台,获取集群ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'C-010A704DA760****', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR的数据库名称。您可以通过调用[ListMetaDB](~~2780105~~)接口,获取数据库名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR的表名称。您可以通过调用[GetMetaDBTableList](~~2780086~~)接口,获取表名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,当前仅支持取值为emr。', + 'type' => 'string', + 'required' => false, + 'example' => 'emr', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'PageNum' => [ + 'description' => '请求获取的数据页码数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '字段的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'ColumnList' => [ + 'description' => '字段的信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'ColumnGuid' => [ + 'description' => '字段的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name.name', + ], + 'ColumnName' => [ + 'description' => '字段的名称。', + 'type' => 'string', + 'example' => 'name', + ], + 'IsPartitionColumn' => [ + 'description' => '字段是否为分区字段,取值如下:'."\n" + .'- true,是分区字段。'."\n" + .'- false,不是分区字段。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Comment' => [ + 'description' => '字段的备注。', + 'type' => 'string', + 'example' => 'comment ', + ], + 'ColumnType' => [ + 'description' => '字段的类型。', + 'type' => 'string', + 'example' => 'string', + ], + 'IsPrimaryKey' => [ + 'description' => '字段是否为主键,取值如下:'."\n" + .'- true,是主键。'."\n" + .'- false,不是主键。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Position' => [ + 'description' => '字段的排序。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Caption' => [ + 'description' => '字段的描述。', + 'type' => 'string', + 'example' => 'data column', + ], + 'IsForeignKey' => [ + 'description' => '字段是否为外键,取值如下:'."\n" + .'- true,是外键。'."\n" + .'- false,不是外键。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RelationCount' => [ + 'description' => '字段热度。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.GuidFormat', + 'errorMessage' => 'The GUID format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNum\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"ColumnList\\": [\\n {\\n \\"ColumnGuid\\": \\"odps.engine_name.table_name.name\\",\\n \\"ColumnName\\": \\"name\\",\\n \\"IsPartitionColumn\\": false,\\n \\"Comment\\": \\"comment \\",\\n \\"ColumnType\\": \\"string\\",\\n \\"IsPrimaryKey\\": false,\\n \\"Position\\": 1,\\n \\"Caption\\": \\"data column\\",\\n \\"IsForeignKey\\": true,\\n \\"RelationCount\\": 2\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0bc1ec92159376\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 1\\n 10\\n 100\\n \\n odps.engine_name.table_name.name\\n name\\n false\\n comment \\n string\\n false\\n 1\\n data column\\n true\\n 2\\n \\n \\n","errorExample":""}]', + 'title' => '获取表的字段信息', + 'summary' => '该接口用于获取表的字段信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaTableColumn接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaTablePartition' => [ + 'summary' => '该接口用于获取表的分区列表。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78269', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID,仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以登录[EMR的控制台](https://emr.console.aliyun.com/?spm=a2c4g.11186623.0.0.965cc5c2GeiHet#/cn-hangzhou),获取集群ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => '数据库的名称。仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以调用[ListMetaDB](~~2780105~~)接口获取。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR的表名称。仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以通过调用[GetMetaDBTableList](~~2780086~~)接口,获取表名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,支持ODPS或者EMR。', + 'type' => 'string', + 'required' => false, + 'example' => 'emr', + ], + ], + [ + 'name' => 'SortCriterion', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '表分区的排序逻辑。', + 'type' => 'object', + 'properties' => [ + 'SortField' => [ + 'description' => '表分区的排序字段。您可通过name、modify_time排序。'."\n" + .'默认按照表分区的创建时间排序。', + 'type' => 'string', + 'required' => false, + 'example' => 'name', + ], + 'Order' => [ + 'description' => '表分区的排序顺序,支持使用asc、desc方式排序。默认使用desc。', + 'type' => 'string', + 'required' => false, + 'example' => 'desc', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回的数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '分区的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'DataEntityList' => [ + 'description' => '实例列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据的结构。', + 'type' => 'object', + 'properties' => [ + 'PartitionPath' => [ + 'description' => '分区的目录。', + 'type' => 'string', + 'example' => 'abc', + ], + 'DataSize' => [ + 'description' => '分区的大小,单位为Byte。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '19', + ], + 'PartitionName' => [ + 'description' => '分区的名称。', + 'type' => 'string', + 'example' => 'pt=20170614', + ], + 'Comment' => [ + 'description' => '备注信息。', + 'type' => 'string', + 'example' => '备注', + ], + 'ModifiedTime' => [ + 'description' => '修改分区的时间,单位为毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590032868000', + ], + 'CreateTime' => [ + 'description' => '创建分区的时间,单位为毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590032868000', + ], + 'RecordCount' => [ + 'description' => '分区的数据量。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '233', + ], + 'PartitionType' => [ + 'description' => '分区的类型。', + 'type' => 'string', + 'example' => 'abc', + ], + 'PartitionGuid' => [ + 'description' => '分区的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name.pt=20170614', + ], + 'PartitionLocation' => [ + 'description' => 'Hive分区的地址。', + 'type' => 'string', + 'example' => 'abc', + ], + 'TableGuid' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"DataEntityList\\": [\\n {\\n \\"PartitionPath\\": \\"abc\\",\\n \\"DataSize\\": 19,\\n \\"PartitionName\\": \\"pt=20170614\\",\\n \\"Comment\\": \\"备注\\",\\n \\"ModifiedTime\\": 1590032868000,\\n \\"CreateTime\\": 1590032868000,\\n \\"RecordCount\\": 233,\\n \\"PartitionType\\": \\"abc\\",\\n \\"PartitionGuid\\": \\"odps.engine_name.table_name.pt=20170614\\",\\n \\"PartitionLocation\\": \\"abc\\",\\n \\"TableGuid\\": \\"odps.engine_name.table_name\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0bc1ec92159376\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 1\\n 10\\n 100\\n \\n abc\\n 19\\n pt=20170614\\n 备注\\n 1590032868000\\n 1590032868000\\n 233\\n abc\\n odps.engine_name.table_name.pt=20170614\\n abc\\n odps.engine_name.table_name\\n \\n \\n","errorExample":""}]', + 'title' => '获取表的分区列表', + 'description' => '仅支持获取MaxCompute和EMR两种引擎表的分区列表。 对于EMR引擎,仅支持采用数据湖构建(Data Lake Formation)管理元数据的新版本数据湖集群和集群版本小于3.41.0或5.7.0的Hadoop集群。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaTablePartition接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaTableOutput' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78268', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页的页数。默认值为1,最小值为1,最大值为30。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'StartDate', + 'in' => 'query', + 'schema' => [ + 'description' => '开始日期。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-06-27', + ], + ], + [ + 'name' => 'EndDate', + 'in' => 'query', + 'schema' => [ + 'description' => '结束日期。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-05-27', + ], + ], + [ + 'name' => 'TaskId', + 'in' => 'query', + 'schema' => [ + 'description' => '任务标识。', + 'type' => 'string', + 'required' => false, + 'example' => '1048576', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '分页的页数。默认值为1,最小值为1,最大值为30。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '表的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'DataEntityList' => [ + 'description' => '实例列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'EndTime' => [ + 'description' => '结束时间。', + 'type' => 'string', + 'example' => '2020-01-01 00:01:00', + ], + 'TaskInstanceId' => [ + 'description' => '实例ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3521', + ], + 'StartTime' => [ + 'description' => '开始时间。', + 'type' => 'string', + 'example' => '2020-01-01 00:00:00', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '333', + ], + 'WaitTime' => [ + 'description' => '等待时间。', + 'type' => 'string', + 'example' => '323', + ], + 'TableGuid' => [ + 'description' => 'ODPS表的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name', + ], + 'TaskId' => [ + 'description' => '任务标识。', + 'type' => 'string', + 'example' => '1048576', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"RequestId\\": \\"0bc1ec92159376****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"DataEntityList\\": [\\n {\\n \\"EndTime\\": \\"2020-01-01 00:01:00\\",\\n \\"TaskInstanceId\\": 3521,\\n \\"StartTime\\": \\"2020-01-01 00:00:00\\",\\n \\"ProjectId\\": 333,\\n \\"WaitTime\\": \\"323\\",\\n \\"TableGuid\\": \\"odps.engine_name.table_name\\",\\n \\"TaskId\\": \\"1048576\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The specified parameters are invalid.\\n 0bc1ec92159376****\\n true\\n 1031203110005\\n \\n 1\\n 10\\n 100\\n \\n 1511107200000\\n 3521\\n 1511107200000\\n 333\\n 323\\n odps.engine_name.table_name\\n 1048576\\n \\n \\n","errorExample":""}]', + 'title' => '获取表的产出信息', + 'summary' => '该接口用于获取表的产出信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaTableOutput接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaTableChangeLog' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78262', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'TableGuid', + 'in' => 'formData', + 'schema' => [ + 'description' => '表的唯一标识,格式为odps.projectName.tableName。您可以通过调用[GetMetaDBTableList](~~2780086~~),获取表的唯一标识。'."\n" + .'> 当前仅支持调用[GetMetaTableChangeLog](~~2780094~~)获取MaxCompute表的变更日志。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'ChangeType', + 'in' => 'formData', + 'schema' => [ + 'description' => '变更类型,包括CREATE_TABLE、ALTER_TABLE、DROP_TABLE、ADD_PARTITION和DROP_PARTITION。', + 'type' => 'string', + 'required' => false, + 'example' => 'ALTER_TABLE', + ], + ], + [ + 'name' => 'ObjectType', + 'in' => 'formData', + 'schema' => [ + 'description' => '变更主体类别,包括TABLE和PARTITION。', + 'type' => 'string', + 'required' => false, + 'example' => 'TABLE', + ], + ], + [ + 'name' => 'StartDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '表变更的开始日期,格式为yyyy-MM-dd HH:mm:ss。'."\n" + .'- 如果输入的日期校验失败,则系统默认获取当前时间为表变更的开始日期。'."\n" + .'- 当输入的变更开始日期和结束日期都校验失败时,则系统自动获取最近30天的表变更记录。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '2020-06-01 00:00:00', + ], + ], + [ + 'name' => 'EndDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '表变更的结束日期,格式为yyyy-MM-dd HH:mm:ss。'."\n" + .'- 如果输入的日期校验失败,则系统默认获取当前时间为表变更的结束日期。'."\n" + .'- 当输入的变更开始日期和结束日期都校验失败时,则系统自动获取最近30天的表变更记录。', + 'type' => 'string', + 'required' => false, + 'example' => '2020-06-02 00:00:00', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TotalCount' => [ + 'description' => '表的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'DataEntityList' => [ + 'description' => '实例列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ObjectType' => [ + 'description' => '变更主体的类别,包括TABLE和PARTITION。', + 'type' => 'string', + 'example' => 'TABLE', + ], + 'ModifiedTime' => [ + 'description' => '修改表的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590722845000', + ], + 'CreateTime' => [ + 'description' => '创建表的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590722845000', + ], + 'ChangeContent' => [ + 'description' => '变更的内容。', + 'type' => 'string', + 'example' => '"[{\\"action\\":\\"ADD_COLUMN\\",\\"value\\":[{\\"originName\\":\\"\\",\\"originType\\":\\"\\",\\"originComment\\":\\"\\",\\"name\\":\\"id\\",\\"type\\":\\"struct\\",\\"comment\\":\\"\\"}]}]",', + ], + 'Operator' => [ + 'description' => '操作者的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'ChangeType' => [ + 'description' => '变更的类型。', + 'type' => 'string', + 'example' => 'CREATE_TABLE', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 10,\\n \\"PageSize\\": 1,\\n \\"TotalCount\\": 10,\\n \\"DataEntityList\\": [\\n {\\n \\"ObjectType\\": \\"TABLE\\",\\n \\"ModifiedTime\\": 1590722845000,\\n \\"CreateTime\\": 1590722845000,\\n \\"ChangeContent\\": \\"\\\\\\"[{\\\\\\\\\\\\\\"action\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"ADD_COLUMN\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"originName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"originType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"originComment\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"struct\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"comment\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"}]}]\\\\\\",\\",\\n \\"Operator\\": \\"abc\\",\\n \\"ChangeType\\": \\"CREATE_TABLE\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0bc1ec92159376\\n 200\\n \\n 10\\n 1\\n 10\\n \\n abc\\n TABLE\\n [{\\"action\\":\\"ADD_COLUMN\\",\\"value\\":[{\\"originName\\":\\"\\",\\"originType\\":\\"\\",\\"originComment\\":\\"\\",\\"name\\":\\"id\\",\\"type\\":\\"struct<name:string>\\",\\"comment\\":\\"\\"}]}]\\n 1590722845000\\n CREATE_TABLE\\n 1590722845000\\n \\n \\n Invalid.Tenant.ConnectionNotExists\\n The connection does not exist.\\n true\\n","errorExample":""}]', + 'title' => '获取表的变更日志', + 'summary' => '该接口用于获取表的变更日志。', + 'description' => '> 不建议使用该API,后续将有新API上线覆盖此功能。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaTableChangeLog接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaTableIntroWiki' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78265', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'WikiVersion', + 'in' => 'query', + 'schema' => [ + 'description' => '使用说明的版本。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'ModifiedTime' => [ + 'description' => '修改表的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1584444247000', + ], + 'Version' => [ + 'description' => '版本号。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'CreateTime' => [ + 'description' => '表的创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1584444247000', + ], + 'CreatorName' => [ + 'description' => '表的创建者的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Content' => [ + 'description' => '表的描述信息。', + 'type' => 'string', + 'example' => '# 业务需求\\n\\n<a name="xiw5n"', + ], + 'Creator' => [ + 'description' => '表的创建者。', + 'type' => 'string', + 'example' => 'abc', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"ModifiedTime\\": 1584444247000,\\n \\"Version\\": 1,\\n \\"CreateTime\\": 1584444247000,\\n \\"CreatorName\\": \\"abc\\",\\n \\"Content\\": \\"# 业务需求\\\\\\\\n\\\\\\\\n<a name="xiw5n"\\",\\n \\"Creator\\": \\"abc\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"0bc1ec92159376****\\n200\\n\\n 1584444247000\\n 1\\n # 业务需求\\\\n\\\\n&lt;a name=&quot;xiw5n&quot;\\n 1584444247000\\n abc\\n abc\\n\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '获取表的使用说明', + 'summary' => '该接口用于获取表的使用说明。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaTableIntroWiki接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'CreateMetaCategory' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78189', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '类目的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'category_name', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => [ + 'description' => '类目的备注信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'category 1', + ], + ], + [ + 'name' => 'ParentId', + 'in' => 'formData', + 'schema' => [ + 'description' => '父类目的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '类目信息。', + 'type' => 'object', + 'properties' => [ + 'CategoryId' => [ + 'description' => '类目的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '223', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalDepth', + 'errorMessage' => 'A category can contain a maximum of 4 levels.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryNameDuplicate', + 'errorMessage' => 'The category name is duplicated at this level.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryForbidden', + 'errorMessage' => 'Failed to delete the category. The current category is associated with a table and cannot be operated.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalTenant', + 'errorMessage' => 'The tenant ID is different in the parent and child categories.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryRelationDuplicate"', + 'errorMessage' => 'The table is already bound to the category.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"CategoryId\\": 223\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0bc1ec92159376\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 223\\n \\n","errorExample":""}]', + 'title' => '创建类目', + 'summary' => '该接口用于创建类目。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' CreateMetaCategory接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'DeleteMetaCategory' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78211', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'CategoryId', + 'in' => 'query', + 'schema' => [ + 'description' => '类目的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '23', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalDepth', + 'errorMessage' => 'A category can contain a maximum of 4 levels.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryNameDuplicate', + 'errorMessage' => 'The category name is duplicated at this level.', + ], + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryForbidden', + 'errorMessage' => 'Failed to delete the category. The current category is associated with a table and cannot be operated.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalTenant', + 'errorMessage' => 'The tenant ID is different in the parent and child categories.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryRelationDuplicate"', + 'errorMessage' => 'The table is already bound to the category.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n 0bc1ec92159376\\n The connection does not exist.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '删除类目', + 'summary' => '该接口用于删除类目。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' DeleteMetaCategory接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'UpdateMetaCategory' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78374', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '类目的名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'category name ', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => [ + 'description' => '类目的备注信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'category name', + ], + ], + [ + 'name' => 'CategoryId', + 'in' => 'formData', + 'schema' => [ + 'description' => '类目的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '2', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否成功更新类目。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalDepth', + 'errorMessage' => 'A category can contain a maximum of 4 levels.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryNameDuplicate', + 'errorMessage' => 'The category name is duplicated at this level.', + ], + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryForbidden', + 'errorMessage' => 'Failed to delete the category. The current category is associated with a table and cannot be operated.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalTenant', + 'errorMessage' => 'The tenant ID is different in the parent and child categories.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryRelationDuplicate"', + 'errorMessage' => 'The table is already bound to the category.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0bc1ec92159376\\n200\\ntrue\\ntrue","errorExample":""}]', + 'title' => '更新类目', + 'summary' => '该接口用于更新类目。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' UpdateMetaCategory接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaCategory' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78257', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'ParentCategoryId', + 'in' => 'query', + 'schema' => [ + 'description' => '类目树的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'example' => '333', + ], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'PageNum' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '类目的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'DataEntityList' => [ + 'description' => 'Data实例列表。', + 'type' => 'array', + 'items' => [ + 'description' => '类目详情。', + 'type' => 'object', + 'properties' => [ + 'Depth' => [ + 'description' => '类目的层数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Comment' => [ + 'description' => '类目的备注信息。', + 'type' => 'string', + 'example' => 'category 1', + ], + 'ModifiedTime' => [ + 'description' => '修改类目的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1541576644000', + ], + 'CreateTime' => [ + 'description' => '创建类目的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1541576644000', + ], + 'CategoryId' => [ + 'description' => '类目的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '133', + ], + 'LastOperatorId' => [ + 'description' => '上一次操作的用户ID。', + 'type' => 'string', + 'example' => '12345', + ], + 'Name' => [ + 'description' => '类目的名称。', + 'type' => 'string', + 'example' => 'category 1', + ], + 'ParentCategoryId' => [ + 'description' => '父类目的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12', + ], + 'OwnerId' => [ + 'description' => '类目所有者的ID。', + 'type' => 'string', + 'example' => '123', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalDepth', + 'errorMessage' => 'A category can contain a maximum of 4 levels.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryNameDuplicate', + 'errorMessage' => 'The category name is duplicated at this level.', + ], + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryForbidden', + 'errorMessage' => 'Failed to delete the category. The current category is associated with a table and cannot be operated.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalTenant', + 'errorMessage' => 'The tenant ID is different in the parent and child categories.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryRelationDuplicate"', + 'errorMessage' => 'The table is already bound to the category.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNum\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 10,\\n \\"DataEntityList\\": [\\n {\\n \\"Depth\\": 1,\\n \\"Comment\\": \\"category 1\\",\\n \\"ModifiedTime\\": 1541576644000,\\n \\"CreateTime\\": 1541576644000,\\n \\"CategoryId\\": 133,\\n \\"LastOperatorId\\": \\"12345\\",\\n \\"Name\\": \\"category 1\\",\\n \\"ParentCategoryId\\": 12,\\n \\"OwnerId\\": \\"123\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0bc1ec92159376\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 1\\n 10\\n 10\\n \\n 1\\n category 1\\n 1541576644000\\n 1541576644000\\n 133\\n 12345\\n category 1\\n 12\\n 123\\n \\n \\n","errorExample":""}]', + 'title' => '查询类目树', + 'summary' => '该接口用于查询类目树。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaCategory接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaTableListByCategory' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78267', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'CategoryId', + 'in' => 'query', + 'schema' => [ + 'description' => '类目的ID,您可以调用[GetMetaCategory](~~2780099~~)获取类目的ID。类目方便您通过类别有效地组织和管理表,您可以在查找表时,通过类目来过滤目标表。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '23', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '表的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '20', + ], + 'TableGuidList' => [ + 'description' => '返回数据结构。', + 'type' => 'array', + 'items' => [ + 'description' => '表的列表。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalDepth', + 'errorMessage' => 'A category can contain a maximum of 4 levels.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryNameDuplicate', + 'errorMessage' => 'The category name is duplicated at this level.', + ], + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryForbidden', + 'errorMessage' => 'Failed to delete the category. The current category is associated with a table and cannot be operated.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryIllegalTenant', + 'errorMessage' => 'The tenant ID is different in the parent and child categories.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + [ + 'errorCode' => 'Invalid.Meta.CategoryRelationDuplicate"', + 'errorMessage' => 'The table is already bound to the category.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 20,\\n \\"TableGuidList\\": [\\n \\"odps.engine_name.table_name\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0bc1ec92159376\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 1\\n 10\\n 20\\n odps.engine_name.table_name\\n \\n","errorExample":""}]', + 'title' => '查询指定类目下的表', + 'summary' => '该接口用于查询指定类目下的表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaTableListByCategory接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'AddToMetaCategory' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78167', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'CategoryId', + 'in' => 'query', + 'schema' => [ + 'description' => '类目的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '5', + ], + ], + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否成功添加表至指定的类目。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0bc1ec92159376\\n200\\ntrue\\ntrue","errorExample":""}]', + 'title' => '添加表至指定的类目', + 'summary' => '该接口用于添加表至指定的类目。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' AddToMetaCategory接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'DeleteFromMetaCategory' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78210', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'CategoryId', + 'in' => 'query', + 'schema' => [ + 'description' => '类目的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '5', + ], + ], + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否成功删除表。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n 0bc1ec92159376\\n The connection does not exist.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '从指定的类目中移除表', + 'summary' => '该接口用于从指定的类目中移除表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' DeleteFromMetaCategory接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'UpdateMetaTable' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78375', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '0', + 'example' => '101', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'table1', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks的环境,包括0(开发环境)和1(生产环境)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识,格式为odps.{projectName}.{tableName}。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps.test.table1', + ], + ], + [ + 'name' => 'NewOwnerId', + 'in' => 'query', + 'schema' => [ + 'description' => '新的OwnerId,为空时不更新。', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'AddedLabels', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要增加的标签名称,使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'a,b,c', + ], + ], + [ + 'name' => 'RemovedLabels', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要删除的标签名称,使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'a,b,c', + ], + ], + [ + 'name' => 'CategoryId', + 'in' => 'query', + 'schema' => [ + 'description' => '需要关联的类目ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '0', + 'example' => '101', + ], + ], + [ + 'name' => 'Visibility', + 'in' => 'query', + 'schema' => [ + 'description' => '编辑表的可见性,包括0(不可见)、1(可见)和2(工作空间可见)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '0', + 'example' => '1', + ], + ], + [ + 'name' => 'Caption', + 'in' => 'query', + 'schema' => [ + 'description' => '表的中文名称。', + 'type' => 'string', + 'required' => false, + 'example' => '中文名', + ], + ], + [ + 'name' => 'Schema', + 'in' => 'query', + 'schema' => [ + 'description' => '表Schema信息。在ODPS,用户启动了三层模型需要填写Schema信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'default', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'UpdateResult' => [ + 'description' => '是否更新成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcde', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"UpdateResult\\": true,\\n \\"RequestId\\": \\"abcde\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n abcde\\n","errorExample":""}]', + 'title' => '更新表的Meta信息', + 'summary' => '该接口用于更新表的Meta信息。', + 'description' => '该接口仅支持MaxCompute引擎表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateMetaTableIntroWiki' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78376', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识,格式为odps.{projectName}.{tableName}。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.test.table1', + ], + ], + [ + 'name' => 'Content', + 'in' => 'formData', + 'schema' => [ + 'description' => '表说明的详情。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'abc', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'UpdateResult' => [ + 'description' => '表的更新结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => 'abcde', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"UpdateResult\\": true,\\n \\"RequestId\\": \\"abcde\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n abcde\\n","errorExample":""}]', + 'title' => '更新表的说明信息', + 'summary' => '该接口用于更新表的说明信息,当数据不存在时增加信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListMetaDB' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78317', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以调用[ListProjects](~~178393~~),获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '123', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,当前仅支持取值为emr。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'emr', + ], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '10000', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '10', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID。您可以登录[EMR的控制台](https://emr.console.aliyun.com/?spm=a2c4g.11186623.0.0.965cc5c2GeiHet#/cn-hangzhou),获取集群ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'DatabaseInfo' => [ + 'description' => '数据库的信息。', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'description' => '数据库的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'DbList' => [ + 'description' => '数据库列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => '数据库的类型。', + 'type' => 'string', + 'example' => 'HIVE', + ], + 'CreateTimeStamp' => [ + 'description' => '创建数据库的时间。该结果显示为时间戳,您可以根据使用的时区将时间戳转换为相应日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1388776825', + ], + 'UUID' => [ + 'description' => '数据库的唯一标识。', + 'type' => 'string', + 'example' => '32342', + ], + 'ModifiedTimeStamp' => [ + 'description' => '更新数据库的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1388776837', + ], + 'Name' => [ + 'description' => '数据库的名称。', + 'type' => 'string', + 'example' => 'name', + ], + 'OwnerId' => [ + 'description' => 'Owner的ID。', + 'type' => 'string', + 'example' => '1232', + ], + 'Location' => [ + 'description' => '存储数据库的地址。', + 'type' => 'string', + 'example' => 'hdfs://localhost:777/user/hadoop/test.txt', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.AppNotExist', + 'errorMessage' => 'The MaxCompute project does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"abc\\",\\n \\"DatabaseInfo\\": {\\n \\"TotalCount\\": 10,\\n \\"DbList\\": [\\n {\\n \\"Type\\": \\"HIVE\\",\\n \\"CreateTimeStamp\\": 1388776825,\\n \\"UUID\\": \\"32342\\",\\n \\"ModifiedTimeStamp\\": 1388776837,\\n \\"Name\\": \\"name\\",\\n \\"OwnerId\\": \\"1232\\",\\n \\"Location\\": \\"hdfs://localhost:777/user/hadoop/test.txt\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n abc\\n \\n 10\\n \\n HIVE\\n 1388776825\\n 32342\\n 1388776837\\n name\\n 1232\\n hdfs://localhost:777/user/hadoop/test.txt\\n \\n \\n","errorExample":""}]', + 'title' => '查询数据库列表', + 'summary' => '该接口用于查询数据库列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ListMetaDB接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'UpdateTableModelInfo' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78385', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'FirstLevelThemeId', + 'in' => 'query', + 'schema' => [ + 'description' => '一级主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '0', + 'example' => '101', + ], + ], + [ + 'name' => 'SecondLevelThemeId', + 'in' => 'query', + 'schema' => [ + 'description' => '二级主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '0', + 'example' => '101', + ], + ], + [ + 'name' => 'LevelId', + 'in' => 'query', + 'schema' => [ + 'description' => '层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '0', + 'example' => '101', + ], + ], + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识,格式为odps.{projectName}.{tableName}。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.test.table1', + ], + ], + [ + 'name' => 'LevelType', + 'in' => 'query', + 'schema' => [ + 'description' => '层级类型,包括1(逻辑层级)和2(物理层级)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '2147483647', + 'minimum' => '0', + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'UpdateResult' => [ + 'description' => '表是否更新成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcde', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"UpdateResult\\": true,\\n \\"RequestId\\": \\"abcde\\"\\n}","errorExample":""},{"type":"xml","example":"abcde\\ntrue","errorExample":""}]', + 'title' => '修改表模型信息', + 'summary' => '修改表的主题、层级和物理分类等信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateTableTheme' => [ + 'summary' => '调用CreateTableTheme创建主题。不建议使用该API,后续将有新API上线覆盖此功能。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78199', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + [ + 'name' => 'Level', + 'in' => 'query', + 'schema' => [ + 'description' => '主题的层级,包括1(一级主题)和2(二级主题)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '主题的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '主题名称', + ], + ], + [ + 'name' => 'ParentId', + 'in' => 'query', + 'schema' => [ + 'description' => '父类层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '122', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'ABCd', + ], + 'ErrorMessage' => [ + 'description' => '错误消息。', + 'type' => 'string', + 'example' => 'success', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '0', + ], + 'Success' => [ + 'description' => '是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ThemeId' => [ + 'description' => '生成的主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"ABCd\\",\\n \\"ErrorMessage\\": \\"success\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Success\\": true,\\n \\"ThemeId\\": 123\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n ABCd\\n success\\n 0\\n true\\n 123\\n","errorExample":""}]', + 'title' => '创建主题', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteTableTheme' => [ + 'summary' => '调用DeleteTableTheme删除主题。不建议使用该API,后续将有新API上线覆盖此功能。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78220', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ThemeId', + 'in' => 'query', + 'schema' => [ + 'description' => '主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcdef', + ], + 'ErrorMessage' => [ + 'description' => '错误消息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '主题是否删除成功:'."\n" + ."\n" + .'- true:是'."\n" + ."\n" + .'- false:否', + 'type' => 'boolean', + 'example' => 'true', + ], + 'DeleteResult' => [ + 'description' => '删除结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"abcdef\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"DeleteResult\\": true\\n}","errorExample":""},{"type":"xml","example":"abcdef\\n200\\n0\\nsuccess\\ntrue\\ntrue","errorExample":""}]', + 'title' => '删除主题', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateTableTheme' => [ + 'summary' => '调用UpdateTableTheme更新主题。不建议使用该API,后续将有新API上线覆盖此功能。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78386', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '主题的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '主题名称', + ], + ], + [ + 'name' => 'ThemeId', + 'in' => 'query', + 'schema' => [ + 'description' => '主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcd', + ], + 'ErrorMessage' => [ + 'description' => '错误消息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'UpdateResult' => [ + 'description' => '是否成功返回更新结果:'."\n" + ."\n" + .'- true:是'."\n" + ."\n" + .'- false:否', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '主题是否更新成功:'."\n" + ."\n" + .'- true:是'."\n" + ."\n" + .'- false:否', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"abcd\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"UpdateResult\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"abcd\\n200\\n1031203110005\\nThe specified parameters are invalid.\\ntrue\\ntrue","errorExample":""}]', + 'title' => '更新主题', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListTableTheme' => [ + 'summary' => '调用ListTableTheme查询主题列表。不建议使用该API,后续将有新API上线覆盖此功能。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78337', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + [ + 'name' => 'ParentId', + 'in' => 'query', + 'schema' => [ + 'description' => '父类ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '121', + ], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => [ + 'description' => '分页的页数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcde', + ], + 'Success' => [ + 'description' => '是否成功查询主题。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Data' => [ + 'description' => '层级数据。', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'description' => '内容总数量。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'ThemeList' => [ + 'description' => '层级列表。', + 'type' => 'array', + 'items' => [ + 'description' => '主题列表详情。', + 'type' => 'object', + 'properties' => [ + 'CreateTimeStamp' => [ + 'description' => '创建层级的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123432343243', + ], + 'ParentId' => [ + 'description' => '父节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '122', + ], + 'ThemeId' => [ + 'description' => '主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'ProjectId' => [ + 'description' => '工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'Name' => [ + 'description' => '层级的名称。', + 'type' => 'string', + 'example' => '层级名称', + ], + 'Level' => [ + 'description' => '1(一级层级)和2(二级层级)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Creator' => [ + 'description' => '层级的创建人。', + 'type' => 'string', + 'example' => '123455', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"RequestId\\": \\"abcde\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 10,\\n \\"ThemeList\\": [\\n {\\n \\"CreateTimeStamp\\": 123432343243,\\n \\"ParentId\\": 122,\\n \\"ThemeId\\": 123,\\n \\"ProjectId\\": 123,\\n \\"Name\\": \\"层级名称\\",\\n \\"Level\\": 1,\\n \\"Creator\\": \\"123455\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The specified parameters are invalid.\\n abcde\\n true\\n 1031203110005\\n \\n 10\\n \\n 123432343243\\n 122\\n 123\\n 123\\n 层级名称\\n 1\\n 123455\\n \\n \\n","errorExample":""}]', + 'title' => '查询主题列表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetMetaTableThemeLevel' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78270', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一ID,格式为odps.${projectName}.${tableName}。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.project1.name1', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,目前只支持odps。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'success', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '1324afdsfde', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '0', + ], + 'Entity' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Theme' => [ + 'description' => '返回的主题信息。', + 'type' => 'array', + 'items' => [ + 'description' => '主题信息。', + 'type' => 'object', + 'properties' => [ + 'ParentId' => [ + 'description' => '父主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'Name' => [ + 'description' => '主题名称。', + 'type' => 'string', + 'example' => 'theme1', + ], + 'ThemeId' => [ + 'description' => '主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'Level' => [ + 'description' => '主题类型,取值如下:'."\n" + .'- 1:一级主题。'."\n" + .'- 2:二级主题。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + 'Level' => [ + 'description' => '返回的层级信息。', + 'type' => 'array', + 'items' => [ + 'description' => '层级信息。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => '层级类型,取值如下:'."\n" + .'- 1:逻辑层级。'."\n" + .'- 2:物理层级。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Description' => [ + 'description' => '层级的描述。', + 'type' => 'string', + 'example' => '描述', + ], + 'Name' => [ + 'description' => '层级名称。', + 'type' => 'string', + 'example' => 'level1', + ], + 'LevelId' => [ + 'description' => '层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"success\\",\\n \\"RequestId\\": \\"1324afdsfde\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"0\\",\\n \\"Entity\\": {\\n \\"Theme\\": [\\n {\\n \\"ParentId\\": 0,\\n \\"Name\\": \\"theme1\\",\\n \\"ThemeId\\": 123,\\n \\"Level\\": 1\\n }\\n ],\\n \\"Level\\": [\\n {\\n \\"Type\\": 1,\\n \\"Description\\": \\"描述\\",\\n \\"Name\\": \\"level1\\",\\n \\"LevelId\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n success\\n 1324afdsfde\\n true\\n 0\\n \\n \\n 0\\n theme1\\n 123\\n 1\\n \\n \\n 1\\n 描述\\n level1\\n 1\\n \\n \\n","errorExample":""}]', + 'title' => '获取表的主题和层级信息', + 'summary' => '获取表的主题和层级信息。', + ], + 'CreateTableLevel' => [ + 'summary' => '调用CreateTableLevel创建层级。不建议使用该API,后续将有新API上线覆盖此功能。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78198', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + [ + 'name' => 'LevelType', + 'in' => 'query', + 'schema' => [ + 'description' => '层级的类型,包括1(逻辑层级)和2(物理层级)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '层级的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '层级1', + ], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => [ + 'description' => '层级的描述。', + 'type' => 'string', + 'required' => false, + 'example' => '层级描述', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '请求id', + ], + 'ErrorMessage' => [ + 'description' => '错误消息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '是否成功创建层级。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'LevelId' => [ + 'description' => '层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"请求id\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"LevelId\\": 123\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 请求id\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n 123\\n","errorExample":""}]', + 'title' => '创建层级', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateTableLevel' => [ + 'summary' => '调用UpdateTableLevel更新层级。不建议使用该API,后续将有新API上线覆盖此功能。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78384', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + [ + 'name' => 'LevelType', + 'in' => 'query', + 'schema' => [ + 'description' => '层级的类型,包括1(逻辑层级)和2(物理层级)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '10', + 'minimum' => '0', + 'example' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '层级的名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '层级名称', + ], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => [ + 'description' => '层级的描述。', + 'type' => 'string', + 'required' => false, + 'example' => '层级描述', + ], + ], + [ + 'name' => 'LevelId', + 'in' => 'query', + 'schema' => [ + 'description' => '需要更新的层级ID。您可以通过ListLevel获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcde', + ], + 'ErrorMessage' => [ + 'description' => '错误消息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'UpdateResult' => [ + 'description' => '是否成功返回结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '是否成功更新层级。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"abcde\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"UpdateResult\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n abcde\\n The specified parameters are invalid.\\n true\\n 1031203110005\\n true\\n","errorExample":""}]', + 'title' => '更新层级', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteTableLevel' => [ + 'summary' => '调用DeleteTableLevel删除层级。不建议使用该API,后续将有新API上线覆盖此功能。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78219', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'LevelId', + 'in' => 'query', + 'schema' => [ + 'description' => '需要删除的层级ID。您可以从ListLevel接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'DeleteResult' => [ + 'description' => '删除结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcde', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"DeleteResult\\": true,\\n \\"RequestId\\": \\"abcde\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n abcde\\n","errorExample":""}]', + 'title' => '删除层级', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListTableLevel' => [ + 'summary' => '调用ListTableLevel查询层级列表。不建议使用该API,后续将有新API上线覆盖此功能。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78336', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以进入DataWorks管理控制台获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123', + ], + ], + [ + 'name' => 'LevelType', + 'in' => 'query', + 'schema' => [ + 'description' => '层级的类型,包括1(逻辑层级)和2(物理层级)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10', + 'minimum' => '0', + 'example' => '1', + ], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询页码。默认为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Success' => [ + 'description' => '是否成功查询层级列表。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005 ', + ], + 'TableLevelInfo' => [ + 'description' => '层级的信息。', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'description' => '层级的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'LevelList' => [ + 'description' => '层级列表。', + 'type' => 'array', + 'items' => [ + 'description' => '层级信息。', + 'type' => 'object', + 'properties' => [ + 'LevelType' => [ + 'description' => '层级的类型,包括1(逻辑层级)和2(物理层级)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Description' => [ + 'description' => '层级的描述。', + 'type' => 'string', + 'example' => '层级描述', + ], + 'Name' => [ + 'description' => '层级的名称。', + 'type' => 'string', + 'example' => '层级1', + ], + 'ProjectId' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'LevelId' => [ + 'description' => '层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"RequestId\\": \\"abc\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\\\t\\",\\n \\"TableLevelInfo\\": {\\n \\"TotalCount\\": 10,\\n \\"LevelList\\": [\\n {\\n \\"LevelType\\": 1,\\n \\"Description\\": \\"层级描述\\",\\n \\"Name\\": \\"层级1\\",\\n \\"ProjectId\\": 123,\\n \\"LevelId\\": 123\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The specified parameters are invalid.\\n abc\\n true\\n 1031203110005\\t\\n \\n 10\\n \\n 1\\n 层级描述\\n 层级1\\n 123\\n 123\\n \\n \\n","errorExample":""}]', + 'title' => '查询层级列表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateMetaCollection' => [ + 'summary' => '该接口用于更新集合对象的名称和注释。', + 'methods' => [ + 'put', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '163134', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'QualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '集合的唯一标识', + 'type' => 'string', + 'required' => true, + 'example' => 'album.396397', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '名称', + 'type' => 'string', + 'required' => false, + 'example' => 'myCollectionName', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'query', + 'schema' => [ + 'description' => '集合备注'."\n" + .'长度限制:1-64字符', + 'type' => 'string', + 'required' => false, + 'example' => 'this is a comment', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结构', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Status' => [ + 'description' => '更新结果:'."\n" + .'true: 成功'."\n" + .'false: 失败', + 'type' => 'boolean', + 'enumValueTitles' => [], + 'example' => 'true', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified product does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9999', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Status\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified product does not exist.\\",\\n \\"ErrorCode\\": \\"9999\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-E****\\n true\\n 200\\n The specified product does not exist.\\n 9999\\n true\\n","errorExample":""}]', + 'title' => '更新集合对象', + 'description' => '目前只支持更新名称(name)、注释(comment)。', + 'requestParamsDescription' => '更新的时候 Name 、Comment 二者至少要提供一个。', + ], + 'ListMetaCollections' => [ + 'summary' => '查询集合信息。 集合的概念包括数据地图页面上的专辑、专辑中的子类目等。 通过本接口可以指定集合类型查询集合信息。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '162854', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'ParentQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '父集合唯一标识', + 'type' => 'string', + 'required' => false, + 'example' => 'Album.1234', + ], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => [ + 'description' => '分页信息,指定本次读取的起始点', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'query', + 'schema' => [ + 'description' => '关键字。', + 'type' => 'string', + 'required' => false, + 'example' => '关键词', + ], + ], + [ + 'name' => 'OrderBy', + 'in' => 'query', + 'schema' => [ + 'description' => '排序字段名称。', + 'type' => 'string', + 'required' => false, + 'example' => '排序字段', + ], + ], + [ + 'name' => 'CollectionType', + 'in' => 'query', + 'schema' => [ + 'description' => '查询的集合类型,取值范围:'."\n" + .'- **ALBUM**:专辑集合'."\n" + .'- **ALBUM_CATEGORY**:专辑内的类目', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'ALBUM', + ], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => [ + 'description' => '创建者用户ID。', + 'type' => 'string', + 'required' => false, + 'example' => '1200759642363000', + ], + ], + [ + 'name' => 'Administrator', + 'in' => 'query', + 'schema' => [ + 'description' => '集合管理员ID', + 'type' => 'string', + 'required' => false, + 'example' => '1200759642363000', + ], + ], + [ + 'name' => 'Follower', + 'in' => 'query', + 'schema' => [ + 'description' => '集合关注者ID', + 'type' => 'string', + 'required' => false, + 'example' => '1200759642363000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结构', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'E25887B7-579C-54A5-9C4F-83A0DE367DDE', + ], + 'Data' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'NextToken' => [ + 'description' => '下一页的token', + 'type' => 'string', + 'example' => '37ae2053d87d380f28ce0dc0853ca51e', + ], + 'CollectionList' => [ + 'description' => '数组对象', + 'type' => 'array', + 'items' => [ + 'description' => '返回的集合对象', + '$ref' => '#/components/schemas/Collection', + ], + ], + ], + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Collection.NotExists', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Collection.ParamError', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'Invalid.User.NotExist', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'Invalid.Collection.QualifiedNameError', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'Invalid.Collection.CollectionNotCompatible', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'Invalid.Collection.EntityOverflow', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'Invalid.Collection.NotExist', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'Invalid.Collection.AlreadyExist', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'Invalid.Collection.UnsupportedOperation', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Missing', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'Forbidden.No.Permission', + 'errorMessage' => 'msg: %s', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalData', + 'errorMessage' => 'msg: %s', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E25887B7-579C-54A5-9C4F-83A0DE367DDE\\",\\n \\"Data\\": {\\n \\"NextToken\\": \\"37ae2053d87d380f28ce0dc0853ca51e\\",\\n \\"CollectionList\\": [\\n {\\n \\"QualifiedName\\": \\"album.12334\\",\\n \\"CollectionType\\": \\"album\\",\\n \\"Name\\": \\"collectionName\\",\\n \\"Comment\\": \\"comment\\",\\n \\"OwnerId\\": \\"1234444\\",\\n \\"OwnerName\\": \\"owner\\",\\n \\"CreateTime\\": 1668600147617,\\n \\"UpdateTime\\": 1668600148617,\\n \\"Level\\": 1\\n }\\n ]\\n },\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Collection.NotExists\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"\\n E25887B7-579C-54A5-9C4F-83A0DE367DDE\\n \\n 37ae2053d87d380f28ce0dc0853ca51e\\n \\n album.12334\\n album\\n collectionName\\n comment\\n 1234444\\n owner\\n 1668600147617\\n 1668600148617\\n 1\\n \\n \\n true\\n Invalid.Collection.NotExists\\n The specified parameters are invalid.\\n 200\\n","errorExample":""}]', + 'title' => '查询集合信息', + 'description' => '集合包括: ALBUM(专辑集合), ALBUM_CATEGORY(专辑内的子类目)。', + 'requestParamsDescription' => 'Creator、Administrator、Follower 这三个参数,最多可以设置一个', + ], + 'ListMetaCollectionEntities' => [ + 'summary' => '该接口用于查询集合中的实体。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '163137', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'CollectionQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '集合唯一标识。', + 'type' => 'string', + 'required' => true, + 'example' => 'album.12345', + ], + ], + [ + 'name' => 'EntityType', + 'in' => 'query', + 'schema' => [ + 'description' => '实体类型。示例:maxcompute-table表示MaxCompute表类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'maxcompute-table', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'query', + 'schema' => [ + 'description' => '搜索关键词。', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => [ + 'description' => '分页信息,指定本次读取的起始点。', + 'type' => 'string', + 'required' => false, + 'example' => '12222', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiMetaResultModel', + 'description' => 'OpenApiMetaResultModel', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '返回结构体。', + 'type' => 'object', + 'properties' => [ + 'NextToken' => [ + 'description' => '下一页的Token。', + 'type' => 'string', + 'example' => '123344', + ], + 'EntityList' => [ + 'description' => '实体数组。', + 'type' => 'array', + 'items' => [ + 'description' => '实体信息。', + '$ref' => '#/components/schemas/Entity', + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'E25887B7-579C-54A5-9C4F-83A0DE367DD', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + ."\n" + .'true:调用成功。'."\n" + ."\n" + .'false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'Invalid.Collection.NotExists', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": {\\n \\"NextToken\\": \\"123344\\",\\n \\"EntityList\\": [\\n {\\n \\"QualifiedName\\": \\"maxcompute_table.563f0357118d05ef145d6bddf2966cc23e86ca8f2f013f915e565afdf09f7a23\\",\\n \\"TenantId\\": 12345,\\n \\"EntityContent\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n },\\n \\"RequestId\\": \\"E25887B7-579C-54A5-9C4F-83A0DE367DD\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Collection.NotExists\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 12\\n \\n \\n maxcompute-table\\n table_name_for_example\\n maxcomputeProjectName\\n cui\\n 1691563804264\\n \\n maxcompute-table.maxcomputeProjectName.table_name_for_example\\n \\n \\n E25887B7-579C-54A5-9C4F-83A0DE367DD\\n true\\n Invalid.Collection.NotExists\\n The specified parameters are invalid.\\n 200\\n","errorExample":""}]', + 'title' => '查询集合中的实体', + ], + 'DeleteMetaCollection' => [ + 'summary' => '删除集合。', + 'methods' => [ + 'delete', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '163135', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'QualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '集合唯一标识符', + 'type' => 'string', + 'required' => true, + 'example' => 'album.12333', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结构', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Status' => [ + 'description' => '操作结果:'."\n" + .' '."\n" + .'true: 成功'."\n" + ."\n" + .'false: 失败'."\n" + ."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'The specified product does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n" + ."\n", + 'type' => 'string', + 'example' => '999999', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + ."\n" + .'true:调用成功。'."\n" + ."\n" + .'false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Status\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified product does not exist.\\",\\n \\"ErrorCode\\": \\"999999\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-E****\\n true\\n 200\\n The specified product does not exist.\\n 999999\\n true\\n","errorExample":""}]', + 'title' => '删除集合', + ], + 'GetMetaCollectionDetail' => [ + 'summary' => '该接口用于查询集合的详细信息。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '163136', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'QualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '集合唯一标识符。', + 'type' => 'string', + 'required' => true, + 'example' => 'album.12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Collection' => [ + 'description' => '集合对象。', + '$ref' => '#/components/schemas/Collection', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + ."\n" + .'true:调用成功。'."\n" + ."\n" + .'false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n" + ."\n", + 'type' => 'string', + 'example' => '9999', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'album.xxxx does not exist.', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Collection\\": {\\n \\"QualifiedName\\": \\"album.12334\\",\\n \\"CollectionType\\": \\"album\\",\\n \\"Name\\": \\"collectionName\\",\\n \\"Comment\\": \\"comment\\",\\n \\"OwnerId\\": \\"1234444\\",\\n \\"OwnerName\\": \\"owner\\",\\n \\"CreateTime\\": 1668600147617,\\n \\"UpdateTime\\": 1668600148617,\\n \\"Level\\": 1\\n },\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9999\\",\\n \\"ErrorMessage\\": \\"album.xxxx does not exist.\\",\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-E****\\n \\n album.12334\\n album\\n collectionName\\n comment\\n 1234444\\n owner\\n 1668600147617\\n 1668600148617\\n 1\\n \\n true\\n 9999\\n album.xxxx does not exist.\\n","errorExample":""}]', + 'title' => '查询集合详情信息', + ], + 'DeleteMetaCollectionEntity' => [ + 'summary' => '该接口用于删除集合中的实体。', + 'methods' => [ + 'delete', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '163139', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'CollectionQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '集合唯一识别符。', + 'type' => 'string', + 'required' => true, + 'example' => 'album.12345', + ], + ], + [ + 'name' => 'EntityQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '实体唯一标识符。', + 'type' => 'string', + 'required' => true, + 'example' => 'maxcompute.projectA.tableB', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Status' => [ + 'description' => '操作结果:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'entity not exist', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n" + ."\n", + 'type' => 'string', + 'example' => '999999', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Entity.NotExist', + 'errorMessage' => '%s', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Status\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"entity not exist\\",\\n \\"ErrorCode\\": \\"999999\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-E****\\n true\\n 200\\n entity not exist\\n 999999\\n true\\n","errorExample":""}]', + 'title' => '删除集合中的实体', + ], + 'AddMetaCollectionEntity' => [ + 'summary' => '该接口用于添加实体到集合中。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '163138', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'CollectionQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '集合唯一标识符。', + 'type' => 'string', + 'required' => true, + 'example' => 'album.2222', + ], + ], + [ + 'name' => 'EntityQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '实体唯一标识符。', + 'type' => 'string', + 'required' => true, + 'example' => 'maxcompute-table.projectA.tableB', + ], + ], + [ + 'name' => 'Remark', + 'in' => 'query', + 'schema' => [ + 'description' => '对实体的备注信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'this is a remark', + 'maxLength' => 50, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Status' => [ + 'description' => '操作结果: '."\n" + ."\n" + .'- true: 成功 '."\n" + .'- false: 失败'."\n" + ."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'The specified product does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n" + ."\n", + 'type' => 'string', + 'example' => '9999', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Entity.NotExist', + 'errorMessage' => '%s', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Status\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified product does not exist.\\",\\n \\"ErrorCode\\": \\"9999\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-E****\\n true\\n 200\\n The specified product does not exist.\\n 9999\\n true\\n","errorExample":""}]', + 'title' => '添加实体到集合中', + ], + 'CreateMetaCollection' => [ + 'summary' => '创建集合对象。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '163133', + 'abilityTreeNodes' => [ + 'FEATUREdideE9XYA6', + ], + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '集合名称, '."\n" + .'长度限制:1-32字符', + 'type' => 'string', + 'required' => true, + 'example' => 'collection_name', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'query', + 'schema' => [ + 'description' => '集合备注'."\n" + .'长度限制:1-64字符', + 'type' => 'string', + 'required' => false, + 'example' => 'this is a comment', + ], + ], + [ + 'name' => 'ParentQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '父集合唯一标识', + 'type' => 'string', + 'required' => false, + 'example' => 'album.333508', + ], + ], + [ + 'name' => 'CollectionType', + 'in' => 'query', + 'schema' => [ + 'description' => '集合类型', + 'type' => 'string', + 'required' => true, + 'example' => 'ALBUM', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'QualifiedName' => [ + 'description' => '集合的唯一标识', + 'type' => 'string', + 'example' => 'album.11111', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'string', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'NoPermission', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP错误码。', + 'type' => 'string', + 'example' => '200', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"QualifiedName\\": \\"album.11111\\",\\n \\"Success\\": \\"true\\",\\n \\"ErrorCode\\": \\"NoPermission\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"HttpStatusCode\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n E6F0DBDD-5AD****\\n album.1111\\n true\\n 9999\\n The specified parameters are invalid.\\n 200\\n","errorExample":""}]', + 'title' => '创建集合对象', + 'description' => '集合目前有多种类型, 同一集合类型内要保证名称唯一性。', + 'requestParamsDescription' => '由于专辑下的类目是需要建立在专辑下的。 '."\n" + .'只有创建了专辑后,才能通过指定parentQualifiedName = 专辑的qualifiedName , 创建专辑内的子类目', + ], + 'ListLineage' => [ + 'summary' => '查询实体的上下游血缘关系。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '178500', + 'abilityTreeNodes' => [ + 'FEATUREdideSYOMAV', + ], + ], + 'parameters' => [ + [ + 'name' => 'EntityQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '实体唯一标识符。', + 'type' => 'string', + 'required' => true, + 'example' => 'maxcompute-table.project.table', + ], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => [ + 'description' => '分页信息,指定本次读取的起始点。', + 'type' => 'string', + 'required' => false, + 'example' => 'next-token-from-previous-request', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'query', + 'schema' => [ + 'description' => '实体名称关键词。', + 'type' => 'string', + 'required' => false, + 'example' => 'name-keyword', + ], + ], + [ + 'name' => 'Direction', + 'in' => 'query', + 'schema' => [ + 'description' => '血缘上下游。取值如下: '."\n" + .'- up:上游。'."\n" + .'- down:下游。', + 'type' => 'string', + 'required' => true, + 'example' => 'up', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小,最大为100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => 'OpenApiMetaResultModel'."\n" + ."\n", + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'qualifiedName should be in format as entity-table.entity-guid', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志、排查问题。', + 'type' => 'string', + 'example' => '64B-587A-8CED-969E1973887FXXX-TT', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1010040007', + ], + 'Data' => [ + 'description' => '返回结构体。', + 'type' => 'object', + 'properties' => [ + 'NextToken' => [ + 'description' => '分页信息,指定下次读取的起始点。', + 'type' => 'string', + 'example' => 'nextTokenFromRequest-xxxsd-ff', + ], + 'DataEntityList' => [ + 'description' => '实体结构体数组。', + 'type' => 'array', + 'items' => [ + 'description' => '实体结构体。', + 'type' => 'object', + 'properties' => [ + 'Entity' => [ + 'description' => '实体信息。', + '$ref' => '#/components/schemas/Entity', + ], + 'CreateTimestamp' => [ + 'description' => '血缘创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1686215809269', + ], + 'RelationList' => [ + 'description' => '关系结构体数组。', + 'type' => 'array', + 'items' => [ + 'description' => '关系结构体。', + 'type' => 'object', + 'properties' => [ + 'Guid' => [ + 'description' => '关系唯一ID。', + 'type' => 'string', + 'example' => 'aaabbccddguid', + ], + 'Datasource' => [ + 'description' => '数据来源。', + 'type' => 'string', + 'example' => 'maxcompute,mysql', + ], + 'Type' => [ + 'description' => '任务类型:主要描述实体间关系类型。例如,通过SQL计算、通过报表字段映射、通过定义API等 。', + 'type' => 'string', + 'example' => 'sql', + ], + 'Channel' => [ + 'description' => '数据渠道:'."\n" + ."\n" + .'- **FIRST_PARTY**:DataWorks平台数据。'."\n" + .'- **THIRD_PARTY**:用户注册的数据。', + 'type' => 'string', + 'example' => 'THIRD_PARTY', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"qualifiedName should be in format as entity-table.entity-guid\\",\\n \\"RequestId\\": \\"64B-587A-8CED-969E1973887FXXX-TT\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1010040007\\",\\n \\"Data\\": {\\n \\"NextToken\\": \\"nextTokenFromRequest-xxxsd-ff\\",\\n \\"DataEntityList\\": [\\n {\\n \\"Entity\\": {\\n \\"QualifiedName\\": \\"maxcompute_table.563f0357118d05ef145d6bddf2966cc23e86ca8f2f013f915e565afdf09f7a23\\",\\n \\"TenantId\\": 12345,\\n \\"EntityContent\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"CreateTimestamp\\": 1686215809269,\\n \\"RelationList\\": [\\n {\\n \\"Guid\\": \\"aaabbccddguid\\",\\n \\"Datasource\\": \\"maxcompute,mysql\\",\\n \\"Type\\": \\"sql\\",\\n \\"Channel\\": \\"THIRD_PARTY\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n qualifiedName should be in format as entity-table.entity-guid\\n 64B-587A-8CED-969E1973887FXXX-TT\\n true\\n 1010040007\\n \\n nextTokenFromRequest-xxxsd-ff\\n \\n \\n maxcompute_table.563f0357118d05ef145d6bddf2966cc23e86ca8f2f013f915e565afdf09f7a23\\n 12345\\n \\n 1686215809269\\n \\n aaabbccddguid\\n mysql\\n sql\\n THIRD_PARTY\\n \\n \\n \\n","errorExample":""}]', + 'title' => '查询实体血缘', + ], + 'DeleteLineageRelation' => [ + 'summary' => '删除实体间血缘关系。 仅限于删除用户注册的自定义血缘关系。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '178630', + 'abilityTreeNodes' => [ + 'FEATUREdideSYOMAV', + ], + ], + 'parameters' => [ + [ + 'name' => 'SrcEntityQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '源实体唯一标识', + 'type' => 'string', + 'required' => true, + 'example' => 'maxcompute-table.project.table', + ], + ], + [ + 'name' => 'DestEntityQualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '目标实体唯一标识', + 'type' => 'string', + 'required' => true, + 'example' => 'custom-report.report123', + ], + ], + [ + 'name' => 'RelationshipGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '血缘关系唯一标识', + 'type' => 'string', + 'required' => false, + 'example' => 'dfazcdfdfccdedd', + ], + ], + [ + 'name' => 'RelationshipType', + 'in' => 'query', + 'schema' => [ + 'description' => '关系类型', + 'type' => 'string', + 'required' => false, + 'example' => 'sql', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => 'OpenApiMetaResultModel'."\n" + ."\n", + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息'."\n" + ."\n", + 'type' => 'string', + 'example' => 'qualifiedName should be in format as entity-table.entity-guid', + ], + 'RequestId' => [ + 'description' => '请求的ID:用于定位日志、排查问题'."\n" + ."\n", + 'type' => 'string', + 'example' => '64B-587A-8CED-969E1973887FXXX-TT', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + ."\n" + .'true:调用成功'."\n" + ."\n" + .'false:调用失败', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码'."\n" + ."\n", + 'type' => 'string', + 'example' => '1010040007', + ], + 'Status' => [ + 'description' => '操作结果:'."\n" + ."\n" + .'true: 成功'."\n" + ."\n" + .'false: 失败'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"qualifiedName should be in format as entity-table.entity-guid\\",\\n \\"RequestId\\": \\"64B-587A-8CED-969E1973887FXXX-TT\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1010040007\\",\\n \\"Status\\": true\\n}","type":"json"}]', + 'title' => '删除血缘关系', + 'description' => '本接口当前处于试用阶段。需要体验的用户可以提出申请,管理员加入试用名单后即可调用。', + ], + 'RegisterLineageRelation' => [ + 'summary' => '注册实体关系,支持用户注册自定义的实体关系。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '178589', + 'abilityTreeNodes' => [ + 'FEATUREdideSYOMAV', + ], + ], + 'parameters' => [ + [ + 'name' => 'LineageRelationRegisterVO', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '血缘注册结构体。', + 'required' => true, + '$ref' => '#/components/schemas/LineageRelationRegisterVO', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => 'OpenApiMetaResultModel', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The entity of lineage not exist, xxx', + ], + 'RequestId' => [ + 'description' => '请求的ID:用于定位日志、排查问题。', + 'type' => 'string', + 'example' => 'EE50E05E-028C-182B-****', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + ."\n" + .'- true:调用成功。'."\n" + ."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1010210001', + ], + 'LineageRelation' => [ + 'description' => '血缘关系对象。', + 'type' => 'object', + 'properties' => [ + 'SrcEntityQualifiedName' => [ + 'description' => '源实体唯一标识。', + 'type' => 'string', + 'example' => 'maxcompute-table.project.table', + ], + 'DestEntityQualifiedName' => [ + 'description' => '目标实体唯一标识。', + 'type' => 'string', + 'example' => 'custom-report.month_stat_user', + ], + 'RelationshipGuid' => [ + 'description' => '实体间血缘关系ID。', + 'type' => 'string', + 'example' => 'dfsldfdlsfdsaaaabbbb', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The entity of lineage not exist, xxx\\",\\n \\"RequestId\\": \\"EE50E05E-028C-182B-****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1010210001\\",\\n \\"LineageRelation\\": {\\n \\"SrcEntityQualifiedName\\": \\"maxcompute-table.project.table\\",\\n \\"DestEntityQualifiedName\\": \\"custom-report.month_stat_user\\",\\n \\"RelationshipGuid\\": \\"dfsldfdlsfdsaaaabbbb\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The entity of lineage not exist, xxx\\n EE50E05E-028C-182B-9xxx\\n true\\n 1010210001\\n \\n maxcompute-table.project.table\\n custom-report.month_stat_user\\n dfsldfdlsfdsaaaabbbb\\n \\n","errorExample":""}]', + 'title' => '注册血缘关系', + 'description' => '本接口当前处于试用阶段。需要体验的用户可以提出申请,管理员加入试用名单后即可调用。', + 'requestParamsDescription' => '实体唯一标识格式:EntityType.EntityGuid'."\n" + ."\n" + .'```'."\n" + .'1:EntityType 标识实体类型'."\n" + .' 1.1 Dataworks上已有的实体类型'."\n" + .' (1) maxcompute表:maxcompute-table'."\n" + .' (2) mysql表:mysql-table'."\n" + .' (3) emr表:emr-table '."\n" + .' (4) holo表:holodb-table'."\n" + ."\n" + .' 1.2 用户自定义的实体类型: custom-xxx'."\n" + .' 根据用户需求,推荐使用如下类型'."\n" + .' (1) 表:custom-table'."\n" + .' (2) API:custom-api '."\n" + .' (3) 应用:custom-app'."\n" + .' (4) 报表: custom-report'."\n" + .' (5) 数据集:custom-dataset'."\n" + .' (6) 数据源:custom-datasource'."\n" + ."\n" + .'2: EntityGuid:在同一实体类型内部,唯一标识该实体的标识'."\n" + .' 用户自定义的实体可以根据需要自己定义唯一ID'."\n" + ."\n" + .'3: 实体举例:'."\n" + .' 3.1:Dataworks已有系统实体,可以在数据地图页面血缘图中看到'."\n" + .' (1) maxcompute-table.project.tableName 表示maxcompute 表的唯一ID'."\n" + .' (2) emr-table.kadfdfaccdd4ted 表示emr表的唯一ID'."\n" + .' 3.2:用自定义实体: 用户根据自己业务需求,自己定义出唯一Id,(50个字节以内)'."\n" + .' (1) custom-api.listUser 表示自定义api实体,其唯一标识为listUser '."\n" + .' (2) custom-table.db1.table2 标识自定义表实体,其唯一标识为 db1.table2'."\n" + .'```', + ], + 'GetMetaTableLineage' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78266', + 'abilityTreeNodes' => [ + 'FEATUREdideSYOMAV', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'Direction', + 'in' => 'query', + 'schema' => [ + 'description' => '字段的上下游方向:up表示上游,down表示下游。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'up', + ], + ], + [ + 'name' => 'NextPrimaryKey', + 'in' => 'query', + 'schema' => [ + 'description' => '分页的逻辑。'."\n" + .'当上次返回结果中 HasNext=true 和 NextPrimaryKey 非空的时候,下次请求的时候把 NextPrimaryKey 作为参数传入', + 'type' => 'string', + 'required' => false, + 'example' => 'next_primary_key', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID,针对EMR情况。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => '数据库的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => '表名。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,包括odps或emr。', + 'type' => 'string', + 'required' => false, + 'example' => 'emr', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'NextPrimaryKey' => [ + 'description' => '分页的逻辑,请根据请求返回参数HasNext=true和key填写。', + 'type' => 'string', + 'example' => 'odps.tt.2', + ], + 'HasNext' => [ + 'description' => '是否还有下一页。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'DataEntityList' => [ + 'description' => '表信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'example' => 'name', + ], + 'TableGuid' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'example' => 'odps.tt.name', + ], + 'CreateTimestamp' => [ + 'description' => '创建时间', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1638720736000', + ], + 'DatabaseName' => [ + 'description' => '数据库名称', + 'type' => 'string', + 'example' => 'db1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.GuidFormat', + 'errorMessage' => 'The GUID format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Activate DataWorks first.', + ], + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"NextPrimaryKey\\": \\"odps.tt.2\\",\\n \\"HasNext\\": true,\\n \\"DataEntityList\\": [\\n {\\n \\"TableName\\": \\"name\\",\\n \\"TableGuid\\": \\"odps.tt.name\\",\\n \\"CreateTimestamp\\": 1638720736000,\\n \\"DatabaseName\\": \\"db1\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0bc1ec92159376\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n odps.tt.2\\n true\\n \\n name\\n odps.tt.name\\n 1638720736000\\n db1\\n \\n \\n","errorExample":""}]', + 'title' => '获取表的血缘关系', + 'summary' => '调用GetMetaTableLineage获取表的血缘关系。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => 'GetMetaTableLineage接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetMetaColumnLineage' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78258', + 'abilityTreeNodes' => [ + 'FEATUREdideSYOMAV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ColumnGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '字段的唯一标识。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name.column_name', + ], + ], + [ + 'name' => 'Direction', + 'in' => 'query', + 'schema' => [ + 'description' => '字段的上下游方向:up表示上游,down表示下游。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'up', + ], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID,针对EMR情况。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => '数据库的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => '表名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'ColumnName', + 'in' => 'query', + 'schema' => [ + 'description' => '字段名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,包括odps或emr。', + 'type' => 'string', + 'required' => false, + 'example' => 'emr', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'PageNum' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '字段的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '20', + ], + 'DataEntityList' => [ + 'description' => '实例数据列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ColumnGuid' => [ + 'description' => '字段的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name.1', + ], + 'ColumnName' => [ + 'description' => '字段的名称。', + 'type' => 'string', + 'example' => '1', + ], + 'TableName' => [ + 'description' => '表名', + 'type' => 'string', + 'example' => 'abc', + ], + 'DatabaseName' => [ + 'description' => '数据库名称', + 'type' => 'string', + 'example' => 'abc', + ], + 'ClusterId' => [ + 'description' => 'emr集群ID', + 'type' => 'string', + 'example' => 'abc', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Meta.TableNotExist', + 'errorMessage' => 'The table does not exist.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0bc1ec92159376\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNum\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 20,\\n \\"DataEntityList\\": [\\n {\\n \\"ColumnGuid\\": \\"odps.engine_name.table_name.1\\",\\n \\"ColumnName\\": \\"1\\",\\n \\"TableName\\": \\"abc\\",\\n \\"DatabaseName\\": \\"abc\\",\\n \\"ClusterId\\": \\"abc\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"0bc1ec92159376\\n200\\n\\n 20\\n 1\\n 10\\n \\n 1\\n abc\\n odps.engine_name.table_name.1\\n abc\\n abc\\n \\n\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '获取字段的血缘关系', + 'summary' => '调用GetMetaColumnLineage获取字段的血缘关系。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaColumnLineage接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'CreateFile' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78185', + 'abilityTreeNodes' => [ + 'FEATUREdideHO4TQP', + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'FileFolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的路径。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'Business_process/First_Business_Process/MaxCompute/Folder_1/Folder_2', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'FileName', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'File name', + ], + ], + [ + 'name' => 'FileDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的描述信息。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '这里是文件描述', + 'maxLength' => 200, + ], + ], + [ + 'name' => 'FileType', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的代码类型。'."\n" + .'不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。'."\n" + ."\n" + .'您可以调用[ListFileType](~~212428~~)接口,查询文件的代码类型。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件责任人的阿里云用户ID。如果该参数为空,则默认使用调用者的阿里云用户ID。', + 'type' => 'string', + 'required' => false, + 'example' => '1000000000001', + ], + ], + [ + 'name' => 'Content', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件代码内容,不同代码类型(fileType)的文件,代码格式不同。您可以在运维中心找到对应类型的任务,右键单击查看代码,查看具体的代码格式。', + 'type' => 'string', + 'required' => false, + 'example' => 'SHOW TABLES;', + ], + ], + [ + 'name' => 'AutoRerunTimes', + 'in' => 'formData', + 'schema' => [ + 'description' => '出错自动重跑的次数,取值最大为10。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => false, + 'example' => '3', + ], + ], + [ + 'name' => 'AutoRerunIntervalMillis', + 'in' => 'formData', + 'schema' => [ + 'description' => '出错自动重跑时间间隔,单位为毫秒。最大为1800000毫秒(30分钟)。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>出错自动重跑”的”重跑间隔“配置对应。'."\n" + .'控制台中“重跑间隔”的时间单位为分钟,请在调用时注意转换时间。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '120000', + ], + ], + [ + 'name' => 'RerunMode', + 'in' => 'formData', + 'schema' => [ + 'description' => '重跑属性。取值如下:'."\n" + .'- ALL_ALLOWED:运行成功或失败后皆可重跑。'."\n" + .'- FAILURE_ALLOWED:运行成功后不可重跑,运行失败后可以重跑。'."\n" + .'- ALL_DENIED:运行成功或失败皆不可重跑。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>重跑属性”配置内容对应。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'ALL_ALLOWED', + 'default' => 'ALL_ALLOWED', + 'enum' => [ + 'ALL_ALLOWED', + 'FAILURE_ALLOWED', + 'ALL_DENIED', + ], + ], + ], + [ + 'name' => 'Stop', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否暂停调度,取值如下:'."\n" + .'- true:暂停调度。'."\n" + .'- false:不暂停调度。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>调度类型”配置为”暂停调度“时对应。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + 'default' => 'false', + ], + ], + [ + 'name' => 'ParaValue', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度参数。多个参数之间用空格进行分割。 '."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>参数”对应。您可以参考[调度参数](~~137548~~)配置。', + 'type' => 'string', + 'required' => false, + 'example' => 'a=x b=y', + ], + ], + [ + 'name' => 'StartEffectDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '开始自动调度的毫秒时间戳。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>生效日期”配置的开始时间的毫秒时间戳对应。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '0', + 'example' => '1671608450000', + 'default' => '0', + ], + ], + [ + 'name' => 'EndEffectDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '停止自动调度的时间戳,单位为毫秒。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>生效日期”配置的结束时间的毫秒时间戳对应。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '0', + 'example' => '1671694850000', + ], + ], + [ + 'name' => 'CronExpress', + 'in' => 'formData', + 'schema' => [ + 'description' => '周期调度的cron表达式,该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>cron表达式”对应。配置完“调度周期”及“定时调度时间”后,DataWorks会自动生成相应cron表达式。'."\n" + ."\n" + .'示例如下:'."\n" + .'- 每天凌晨5点30分定时调度:`00 30 05 * * ?`'."\n" + ."\n" + .'- 每个小时的第15分钟定时调度:`00 15 00-23/1 * * ?`'."\n" + ."\n" + .'- 每隔十分钟调度一次:`00 00/10 * * * ?`'."\n" + ."\n" + .'- 每天8点到17点,每隔十分钟调度一次:`00 00-59/10 8-17 * * * ?`'."\n" + ."\n" + .'- 每月的1日0点20分自动调度:`00 20 00 1 * ?`'."\n" + ."\n" + .'- 从1月1日0点10分开始,每过3个月调度一次:`00 10 00 1 1-12/3 ?`'."\n" + ."\n" + .'- 每周二、周五的0点5分自动调度:`00 05 00 * * 2,5`'."\n" + ."\n" + .'由于DataWorks调度系统的规则,cron表达式有以下限制:'."\n" + ."\n" + .'- 最短调度间隔时间为5分钟。'."\n" + ."\n" + .'- 每天最早调度时间为0点5分。', + 'type' => 'string', + 'required' => false, + 'example' => '00 05 00 * * ?', + 'default' => 'day', + ], + ], + [ + 'name' => 'CycleType', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度周期的类型,包括NOT_DAY(分钟、小时)和DAY(日、周、月)。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>调度周期”对应。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'DAY', + 'default' => 'DAY', + 'enum' => [ + 'DAY', + 'NOT_DAY', + ], + ], + ], + [ + 'name' => 'DependentType', + 'in' => 'formData', + 'schema' => [ + 'description' => '依赖上一周期的方式。取值如下:'."\n" + .'- SELF:依赖项选择本节点。'."\n" + .'- CHILD:依赖项选择一级子节点。'."\n" + .'- USER_DEFINE:依赖项选择其他节点。'."\n" + .'- NONE:未选择依赖项,即不会依赖上一周期。 '."\n" + .'- USER\\_DEFINE\\_AND\\_SELF: 跨周期依赖本节点和其他节点的组合的情况'."\n" + .'- CHILD\\_AND\\_SELF:跨周期依赖一层子节点和本节点的组合的情况', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'NONE', + 'default' => 'NONE', + 'enum' => [ + 'NONE', + 'USER_DEFINE', + 'CHILD', + 'SELF', + 'USER_DEFINE_AND_SELF', + 'CHILD_AND_SELF', + ], + ], + ], + [ + 'name' => 'DependentNodeIdList', + 'in' => 'formData', + 'schema' => [ + 'description' => '依赖上一周期的节点列表。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'InputList', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件依赖的上游文件的输出名称,多个输出使用英文逗号(,)分隔。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖“选择”同周期“时的”父节点输出名称”对应。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'project_root,project.file1,project.001_out', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间名称。'."\n" + ."\n" + .'该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'ResourceGroupIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件发布成任务后,任务执行时对应的资源组。您可以调用[ListResourceGroups](~~173913~~)通过**identifier**字段获取工作空间可用的资源组列表。'."\n" + ."\n\n" + .'> 您需确认ListResourceGroups接口返回的资源组已绑定至创建文件所使用的工作空间,绑定后才能在CreateFile中使用。', + 'type' => 'string', + 'required' => false, + 'example' => 'group_375827434852437', + ], + ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '该字段已废弃,请勿使用。'."\n" + ."\n" + .'文件发布成任务后,任务执行时对应的资源组。对应页面上调度配置>资源属性>调度资源组的配置。与ResourceGroupIdentifier二者设置其一即可。'."\n" + ."\n" + .'您可以通过[ListResourceGroups](~~173913~~)接口获取工作空间可用的资源组列表。ResourceGroupType传1,拿到结果后取出ID字段。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '375827434852437', + ], + ], + [ + 'name' => 'ConnectionName', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件发布成任务后,任务执行时连接的数据源。'."\n" + .'您可以调用[UpdateDataSource](~~211432~~)接口获取工作空间可用的数据源列表。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'odps_source', + ], + ], + [ + 'name' => 'AutoParsing', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件是否开启自动解析功能。取值如下:'."\n" + .'- true:文件会自动解析代码。'."\n" + .'- false:文件不会自动解析代码。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖”选择“同周期”时的“代码解析”对应。', + 'type' => 'boolean', + 'required' => false, + 'docRequired' => false, + 'example' => 'true', + 'default' => 'true', + ], + ], + [ + 'name' => 'SchedulerType', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度的类型,取值如下:'."\n" + .'- NORMAL:正常调度任务。'."\n" + .'- MANUAL:手动任务,不会被日常调度,对应手动业务流程下的节点。'."\n" + .'- PAUSE:暂停任务。'."\n" + .'- SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'enumValueTitles' => [], + 'example' => 'NORMAL', + 'enum' => [ + 'NORMAL', + 'MANUAL', + 'PAUSE', + 'SKIP', + ], + ], + ], + [ + 'name' => 'AdvancedSettings', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务的高级配置。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,EMR Spark Streaming和EMR Streaming SQL数据开发任务,编辑页面右侧导航栏的“高级设置“对应。'."\n" + ."\n" + .'当前仅EMR Spark Streaming和EMR Streaming SQL任务支持配置该参数,并且参数为JSON格式。', + 'type' => 'string', + 'required' => false, + 'example' => '{"queue":"default","SPARK_CONF":"--conf spark.driver.memory=2g"}', + ], + ], + [ + 'name' => 'StartImmediately', + 'in' => 'formData', + 'schema' => [ + 'description' => '发布后是否立即启动。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,EMR Spark Streaming和EMR Streaming SQL数据开发任务,编辑页面右侧导航栏的“配置>时间属性>启动方式“对应。', + 'type' => 'boolean', + 'required' => false, + 'docRequired' => false, + 'example' => 'true', + 'default' => 'false', + ], + ], + [ + 'name' => 'InputParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的上下文输入参数。参数为JSON格式,包含的字段可参考[GetFile](~~173954~~)接口返回值中的InputContextParameterList参数结构。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输入参数“对应。', + 'type' => 'string', + 'required' => false, + 'example' => '[{"ValueSource": "project_001.first_node:bizdate_param","ParameterName": "bizdate_input"}]', + ], + ], + [ + 'name' => 'OutputParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的上下文输出参数。参数为JSON格式,包含的字段可参考[GetFile](~~173954~~)接口返回值中的OutputContextParameterList参数结构。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输出参数“对应。', + 'type' => 'string', + 'required' => false, + 'example' => '[{"Type": 1,"Value": "${bizdate}","ParameterName": "bizdate_param"}]', + ], + ], + [ + 'name' => 'IgnoreParentSkipRunningProperty', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否沿用上一周期空跑属性。取值如下:'."\n" + ."\n" + .'- true:沿用上一周期空跑属性。'."\n" + ."\n" + .'- false:不沿用上一周期空跑属性。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'CreateFolderIfNotExists', + 'in' => 'formData', + 'schema' => [ + 'description' => '当参数中指定的目录(FileFolderPath)在系统中不存在时,是否自动创建此目录。取值如下:'."\n" + ."\n" + .'- true:若此目录不存在,自动创建此目录'."\n" + .'- false:若此目录不存在,调用失败', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'ApplyScheduleImmediately', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否发布后立即生效调度配置', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Timeout', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度配置超时定义', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'ImageId', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义镜像ID', + 'type' => 'string', + 'required' => false, + 'example' => 'm-bp1h4b5a8ogkbll2f3tr', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '文件创建成功后的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000001', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 1000001,\\n \\"RequestId\\": \\"0000-ABCD-EFG\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 1000001\\n 0000-ABCD-EFG\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n","errorExample":""}]', + 'title' => '在数据开发中创建一个文件', + 'summary' => '调用CreateFile,在数据开发中创建一个文件。目前不支持调用该接口创建数据集成节点任务。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateUdfFile' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78200', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'FileFolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数文件所在的文件夹路径。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'Business_process/First_Business_Process/function/string_processing', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID,您可以单击页面右上角的小扳手图标,进入工作空间管理页面查看。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'FileName', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数的名称。'."\n" + ."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'StringConcat', + ], + ], + [ + 'name' => 'FunctionType', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数的分类,对应创建函数表单中的函数类型一项,包括MATH(数学运算函数)、AGGREGATE(聚合函数)、STRING(字符串处理函数)、DATE(日期处理函数)、ANALYTIC(窗口函数)和OTHER(其他函数)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'STRING', + 'enum' => [ + 'MATH', + 'AGGREGATE', + 'STRING', + 'DATE', + 'ANALYTIC', + 'OTHER', + ], + ], + ], + [ + 'name' => 'ClassName', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数定义所在的类名,对应创建函数表单的类名一项。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'com.alibaba.DataWorks.api.udf.StringConcat', + ], + ], + [ + 'name' => 'Resources', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数引用的资源名列表,对应创建表中的资源列表。多个资源名称之间使用英文逗号(,)分隔。'."\n" + ."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'string-concat-1.0.0.jar,commons-lang-2.6.jar', + ], + ], + [ + 'name' => 'UdfDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数用途的说明,对应创建函数表单中的描述。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'Concatenate several strings to generate a new string', + ], + ], + [ + 'name' => 'CmdDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数调用的命令格式,对应创建函数表单中的命令格式。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'StringConcat(String... substrs)', + ], + ], + [ + 'name' => 'ParameterDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数入参的说明,对应创建函数表单中的参数说明。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'List of strings to be connected', + 'default' => '', + ], + ], + [ + 'name' => 'ReturnValue', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数的返回值说明,对应创建函数表单中的返回值。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'New strings generated by concatenating all strings before and after the input order', + 'default' => 'false', + ], + ], + [ + 'name' => 'Example', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数调用示例,对应创建函数表单中的示例。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'StringConcat(\'a\', \'b\', \'c\')', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的唯一标识符,即数据开发页面顶部切换工作空间处的英文标识。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'CreateFolderIfNotExists', + 'in' => 'formData', + 'schema' => [ + 'description' => '当参数中指定的目录(FileFolderPath)在系统中不存在时,是否自动创建此目录。取值如下:'."\n" + ."\n" + .'- true:若此目录不存在,自动创建此目录'."\n" + ."\n" + .'- false:若此目录不存在,调用失败', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '文件创建成功后的ID。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100000002', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n" + ."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n" + ."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 100000002,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\n 200\\n 100000002\\n true\\n","errorExample":""}]', + 'title' => '在数据开发中创建函数类型文件', + 'summary' => '调用CreateUdfFile,在数据开发中创建函数类型文件。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateBusiness' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78175', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID,您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面查看ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的唯一标识符(即工作空间名称)。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面查看名称。'."\n" + .'该参数与projectId参数二者必须设置其一,以确定本次API调用操作的DataWorks项目。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'BusinessName', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程名称,同一个项目空间下的业务流程名称必须唯一。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'My business process', + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的描述信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'This is a business process created through an interface.', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程对应责任人的阿里云账号ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),鼠标悬停至顶部菜单栏右侧的用户头像,查看账号ID。如果该参数为空,则默认使用调用者的阿里云账号ID。', + 'type' => 'string', + 'required' => false, + 'example' => '1000000000001', + ], + ], + [ + 'name' => 'UseType', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程所属的功能模块。取值如下:'."\n" + .'- NORMAL(数据开发)'."\n" + .'- MANUAL_BIZ(手动业务流程)', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'enumValueTitles' => [], + 'example' => 'NORMAL', + 'default' => 'NORMAL', + 'enum' => [ + 'NORMAL', + 'MANUAL_BIZ', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'BusinessId' => [ + 'description' => '业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"BusinessId\\": 100001\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\n100001\\ntrue","errorExample":""}]', + 'title' => '创建业务流程', + 'summary' => '调用CreateBusiness,创建数据开发(DataStudio)的业务流程。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteBusiness' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78202', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'BusinessId', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的ID,您可以调用[ListBusiness](~~173945~~)接口,根据名称查询对应业务流程的ID。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1000001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '删除业务流程', + 'summary' => '调用DeleteBusiness删除业务流程。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateFolder' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78186', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与**ProjectIdentifier**参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与**ProjectId**参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的路径。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'Business_process/System_Data/MaxCompute/import_layer', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '新建文件夹的唯一标识符。', + 'type' => 'string', + 'example' => 'bdfd68****', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"bdfd68****\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n bdfd68****\\n 0000-ABCD-EFG\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n","errorExample":""}]', + 'title' => '创建文件夹', + 'summary' => '调用CreateFolder创建文件夹。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateBusiness' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78366', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'BusinessName', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的名称。您可以调用[ListBusiness](~~173945~~)接口获取。'."\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'MyBusiness', + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的描述信息。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'modified from my first business', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的责任人。您可以调用[ListBusiness](~~173945~~)接口获取。', + 'type' => 'string', + 'required' => false, + 'example' => '348428****', + ], + ], + [ + 'name' => 'BusinessId', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的ID,您可以调用[ListBusiness](~~173945~~)接口获取。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '300000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '更新业务流程', + 'summary' => '调用UpdateBusiness更新业务流程。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListFiles' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78310', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'FileFolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件所在的文件夹路径。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'Business_process/my_first_business_process/MaxCompute/ods_layer', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件名称的关键字。支持模糊匹配,即输入关键字即可查询包含该关键字的所有文件。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'ods', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间名称。'."\n" + ."\n" + .'该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => false, + 'maximum' => '100', + 'minimum' => '0', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'UseType', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件所属的功能模块。取值如下:'."\n" + .'- NORMAL:数据开发。'."\n" + .'- MANUAL:手动任务。'."\n" + .'- MANUAL_BIZ:手动业务流程。'."\n" + .'- SKIP:数据开发的空跑调度。'."\n" + .'- ADHOCQUERY:临时查询。'."\n" + .'- COMPONENT:组件管理。', + 'type' => 'string', + 'required' => false, + 'example' => 'NORMAL', + ], + ], + [ + 'name' => 'FileTypes', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件类型。不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。,查询文件的代码类型。', + 'type' => 'string', + 'required' => false, + 'example' => '10,23', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件责任人。', + 'type' => 'string', + 'required' => false, + 'example' => '3726346****', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度节点的ID。您可以调用[ListNodes](~~173979~~)接口获取节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '123541234', + ], + ], + [ + 'name' => 'NeedContent', + 'in' => 'formData', + 'schema' => [ + 'description' => '查询结果是否包含文件内容(对于内容较多的文件,可能存在较长的网络传输延时)。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'NeedAbsoluteFolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '查询结果是否包含文件所在的文件夹的路径。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'ExactFileName', + 'in' => 'formData', + 'schema' => [ + 'description' => '精确匹配的文件名称,查询结果的文件名称与该参数完全一致。', + 'type' => 'string', + 'required' => false, + 'example' => 'ods_create.sql', + ], + ], + [ + 'name' => 'FileIdIn', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Fileld列表,查询结果的文件ID集合只能是该列表的子集。最多支持一次指定50个FileId。', + 'type' => 'string', + 'required' => false, + 'example' => '78237,816123', + ], + ], + [ + 'name' => 'LastEditUser', + 'in' => 'formData', + 'schema' => [ + 'description' => '最近一次编辑文件的用户阿里云用户ID。', + 'type' => 'string', + 'required' => false, + 'example' => '38748246285727', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '满足条件的文件列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '请求的数据页数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的数据条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '满足条件的数据总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '13', + ], + 'Files' => [ + 'description' => '文件详情。', + 'type' => 'array', + 'items' => [ + 'description' => '文件信息。', + 'type' => 'object', + 'properties' => [ + 'CommitStatus' => [ + 'description' => '文件当前的提交状态,包括0(未提交最新的代码)和1(已提交最新的代码)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'AutoParsing' => [ + 'description' => '文件是否开启自动解析功能。取值如下:'."\n" + .'- true:文件会自动解析代码。'."\n" + .'- false:文件不会自动解析代码。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖”选择“同周期”时的“代码解析”对应。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Owner' => [ + 'description' => '文件责任人的阿里云用户ID。'."\n", + 'type' => 'string', + 'example' => '3872572****', + ], + 'CreateTime' => [ + 'description' => '文件创建时间的毫秒时间戳。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593950832000', + ], + 'FileType' => [ + 'description' => '文件类型。不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'CurrentVersion' => [ + 'description' => '文件当前已经提交的最新版本号。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'BizId' => [ + 'description' => '文件所属的业务流程ID。该字段已废弃,请使用BusinessId字段。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '300000', + ], + 'LastEditUser' => [ + 'description' => '最近一次编辑文件的用户阿里云用户ID。'."\n", + 'type' => 'string', + 'example' => '38748246285727', + ], + 'FileName' => [ + 'description' => '文件的名称。'."\n", + 'type' => 'string', + 'example' => 'ods_user_info_d', + ], + 'ConnectionName' => [ + 'description' => '文件对应的任务执行时所使用的数据源名称。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'UseType' => [ + 'description' => '文件所属的功能模块。取值如下:'."\n" + .'- NORMAL:数据开发。'."\n" + .'- MANUAL:手动任务。'."\n" + .'- MANUAL_BIZ:手动业务流程。'."\n" + .'- SKIP:数据开发的空跑调度。'."\n" + .'- ADHOCQUERY:临时查询。'."\n" + .'- COMPONENT:组件管理。'."\n", + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'FileFolderId' => [ + 'description' => '文件所在文件夹的ID。'."\n", + 'type' => 'string', + 'example' => '2735c2****', + ], + 'FileId' => [ + 'description' => '文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000001', + ], + 'ParentId' => [ + 'description' => '如果当前文件是组合节点文件的内部文件,该字段标识对应组合节点文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '-1', + ], + 'CreateUser' => [ + 'description' => '文件创建者的阿里云用户ID。'."\n", + 'type' => 'string', + 'example' => '382762****', + ], + 'IsMaxCompute' => [ + 'description' => '如果当前文件是MaxCompute资源文件,该字段标识该资源文件是否需要上传至MaxCompute。'."\n" + ."\n" + .'仅当文件是MaxCompute资源文件时才需要配置该参数。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'BusinessId' => [ + 'description' => '文件所属的业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '300000', + ], + 'FileDescription' => [ + 'description' => '文件的描述信息。'."\n", + 'type' => 'string', + 'example' => 'my test datastudio file', + ], + 'LastEditTime' => [ + 'description' => '最近一次编辑文件的毫秒时间戳。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593950832000', + ], + 'Content' => [ + 'description' => '该参数已废弃。您可通过[GetFile](~~173954~~)接口查询。', + 'type' => 'string', + 'example' => 'SHOW TABLES;', + ], + 'NodeId' => [ + 'description' => '提交文件后,在调度系统生成的调度任务的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '300001', + ], + 'AbsoluteFolderPath' => [ + 'description' => '文件所在的文件夹的路径。', + 'type' => 'string', + 'example' => 'Business_process/my_first_business_process/MaxCompute/ods_layer', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 13,\\n \\"Files\\": [\\n {\\n \\"CommitStatus\\": 1,\\n \\"AutoParsing\\": true,\\n \\"Owner\\": \\"3872572****\\",\\n \\"CreateTime\\": 1593950832000,\\n \\"FileType\\": 10,\\n \\"CurrentVersion\\": 2,\\n \\"BizId\\": 300000,\\n \\"LastEditUser\\": \\"38748246285727\\",\\n \\"FileName\\": \\"ods_user_info_d\\",\\n \\"ConnectionName\\": \\"odps_source\\",\\n \\"UseType\\": \\"NORMAL\\",\\n \\"FileFolderId\\": \\"2735c2****\\",\\n \\"FileId\\": 10000001,\\n \\"ParentId\\": -1,\\n \\"CreateUser\\": \\"382762****\\",\\n \\"IsMaxCompute\\": false,\\n \\"BusinessId\\": 300000,\\n \\"FileDescription\\": \\"my test datastudio file\\",\\n \\"LastEditTime\\": 1593950832000,\\n \\"Content\\": \\"SHOW TABLES;\\",\\n \\"NodeId\\": 300001,\\n \\"AbsoluteFolderPath\\": \\"Business_process/my_first_business_process/MaxCompute/ods_layer\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0000-ABCD-EFG\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n 1\\n 10\\n 13\\n \\n 1\\n true\\n 3872572****\\n 1593950832000\\n 10\\n 2\\n 300000\\n 38748246285727\\n ods_user_info_d\\n odps_source\\n NORMAL\\n 2735c2****\\n 10000001\\n -1\\n 382762****\\n false\\n 300000\\n my test datastudio file\\n 1593950832000\\n SHOW TABLES;\\n 300001\\n \\n \\n","errorExample":""}]', + 'title' => '查询文件列表', + 'summary' => '调用ListFiles查询文件列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'EstablishRelationTableToBusiness' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78225', + 'abilityTreeNodes' => [ + 'FEATUREdideEPPSOE', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID,您可以单击页面右上角的小扳手图标,进入工作空间管理页面查看。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的唯一标识符,即数据开发页面顶部切换工作空间处的英文标识。'."\n" + ."\n" + .'该参数与ProjectId参数二者必须设置其一,以确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw', + ], + ], + [ + 'name' => 'BusinessId', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的ID,您可以使用[ListBusiness](~~173945~~)获取对应业务流程的ID。'."\n" + ."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1000001', + ], + ], + [ + 'name' => 'TableGuid', + 'in' => 'formData', + 'schema' => [ + 'description' => '表的UUID,您可以通过[SearchMetaTables](~~173919~~)获取对应表的UUID。'."\n" + ."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.dw_project.tb1', + ], + ], + [ + 'name' => 'FolderId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的ID,您可以使用[GetFolder](~~173952~~)或者[ListFolders](~~173955~~)获取对应文件夹的ID。'."\n" + ."\n\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '2eb6f9****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG\\n200\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '导入表至业务流程', + 'summary' => '相当于在数据开发页面右键单击业务流程,选择导入表的操作。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'SubmitFile' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78360', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '100001', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的ID,您可以通过[ListFiles](~~173942~~)查询对应文件的ID。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1000000', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => [ + 'description' => '本次提交的说明信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'Submit a task for the first time', + ], + ], + [ + 'name' => 'SkipAllDeployFileExtensions', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件提交成功后是否跳过发布前检查:'."\n" + .'- false:不跳过。文件提交后会自动触发发布前检查流程,检查通过后才会进入可发布状态。'."\n" + .'- true:跳过。文件提交后不会触发发布前检查流程,可直接进入发布流程。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + 'default' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '发布包的ID,后续需要将该ID作为参数调用[GetDeployment](~~173950~~)接口,获取本次发布的具体情况。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3000001', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 3000001,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 3000001\\n 0000-ABCD-EFG****\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n","errorExample":""}]', + 'title' => '提交文件至调度系统开发环境', + 'summary' => '提交文件至调度系统的开发环境,生成对应的任务。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListBusiness' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78297', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的数据条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '100', + 'minimum' => '0', + 'example' => '10', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'formData', + 'schema' => [ + 'description' => '关键字,用于模糊匹配业务流程的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'my', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '业务流程列表的详情。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前数据页的页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '当前数据页的数据条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '满足查询条件的数据总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '13', + ], + 'Business' => [ + 'description' => '业务流程的详情。', + 'type' => 'array', + 'items' => [ + 'description' => '业务流程列表信息。', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '业务流程的责任人。', + 'type' => 'string', + 'example' => '34824327****', + ], + 'Description' => [ + 'description' => '业务流程的描述信息。', + 'type' => 'string', + 'example' => '我的第一个业务流程', + ], + 'ProjectId' => [ + 'description' => '业务流程所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'BusinessId' => [ + 'description' => '业务流程的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3000001', + ], + 'BusinessName' => [ + 'description' => '业务流程的名称。', + 'type' => 'string', + 'example' => '我的第一个业务流程', + ], + 'UseType' => [ + 'description' => '业务流程所属的功能模块,包括NORMAL(数据开发)和MANUAL_BIZ(手动业务流程)。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 13,\\n \\"Business\\": [\\n {\\n \\"Owner\\": \\"34824327****\\",\\n \\"Description\\": \\"我的第一个业务流程\\",\\n \\"ProjectId\\": 10000,\\n \\"BusinessId\\": 3000001,\\n \\"BusinessName\\": \\"我的第一个业务流程\\",\\n \\"UseType\\": \\"NORMAL\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n 1\\n 10\\n 13\\n \\n 34824327****\\n 我的第一个业务流程\\n 10000\\n 3000001\\n 我的第一个业务流程\\n NORMAL\\n \\n \\n","errorExample":""}]', + 'title' => '查询业务流程的列表', + 'summary' => '调用ListBusiness查询业务流程的列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetFileVersion' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78247', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'FileId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的ID,您可以通过[ListFiles](~~173942~~)查询对应文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1000001', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID,您可以单击页面右上角的小扳手图标,进入工作空间管理页面查看。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '1000011', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的唯一标识符,即数据开发页面顶部切换工作空间处的英文标识。'."\n" + ."\n" + .'该参数与ProjectId参数二者必须设置其一,以确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FileVersion', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要查询的文件版本。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '2', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '文件的版本详情。', + 'type' => 'object', + 'properties' => [ + 'FileContent' => [ + 'description' => '生成本次文件版本的文件代码。', + 'type' => 'string', + 'example' => 'SHOW TABLES;', + ], + 'IsCurrentProd' => [ + 'description' => '本次文件版本是否为当前生产环境的最新版本。'."\n" + .'- true:是最新版本。'."\n" + .'- false:不是最新版本。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Status' => [ + 'description' => '文件版本当前的状态,取值如下:'."\n" + .'- COMMITTING(提交中)'."\n" + .'- COMMITTED或CHECK_OK(已提交)'."\n" + .'- PACKAGED(准备发布)'."\n" + .'- DEPLOYING(发布中)'."\n" + .'- DEPLOYED(已发布)'."\n" + .'- CANCELLED(取消发布)', + 'type' => 'string', + 'example' => 'COMMITTED', + ], + 'NodeContent' => [ + 'description' => '本次文件版本生成时的调度配置。', + 'type' => 'string', + 'example' => '{"cycleType":0,"cronExpress":"00 05 00 * * ?"}', + ], + 'CommitUser' => [ + 'description' => '生成本次文件版本的阿里云用户ID。', + 'type' => 'string', + 'example' => '7384234****', + ], + 'Comment' => [ + 'description' => '本次文件版本的说明。', + 'type' => 'string', + 'example' => 'Second version submission', + ], + 'FilePropertyContent' => [ + 'description' => '生成本次文件版本的文件基本信息。', + 'type' => 'string', + 'example' => '{"fileName":"ods_user_info_d","fileType":10}', + ], + 'FileName' => [ + 'description' => '生成本次文件版本的文件名。', + 'type' => 'string', + 'example' => 'ods_user_info_d', + ], + 'UseType' => [ + 'description' => '文件所属的功能模块,取值如下:'."\n" + .'- 0:NORMAL(数据开发)'."\n" + .'- 1:MANUAL(手动任务)'."\n" + .'- 2:MANUAL_BIZ(手动工作流)'."\n" + .'- 3:SKIP(数据开发的空跑调度)'."\n" + .'- 10:ADHOCQUERY(临时查询)'."\n" + .'- 30:COMPONENT(组件管理)'."\n", + 'type' => 'string', + 'example' => '0', + ], + 'ChangeType' => [ + 'description' => '本次文件版本的变更类型,包括CREATE、UPDATE和DELETE。', + 'type' => 'string', + 'example' => 'UPDATE', + ], + 'FileVersion' => [ + 'description' => '文件的版本。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'CommitTime' => [ + 'description' => '文件版本生成的毫秒时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593881265000', + ], + 'NodeId' => [ + 'description' => '文件版本生成时对应的调度任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3000001', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"FileContent\\": \\"SHOW TABLES;\\",\\n \\"IsCurrentProd\\": true,\\n \\"Status\\": \\"COMMITTED\\",\\n \\"NodeContent\\": \\"{\\\\\\"cycleType\\\\\\":0,\\\\\\"cronExpress\\\\\\":\\\\\\"00 05 00 * * ?\\\\\\"}\\",\\n \\"CommitUser\\": \\"7384234****\\",\\n \\"Comment\\": \\"Second version submission\\",\\n \\"FilePropertyContent\\": \\"{\\\\\\"fileName\\\\\\":\\\\\\"ods_user_info_d\\\\\\",\\\\\\"fileType\\\\\\":10}\\",\\n \\"FileName\\": \\"ods_user_info_d\\",\\n \\"UseType\\": \\"0\\",\\n \\"ChangeType\\": \\"UPDATE\\",\\n \\"FileVersion\\": 2,\\n \\"CommitTime\\": 1593881265000,\\n \\"NodeId\\": 3000001\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n SHOW TABLES;\\n true\\n COMMITTED\\n {\\"cycleType\\":0,\\"cronExpress\\":\\"00 05 00 * * ?\\"}\\n 7384234****\\n 第二次版本提交\\n {\\"fileName\\":\\"ods_user_info_d\\",\\"fileType\\":10}\\n ods_user_info_d\\n 0\\n UPDATE\\n 2\\n 1593881265000\\n 3000001\\n \\n","errorExample":""}]', + 'title' => '获取文件的版本详情', + 'summary' => '调用GetFileVersion获取文件的版本详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteFolder' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78209', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FolderId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的ID,您可以通过[ListFolders](~~173955~~)查询对应文件夹的ID。'."\n" + ."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2eb6f9****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '删除数据开发页面的文件夹', + 'summary' => '调用DeleteFolder删除数据开发页面的文件夹。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteFile' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78208', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间名称。'."\n" + ."\n" + .'该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的ID,您可以使用[ListFiles](~~173942~~)接口查询对应文件的ID。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000201', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'DeploymentId' => [ + 'description' => '如果文件已经提交过,那么DeleteFile接口会同时触发一个异步在调度系统删除的流程,需要用DeleteFile接口返回的DeploymentId继续调用GetDeployment轮询被触发的异步删除流程的状态。'."\n" + ."\n" + .'如果该字段为空,则说明文件已经删除完毕,无需继续轮询。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000000001', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"DeploymentId\\": 1000000001,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 1000000001\\n 0000-ABCD-EFG****\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n","errorExample":""}]', + 'title' => '删除数据开发中的文件', + 'summary' => '调用DeleteFile删除数据开发中的文件。如果文件已经提交过,那么DeleteFile API会同时触发一个异步在调度系统删除的流程,需要用DeleteFile API返回的DeploymentId继续调用GetDeployment轮询被触发的异步删除流程的状态。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetDeployment' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78242', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID,您可以单击页面右上角的小扳手图标,进入工作空间管理页面查看。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的唯一标识符,即数据开发页面顶部切换工作空间处的英文标识。'."\n" + ."\n" + .'该参数与ProjectId参数二者必须设置其一,以确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'DeploymentId', + 'in' => 'formData', + 'schema' => [ + 'description' => '发布包的ID。执行[SubmitFile](~~173944~~) 和[DeployFile](~~173956~~)时,都会生成一个对应的发布包ID。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '3000001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '发布包的详情。', + 'type' => 'object', + 'properties' => [ + 'Deployment' => [ + 'description' => '发布包的详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '发布包当前的状态,包括0(就绪)、1(成功)和2(失败)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ErrorMessage' => [ + 'description' => '当发布包执行失败(status为2)后,该字段记录具体的错误信息。', + 'type' => 'string', + 'example' => 'Success', + ], + 'FromEnvironment' => [ + 'description' => '执行本次发布所在的环境,包括0(本地)和1(开发环境)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ToEnvironment' => [ + 'description' => '发布文件信息的目标环境,包括1(开发环境)和2(生产环境)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'CheckingStatus' => [ + 'description' => '当前发布包涉及节点的检查状态,当发布包的目标环境是开发环境(toEnviroment=1)时,只有发布包的Status为1并且CheckingStatus为空时,才可以继续进行文件到生产环境的发布。'."\n" + .'- 7:检查未通过'."\n" + .'- 8:正在处于检查中的状态', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '7', + ], + 'CreateTime' => [ + 'description' => '发布包生成的毫秒时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593877765000', + ], + 'HandlerId' => [ + 'description' => '发布包执行者的阿里云用户ID。', + 'type' => 'string', + 'example' => '2003****', + ], + 'CreatorId' => [ + 'description' => '发布包创建者的阿里云用户ID。', + 'type' => 'string', + 'example' => '20030****', + ], + 'ExecuteTime' => [ + 'description' => '发布包开始执行的毫秒时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593877765000', + ], + 'Name' => [ + 'description' => '发布包的名称,显示在任务发布>发布包列表页面。', + 'type' => 'string', + 'example' => 'ods_user_info_d-2020-07-04_20030****', + ], + ], + ], + 'DeployedItems' => [ + 'description' => '发布项列表。', + 'type' => 'array', + 'items' => [ + 'description' => '发布项详情', + 'type' => 'object', + 'properties' => [ + 'FileId' => [ + 'description' => '文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '5076****', + ], + 'FileVersion' => [ + 'description' => '文件的版本。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '7', + ], + 'Status' => [ + 'description' => '* UNPUBLISHED(0): 未发布'."\n" + .'* SUCCESS(1): 发布成功'."\n" + .'* ERROR(2): 发布失败'."\n" + .'* CLONED(3): 克隆成功'."\n" + .'* DEPLOY_ERROR(4): 发布失败'."\n" + .'* CLONING(5): 克隆中'."\n" + .'* REJECT(6): 发布驳回', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Deployment\\": {\\n \\"Status\\": 1,\\n \\"ErrorMessage\\": \\"Success\\",\\n \\"FromEnvironment\\": 0,\\n \\"ToEnvironment\\": 1,\\n \\"CheckingStatus\\": 7,\\n \\"CreateTime\\": 1593877765000,\\n \\"HandlerId\\": \\"2003****\\",\\n \\"CreatorId\\": \\"20030****\\",\\n \\"ExecuteTime\\": 1593877765000,\\n \\"Name\\": \\"ods_user_info_d-2020-07-04_20030****\\"\\n },\\n \\"DeployedItems\\": [\\n {\\n \\"FileId\\": 0,\\n \\"FileVersion\\": 7,\\n \\"Status\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n \\n 1\\n 成功\\n 0\\n 1\\n 7\\n 1593877765000\\n 2003****\\n 20030****\\n 1593877765000\\n ods_user_info_d-2020-07-04_20030****\\n \\n \\n 507642378\\n 7\\n 1\\n \\n \\n","errorExample":""}]', + 'title' => '获取发布包的详情', + 'summary' => '调用GetDeployment获取发布包的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateFile' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78372', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'FileFolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件所在的路径。'."\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'Business_process/First_Business_Process/data_integration/Folder_1/Folder_2', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面获取ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '100001', + ], + ], + [ + 'name' => 'FileName', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的名称。您可以通过重新设置FileName的值来修改文件名称。'."\n" + .'例如,使用[ListFiles](~~173942~~)接口查询目标目录下的文件ID,通过[UpdateFile](~~173951~~)接口,输入查询的文件ID至FileId参数,并配置FileName的参数值,即可修改相应文件的名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'ods_user_info_d', + ], + ], + [ + 'name' => 'FileDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的描述。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'Here is the file description', + 'maxLength' => 200, + ], + ], + [ + 'name' => 'Content', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件代码内容,不同代码类型(fileType)的文件,代码格式不同。您可以在运维中心,右键单击对应类型的任务,选择查看代码,查看具体的代码格式。', + 'type' => 'string', + 'required' => false, + 'example' => 'SELECT "1";', + ], + ], + [ + 'name' => 'AutoRerunTimes', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件出错后,自动重跑的次数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'AutoRerunIntervalMillis', + 'in' => 'formData', + 'schema' => [ + 'description' => '出错自动重跑时间间隔,单位为毫秒。最大为1800000毫秒(30分钟)。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>出错自动重跑”的”重跑间隔“配置对应。'."\n" + .'控制台中“重跑间隔”的时间单位为分钟,请在调用时注意转换时间。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '120000', + ], + ], + [ + 'name' => 'RerunMode', + 'in' => 'formData', + 'schema' => [ + 'description' => '重跑属性。取值如下:'."\n" + .'- ALL_ALLOWED:运行成功或失败后皆可重跑。'."\n" + .'- FAILURE_ALLOWED:运行成功后不可重跑,运行失败后可以重跑。'."\n" + .'- ALL_DENIED:运行成功或失败皆不可重跑。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>重跑属性”配置内容对应。', + 'type' => 'string', + 'required' => false, + 'example' => 'ALL_ALLOWED', + 'enum' => [ + 'ALL_ALLOWD', + 'FAILURE_ALLOWED', + 'ALL_DENIED', + 'ALL_ALLOWED', + ], + ], + ], + [ + 'name' => 'Stop', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否暂停调度,取值如下:'."\n" + .'- true:暂停调度。'."\n" + .'- false:不暂停调度。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>调度类型”配置为”暂停调度“时对应。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'ParaValue', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度参数。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>参数”对应。您可以参考[调度参数](~~137548~~)配置。', + 'type' => 'string', + 'required' => false, + 'example' => 'x=a y=b z=c', + ], + ], + [ + 'name' => 'StartEffectDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '开始自动调度的毫秒时间戳。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>生效日期”配置的开始时间的毫秒时间戳对应。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '0', + 'example' => '936923400000', + ], + ], + [ + 'name' => 'EndEffectDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '停止自动调度的时间戳,单位为毫秒。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>生效日期”配置的结束时间的毫秒时间戳对应。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '0', + 'example' => '4155787800000', + ], + ], + [ + 'name' => 'CronExpress', + 'in' => 'formData', + 'schema' => [ + 'description' => '周期调度的cron表达式,该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>cron表达式”对应。配置完“调度周期”及“定时调度时间”后,DataWorks会自动生成相应cron表达式。'."\n" + ."\n" + .'示例如下:'."\n" + ."\n" + .'- 每天凌晨5点30分定时调度:`00 30 05 * * ?`。'."\n" + ."\n" + .'- 每个小时的第15分钟定时调度:`00 15 * * * ?`。'."\n" + ."\n" + .'- 每隔十分钟调度一次:`00 00/10 * * * ?`。'."\n" + ."\n" + .'- 每天8点到17点,每个十分钟调度一次:`00 00-59/10 8-23 * * * ?`。'."\n" + ."\n" + .'- 每月的1日0点20分自动调度:`00 20 00 1 * ?`。'."\n" + ."\n" + .'- 从1月1日0点10分开始,每过3个月调度一次:`00 10 00 1 1-12/3 ?`。'."\n" + ."\n" + .'- 每周二、周五的0点5分自动调度:`00 05 00 * * 2,5`。'."\n" + ."\n\n" + .'由于DataWorks调度系统的规则,cron表达式有以下限制:'."\n" + ."\n" + .'- 最短调度间隔时间为5分钟。'."\n" + ."\n" + .'- 每天最早调度时间为0点5分。', + 'type' => 'string', + 'required' => false, + 'example' => '00 00-59/5 1-23 * * ?', + ], + ], + [ + 'name' => 'CycleType', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度周期的类型,包括NOT_DAY(分钟、小时)和DAY(日、周、月)。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>调度周期”对应。', + 'type' => 'string', + 'required' => false, + 'example' => 'NOT_DAY', + 'default' => 'DAY', + 'enum' => [ + 'DAY', + 'NOT_DAY', + ], + ], + ], + [ + 'name' => 'DependentType', + 'in' => 'formData', + 'schema' => [ + 'description' => '依赖上一周期的方式。取值如下:'."\n" + .'- SELF:依赖项选择本节点。'."\n" + .'- CHILD:依赖项选择一级子节点。'."\n" + .'- USER_DEFINE:依赖项选择其他节点。'."\n" + .'- NONE:未选择依赖项,即不会依赖上一周期。', + 'type' => 'string', + 'required' => false, + 'example' => 'USER_DEFINE', + 'enum' => [ + 'NONE', + 'USER_DEFINE', + 'CHILD', + 'SELF', + 'USER_DEFINE_AND_SELF', + 'CHILD_AND_SELF', + ], + ], + ], + [ + 'name' => 'DependentNodeIdList', + 'in' => 'formData', + 'schema' => [ + 'description' => '当DependentType参数配置为USER_DEFINE时,用于设置当前文件具体依赖的节点ID。依赖多个节点时,使用英文逗号(,)分隔。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖”配置为“上一周期”后,依赖项选择”其他节点“时配置的内容对应。', + 'type' => 'string', + 'required' => false, + 'example' => '5,10,15,20', + ], + ], + [ + 'name' => 'InputList', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件依赖的上游文件的输出名称。依赖多个输出时,使用英文逗号(,)分隔。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖“选择”同周期“时的”父节点输出名称”对应。'."\n" + ."\n" + .'> 通过CreateDISyncTask和UpdateFile方式创建离线同步任务时此参数必须配置。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'project_root,project.file1,project.001_out', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间名称。'."\n" + ."\n" + .'该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的ID。您可以调用[ListFiles](~~173942~~)接口获取文件ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '100000001', + ], + ], + [ + 'name' => 'OutputList', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的输出。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖“选择”同周期“时的”本节点的输出名称”对应。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project.ods_user_info_d', + ], + ], + [ + 'name' => 'ResourceGroupIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件发布成任务后,任务执行时对应的资源组。您可以调用[ListResourceGroups](~~173913~~)获取工作空间可用的资源组列表。', + 'type' => 'string', + 'required' => false, + 'example' => 'default_group', + ], + ], + [ + 'name' => 'ConnectionName', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件对应任务执行时,任务使用的数据源标识符。您可以调用[ListDataSources](~~211431~~)获取可用的数据源列表。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps_source', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件所有者的用户ID。', + 'type' => 'string', + 'required' => false, + 'example' => '18023848927592', + ], + ], + [ + 'name' => 'AutoParsing', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件是否开启自动解析功能。取值如下:'."\n" + .'- true:文件会自动解析代码。'."\n" + .'- false:文件不会自动解析代码。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖”选择“同周期”时的“代码解析”对应。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'SchedulerType', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度的类型,取值如下:'."\n" + .'- NORMAL:正常调度任务。'."\n" + .'- MANUAL:手动任务,不会被日常调度,对应手动业务流程下的节点。'."\n" + .'- PAUSE:暂停任务。'."\n" + .'- SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'required' => false, + 'example' => 'NORMAL', + 'enum' => [ + 'NORMAL', + 'SKIP', + 'PAUSE', + 'MANUAL', + ], + ], + ], + [ + 'name' => 'AdvancedSettings', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务的高级配置。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,EMR Spark Streaming和EMR Streaming SQL数据开发任务,编辑页面右侧导航栏的“高级设置“对应。'."\n" + ."\n" + .'当前仅EMR Spark Streaming和EMR Streaming SQL任务支持配置该参数,并且参数为JSON格式。', + 'type' => 'string', + 'required' => false, + 'example' => '{"queue":"default","SPARK_CONF":"--conf spark.driver.memory=2g"}', + ], + ], + [ + 'name' => 'StartImmediately', + 'in' => 'formData', + 'schema' => [ + 'description' => '发布后是否立即启动。取值如下:'."\n" + .'- true:发布后立即启动。'."\n" + .'- false:发布后暂不启动。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,EMR Spark Streaming和EMR Streaming SQL数据开发任务,编辑页面右侧导航栏的“配置>时间属性>启动方式“对应。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'InputParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的上下文输入参数。参数为JSON格式,包含的字段可参考[GetFile](~~173954~~)接口返回值中的InputContextParameterList参数结构。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输入参数“对应。', + 'type' => 'string', + 'required' => false, + 'example' => '[{"ValueSource": "project_001.first_node:bizdate_param","ParameterName": "bizdate_input"}]', + ], + ], + [ + 'name' => 'OutputParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的上下文输出参数。参数为JSON格式,包含的字段可参考[GetFile](~~173954~~)接口返回值中的OutputContextParameterList参数结构。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输出参数“对应。', + 'type' => 'string', + 'required' => false, + 'example' => '[{"Type": 1,"Value": "${bizdate}","ParameterName": "bizdate_param"}]', + ], + ], + [ + 'name' => 'IgnoreParentSkipRunningProperty', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度配置->上一周期->是否跳过上游的空跑属性。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'ApplyScheduleImmediately', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否发布后立即生效调度配置。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Timeout', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度配置超时定义。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'ImageId', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义镜像ID', + 'type' => 'string', + 'required' => false, + 'example' => 'm-uf6d7npxk1hhek8ng0cb', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFGH-IJKLMNOPQ', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFGH-IJKLMNOPQ\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0000-ABCD-EFGH-IJKLMNOPQ\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '更新已有的文件节点', + 'summary' => '调用UpdateFile更新已创建的文件。', + 'description' => '调试或调用该接口时,填写的参数必须与该节点原本的文件配置不同。例如,源节点的某参数值为A,则需要变更为B后再提交。如果仍填写A,会报invalid异常。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetFolder' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78248', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '1000011', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FolderId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的ID,该参数与FolderPath参数,二者必须设置其一。您可以调用[ListFolders](~~173955~~)接口获取文件夹ID。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '273****', + ], + ], + [ + 'name' => 'FolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的路径,该参数与FolderId参数,二者必须设置其一。您可以调用[ListFolders](~~173955~~)接口获取文件夹路径。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'Business_process/my_first_business_process/MaxCompute/ods_layer', + 'minLength' => 1, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '文件夹的详情。', + 'type' => 'object', + 'properties' => [ + 'FolderPath' => [ + 'description' => '文件夹的路径。', + 'type' => 'string', + 'example' => 'Business_process/my_first_business_process/MaxCompute/ods_layer', + ], + 'FolderId' => [ + 'description' => '文件夹的ID。'."\n" + ."\n", + 'type' => 'string', + 'example' => '2735****', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"FolderPath\\": \\"Business_process/my_first_business_process/MaxCompute/ods_layer\\",\\n \\"FolderId\\": \\"2735****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\n\\n 业务流程/我的第一个业务流程/MaxCompute/ods层\\n 2735****\\n\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '获取文件夹的详情', + 'summary' => '调用GetFolder获取文件夹的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListFileVersions' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78312', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'FileId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的ID,您可以通过[ListFiles](~~173942~~)查询对应文件的ID。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '100000001', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID,您可以单击页面右上角的小扳手图标,进入工作空间管理页面查看。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '100001', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的唯一标识符,即数据开发页面顶部切换工作空间处的英文标识。'."\n" + ."\n" + .'该参数与ProjectId参数二者必须设置其一,以确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => false, + 'maximum' => '100', + 'minimum' => '0', + 'example' => '10', + 'default' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '文件的版本列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前数据页的页码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '当前数据页的大小。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '满足查询条件的数据总条数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '13', + ], + 'FileVersions' => [ + 'description' => '文件的版本详情。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FileContent' => [ + 'description' => '生成本次文件版本的文件代码。'."\n", + 'type' => 'string', + 'example' => 'SHOW TABLES;', + ], + 'Status' => [ + 'description' => '文件版本当前的状态,包括COMMITTING(提交中)、COMMITTED或CHECK_OK(已提交)、PACKAGED(准备发布)、DEPLOYING(发布中)、DEPLOYED(已发布)和CANCELLED(取消发布)。', + 'type' => 'string', + 'example' => 'COMMITTED', + ], + 'IsCurrentProd' => [ + 'description' => '本次文件版本是否为当前生产环境的最新版本。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'CommitUser' => [ + 'description' => '生成本次文件版本的阿里云用户UID。'."\n", + 'type' => 'string', + 'example' => '73842342****', + ], + 'NodeContent' => [ + 'description' => '生成本次文件版本的调度配置。'."\n", + 'type' => 'string', + 'example' => '{"cycleType":0,"cronExpress":"00 05 00 * * ?"}', + ], + 'Comment' => [ + 'description' => '本次文件版本的说明。', + 'type' => 'string', + 'example' => 'Second version submission', + ], + 'FilePropertyContent' => [ + 'description' => '生成本次文件版本的文本基本信息。'."\n", + 'type' => 'string', + 'example' => '{"fileName":"ods_user_info_d","fileType":10}', + ], + 'FileName' => [ + 'description' => '生成本次文件版本的文件名。'."\n", + 'type' => 'string', + 'example' => 'ods_user_info_d', + ], + 'UseType' => [ + 'description' => '文件所属的功能模块,包括NORMAL(数据开发)、MANUAL(手动任务)、MANUAL_BIZ(手动工作流)、SKIP(数据开发的空跑调度)、ADHOCQUERY(临时查询)和COMPONENT(组件管理)。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'ChangeType' => [ + 'description' => '本次文件版本的变更类型,包括CREATE、UPDATE和DELETE。', + 'type' => 'string', + 'example' => 'UPDATE', + ], + 'FileVersion' => [ + 'description' => '文件的版本。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'CommitTime' => [ + 'description' => '生成文件版本的毫秒时间戳。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593881265000', + ], + 'NodeId' => [ + 'description' => '生成文件版本时对应的调度任务ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 13,\\n \\"FileVersions\\": [\\n {\\n \\"FileContent\\": \\"SHOW TABLES;\\",\\n \\"Status\\": \\"COMMITTED\\",\\n \\"IsCurrentProd\\": false,\\n \\"CommitUser\\": \\"73842342****\\",\\n \\"NodeContent\\": \\"{\\\\\\"cycleType\\\\\\":0,\\\\\\"cronExpress\\\\\\":\\\\\\"00 05 00 * * ?\\\\\\"}\\",\\n \\"Comment\\": \\"Second version submission\\",\\n \\"FilePropertyContent\\": \\"{\\\\\\"fileName\\\\\\":\\\\\\"ods_user_info_d\\\\\\",\\\\\\"fileType\\\\\\":10}\\",\\n \\"FileName\\": \\"ods_user_info_d\\",\\n \\"UseType\\": \\"NORMAL\\",\\n \\"ChangeType\\": \\"UPDATE\\",\\n \\"FileVersion\\": 2,\\n \\"CommitTime\\": 1593881265000,\\n \\"NodeId\\": 1234\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****Q\\n200\\n\\n 13\\n \\n COMMITTED\\n 73842342****\\n 第二次版本提交\\n 1593881265000\\n ods_user_info_d\\n {\\"fileName\\":\\"ods_user_info_d\\",\\"fileType\\":10}\\n NORMAL\\n false\\n SHOW TABLES;\\n UPDATE\\n 2\\n 3000001\\n {\\"cycleType\\":0,\\"cronExpress\\":\\"00 05 00 * * ?\\"}\\n \\n 10\\n 1\\n\\ntrue","errorExample":""}]', + 'title' => '查询文件的版本列表', + 'summary' => '调用ListFileVersions查询文件的版本列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetFile' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78245', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间名称。'."\n" + ."\n" + .'该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的ID。您可以调用[ListFiles](~~173942~~)接口查询对应文件的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '100000001', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度节点的ID。您可以调用[ListFiles](~~173942~~)接口获取节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '200000001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '文件的详情。', + 'type' => 'object', + 'properties' => [ + 'File' => [ + 'description' => '文件的基本信息。', + 'type' => 'object', + 'properties' => [ + 'CommitStatus' => [ + 'description' => '文件当前的提交状态,包括0(未提交最新的代码)和1(已提交最新的代码)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'AutoParsing' => [ + 'description' => '文件是否开启自动解析功能。取值如下:'."\n" + .'- true:文件会自动解析代码。'."\n" + .'- false:文件不会自动解析代码。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖”选择“同周期”时的“代码解析”对应。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Owner' => [ + 'description' => '文件责任人的阿里云用户ID。', + 'type' => 'string', + 'example' => '7775674356****', + ], + 'CreateTime' => [ + 'description' => '文件创建的时间戳,单位为毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593879116000', + ], + 'FileType' => [ + 'description' => '文件的代码类型。文件类型,不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'CurrentVersion' => [ + 'description' => '文件当前已经提交的最新版本号。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'BizId' => [ + 'description' => '文件所属业务流程的ID。该字段已废弃,请使用BusinessId字段。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000001', + ], + 'LastEditUser' => [ + 'description' => '最近一次编辑文件的阿里云用户ID。', + 'type' => 'string', + 'example' => '62465892****', + ], + 'FileName' => [ + 'description' => '文件的名称。', + 'type' => 'string', + 'example' => 'ods_user_info_d', + ], + 'ConnectionName' => [ + 'description' => '执行文件对应的任务时,所使用的数据源名称。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'UseType' => [ + 'description' => '文件所属的功能模块。取值如下:'."\n" + .'- NORMAL:数据开发。'."\n" + .'- MANUAL:手动任务。'."\n" + .'- MANUAL_BIZ:手动业务流程。'."\n" + .'- SKIP:数据开发的空跑调度。'."\n" + .'- ADHOCQUERY:临时查询。'."\n" + .'- COMPONENT:组件管理。'."\n", + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'FileFolderId' => [ + 'description' => '文件所属文件夹的ID。', + 'type' => 'string', + 'example' => '2735c2****', + ], + 'ParentId' => [ + 'description' => '如果当前文件是组合节点文件的内部文件,该字段标识对应组合节点文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '-1', + ], + 'CreateUser' => [ + 'description' => '文件创建人的阿里云用户ID。', + 'type' => 'string', + 'example' => '424732****', + ], + 'IsMaxCompute' => [ + 'description' => '标识该资源文件是否需要上传至MaxCompute。'."\n" + .'仅当文件是MaxCompute资源文件时才需要配置该参数。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'BusinessId' => [ + 'description' => '文件的业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000001', + ], + 'FileDescription' => [ + 'description' => '文件的描述信息。', + 'type' => 'string', + 'example' => 'My first DataWorks file', + ], + 'DeletedStatus' => [ + 'description' => '文件的删除状态。取值如下:'."\n" + .'- NORMAL:未删除。'."\n" + .'- RECYCLE_BIN:回收站。'."\n" + .'- DELETED:被删除。', + 'type' => 'string', + 'example' => 'RECYCLE', + ], + 'LastEditTime' => [ + 'description' => '最近一次编辑文件的时间戳,单位为毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593879116000', + ], + 'Content' => [ + 'description' => '文件的代码。', + 'type' => 'string', + 'example' => 'SHOW TABLES;', + ], + 'NodeId' => [ + 'description' => '提交文件后,在调度系统生成的调度任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '300001', + ], + 'AdvancedSettings' => [ + 'description' => '任务的高级配置。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,EMR数据开发任务,编辑页面右侧导航栏的“高级设置“对应。'."\n" + ."\n" + .'> 当前EMR Shell任务不支持配置高级参数。'."\n" + ."\n" + .'各EMR任务开发的高级参数说明,请参见[EMR任务开发](~~473077~~)。', + 'type' => 'string', + 'example' => '{\\"priority\\":\\"1\\",\\"ENABLE_SPARKSQL_JDBC\\":false,\\"FLOW_SKIP_SQL_ANALYZE\\":false,\\"queue\\":\\"default\\"}', + ], + 'FileId' => [ + 'description' => '文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100000001', + ], + ], + ], + 'NodeConfiguration' => [ + 'description' => '文件的调度配置。', + 'type' => 'object', + 'properties' => [ + 'RerunMode' => [ + 'description' => '重跑属性。取值如下:'."\n" + .'- ALL_ALLOWED:运行成功或失败后皆可重跑。'."\n" + .'- FAILURE_ALLOWED:运行成功后不可重跑,运行失败后可以重跑。'."\n" + .'- ALL_DENIED:运行成功或失败皆不可重跑。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>重跑属性”配置内容对应。', + 'type' => 'string', + 'example' => 'ALL_ALLOWED', + ], + 'SchedulerType' => [ + 'description' => '调度的类型,取值如下:'."\n" + .'- NORMAL:正常调度任务。'."\n" + .'- MANUAL:手动任务,不会被日常调度,对应手动业务流程下的节点。'."\n" + .'- PAUSE:暂停任务。'."\n" + .'- SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'Stop' => [ + 'description' => '是否暂停调度,取值如下:'."\n" + .'- true:暂停调度。'."\n" + .'- false:不暂停调度。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>调度类型”配置为”暂停调度“时对应。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'ParaValue' => [ + 'description' => '调度参数。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>参数”对应。您可以参考[调度参数](~~137548~~)配置。', + 'type' => 'string', + 'example' => 'a=x b=y', + ], + 'StartEffectDate' => [ + 'description' => '开始自动调度的毫秒时间戳。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>生效日期”配置的开始时间的毫秒时间戳对应。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '936923400000', + ], + 'EndEffectDate' => [ + 'description' => '停止自动调度的时间戳,单位为毫秒。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>生效日期”配置的结束时间的毫秒时间戳对应。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '4155787800000', + ], + 'CycleType' => [ + 'description' => '调度周期的类型,包括NOT_DAY(分钟、小时)和DAY(日、周、月)。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>调度周期”对应。', + 'type' => 'string', + 'example' => 'DAY', + ], + 'DependentNodeIdList' => [ + 'description' => '当DependentType参数配置为USER_DEFINE时,用于设置当前文件具体依赖的节点ID。依赖多个节点时,使用英文逗号(,)分隔。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖”配置为“上一周期”后,依赖项选择”其他节点“时配置的内容对应。', + 'type' => 'string', + 'example' => '5,10,15,20', + ], + 'ResourceGroupId' => [ + 'description' => '文件发布成任务后,任务执行时对应的资源组。您可以调用[ListResourceGroups](~~173913~~)获取工作空间可用的资源组列表。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '375827434852437', + ], + 'DependentType' => [ + 'description' => '依赖上一周期的方式。取值如下:'."\n" + .'- SELF:依赖项选择本节点。'."\n" + .'- CHILD:依赖项选择一级子节点。'."\n" + .'- USER_DEFINE:依赖项选择其他节点。'."\n" + .'- NONE:未选择依赖项,即不会依赖上一周期。', + 'type' => 'string', + 'example' => 'USER_DEFINE', + ], + 'AutoRerunTimes' => [ + 'description' => '出错自动重跑的次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'AutoRerunIntervalMillis' => [ + 'description' => '出错自动重跑时间间隔,单位为毫秒。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>出错自动重跑”的”重跑间隔“配置对应。'."\n" + .'控制台中“重跑间隔”的时间单位为分钟,请在调用时注意转换时间。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '120000', + ], + 'CronExpress' => [ + 'description' => '文件定时调度的cron表达式。', + 'type' => 'string', + 'example' => '00 05 00 * * ?', + ], + 'InputList' => [ + 'description' => '文件依赖的上游文件输出。', + 'type' => 'array', + 'items' => [ + 'description' => '依赖的上游文件输出信息。', + 'type' => 'object', + 'properties' => [ + 'Input' => [ + 'description' => '文件依赖的上游文件的输出名称。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖“选择”同周期“时的”父节点输出名称”对应。', + 'type' => 'string', + 'example' => 'project.001_out', + ], + 'ParseType' => [ + 'description' => '配置文件依赖的方式,取值如下:'."\n" + .'- MANUAL:手动配置。'."\n" + .'- AUTO:自动解析。', + 'type' => 'string', + 'example' => 'MANUAL', + ], + ], + ], + ], + 'OutputList' => [ + 'description' => '文件的输出。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖“选择”同周期“时的”本节点的输出名称”对应。', + 'type' => 'array', + 'items' => [ + 'description' => '文件的输出信息。', + 'type' => 'object', + 'properties' => [ + 'RefTableName' => [ + 'description' => '文件的输出值。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖“选择”同周期“时的“本节点的输出表”列的值对应。', + 'type' => 'string', + 'example' => 'ods_user_info_d', + ], + 'Output' => [ + 'description' => '文件的输出名称。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖“选择”同周期“时的“本节点的输出名称”列值对应。', + 'type' => 'string', + 'example' => 'dw_project.002_out', + ], + ], + ], + ], + 'StartImmediately' => [ + 'description' => '发布后是否立即启动。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,EMR Spark Streaming和EMR Streaming SQL数据开发任务,编辑页面右侧导航栏的“配置>时间属性>启动方式“对应。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'InputParameters' => [ + 'description' => '节点上下文输入参数。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输入参数“对应。', + 'type' => 'array', + 'items' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'ParameterName' => [ + 'description' => '节点上下文输入参数的参数名称。在代码中可以使用${...}方式引用该参数。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输入参数“的”参数名“对应。', + 'type' => 'string', + 'example' => 'input', + ], + 'ValueSource' => [ + 'description' => '节点上下文输入参数的取值来源。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输入参数“的”取值来源“对应。', + 'type' => 'string', + 'example' => 'project_001.parent_node:outputs', + ], + ], + ], + ], + 'OutputParameters' => [ + 'description' => '节点上下文输出参数。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输出参数“对应。', + 'type' => 'array', + 'items' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'ParameterName' => [ + 'description' => '节点上下文输出参数的参数名称。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输出参数“的”参数名“对应。', + 'type' => 'string', + 'example' => 'output', + ], + 'Value' => [ + 'description' => '节点上下文输出参数的表达式。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输出参数“的”取值“对应。', + 'type' => 'string', + 'example' => '${bizdate}', + ], + 'Type' => [ + 'description' => '节点上下文输出参数表达式的类型。取值如下:'."\n" + .'- 1:表示常量。'."\n" + .'- 2:表示变量。'."\n" + .'- 3:表示参数节点透传变量。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>节点上下文>本节点输出参数“的”类型“对应。', + 'type' => 'string', + 'example' => '1', + ], + 'Description' => [ + 'description' => '节点上下文输出的参数描述。', + 'type' => 'string', + 'example' => 'It\'s a context output parameter.', + ], + ], + ], + ], + 'ApplyScheduleImmediately' => [ + 'description' => '是否发布后立即生效调度配置', + 'type' => 'string', + 'example' => 'true', + ], + 'IgnoreParentSkipRunningProperty' => [ + 'description' => '调度配置->上一周期->是否跳过上游的空跑属性', + 'type' => 'string', + 'example' => 'true', + ], + 'Timeout' => [ + 'description' => '调度配置超时定义', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ImageId' => [ + 'description' => '自定义镜像ID', + 'type' => 'string', + 'example' => 'm-bp1h4b5a8ogkbll2f3tr', + ], + ], + ], + 'ResourceDownloadLink' => [ + 'description' => '资源下载地址', + 'type' => 'object', + 'properties' => [ + 'downloadLink' => [ + 'description' => '资源下载地址链接', + 'type' => 'string', + 'example' => 'http://xx', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"File\\": {\\n \\"CommitStatus\\": 0,\\n \\"AutoParsing\\": true,\\n \\"Owner\\": \\"7775674356****\\",\\n \\"CreateTime\\": 1593879116000,\\n \\"FileType\\": 10,\\n \\"CurrentVersion\\": 3,\\n \\"BizId\\": 1000001,\\n \\"LastEditUser\\": \\"62465892****\\",\\n \\"FileName\\": \\"ods_user_info_d\\",\\n \\"ConnectionName\\": \\"odps_source\\",\\n \\"UseType\\": \\"NORMAL\\",\\n \\"FileFolderId\\": \\"2735c2****\\",\\n \\"ParentId\\": -1,\\n \\"CreateUser\\": \\"424732****\\",\\n \\"IsMaxCompute\\": true,\\n \\"BusinessId\\": 1000001,\\n \\"FileDescription\\": \\"My first DataWorks file\\",\\n \\"DeletedStatus\\": \\"RECYCLE\\",\\n \\"LastEditTime\\": 1593879116000,\\n \\"Content\\": \\"SHOW TABLES;\\",\\n \\"NodeId\\": 300001,\\n \\"AdvancedSettings\\": \\"{\\\\\\\\\\\\\\"priority\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"ENABLE_SPARKSQL_JDBC\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"FLOW_SKIP_SQL_ANALYZE\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"queue\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\"}\\",\\n \\"FileId\\": 100000001\\n },\\n \\"NodeConfiguration\\": {\\n \\"RerunMode\\": \\"ALL_ALLOWED\\",\\n \\"SchedulerType\\": \\"NORMAL\\",\\n \\"Stop\\": false,\\n \\"ParaValue\\": \\"a=x b=y\\",\\n \\"StartEffectDate\\": 936923400000,\\n \\"EndEffectDate\\": 4155787800000,\\n \\"CycleType\\": \\"DAY\\",\\n \\"DependentNodeIdList\\": \\"5,10,15,20\\",\\n \\"ResourceGroupId\\": 375827434852437,\\n \\"DependentType\\": \\"USER_DEFINE\\",\\n \\"AutoRerunTimes\\": 3,\\n \\"AutoRerunIntervalMillis\\": 120000,\\n \\"CronExpress\\": \\"00 05 00 * * ?\\",\\n \\"InputList\\": [\\n {\\n \\"Input\\": \\"project.001_out\\",\\n \\"ParseType\\": \\"MANUAL\\"\\n }\\n ],\\n \\"OutputList\\": [\\n {\\n \\"RefTableName\\": \\"ods_user_info_d\\",\\n \\"Output\\": \\"dw_project.002_out\\"\\n }\\n ],\\n \\"StartImmediately\\": true,\\n \\"InputParameters\\": [\\n {\\n \\"ParameterName\\": \\"input\\",\\n \\"ValueSource\\": \\"project_001.parent_node:outputs\\"\\n }\\n ],\\n \\"OutputParameters\\": [\\n {\\n \\"ParameterName\\": \\"output\\",\\n \\"Value\\": \\"${bizdate}\\",\\n \\"Type\\": \\"1\\",\\n \\"Description\\": \\"It\'s a context output parameter.\\"\\n }\\n ],\\n \\"ApplyScheduleImmediately\\": \\"true\\",\\n \\"IgnoreParentSkipRunningProperty\\": \\"true\\",\\n \\"Timeout\\": 1,\\n \\"ImageId\\": \\"m-bp1h4b5a8ogkbll2f3tr\\"\\n },\\n \\"ResourceDownloadLink\\": {\\n \\"downloadLink\\": \\"http://xx\\"\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n \\n 0\\n true\\n 7775674356****\\n 1593879116000\\n 10\\n 3\\n 1000001\\n 62465892****\\n ods_user_info_d\\n odps_source\\n NORMAL\\n 2735c2****\\n -1\\n 424732****\\n true\\n 1000001\\n 我的第一个Dataworks文件\\n RECYCLE\\n 1593879116000\\n SHOW TABLES;\\n 300001\\n {\\"queue\\":\\"default\\",\\"SPARK_CONF\\":\\"--conf spark.driver.memory=2g\\"}\\n 100000001\\n \\n \\n ALL_ALLOWED\\n NORMAL\\n false\\n a=x b=y\\n 936923400000\\n 4155787800000\\n DAY\\n 5,10,15,20\\n 375827434852437\\n USER_DEFINE\\n 3\\n 120000\\n 00 05 00 * * ?\\n \\n project.001_out\\n MANUAL\\n \\n \\n ods_user_info_d\\n dw_project.002_out\\n \\n true\\n \\n input\\n project_001.parent_node:outputs\\n \\n \\n output\\n ${bizdate}\\n 1\\n It\'s a context output parameter.\\n \\n \\n \\n","errorExample":""}]', + 'title' => '获取文件的详情', + 'summary' => '该接口用于获取文件的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListFolders' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78313', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'ParentFolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '父文件夹的路径。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'Business_process/my_first_business_process/MaxCompute', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的数据条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '100', + 'minimum' => '0', + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '满足条件的文件夹的列表信息。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前数据页的页码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '当前数据页的数据条数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '满足查询条件的数据总条数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '13', + ], + 'Folders' => [ + 'description' => '文件夹的列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FolderPath' => [ + 'description' => '文件夹的路径。', + 'type' => 'string', + 'example' => 'Business_process/my_first_business_process/MaxCompute/ods_layer', + ], + 'FolderId' => [ + 'description' => '文件夹的ID。', + 'type' => 'string', + 'example' => '2735c2****', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 13,\\n \\"Folders\\": [\\n {\\n \\"FolderPath\\": \\"Business_process/my_first_business_process/MaxCompute/ods_layer\\",\\n \\"FolderId\\": \\"2735c2****\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\n\\n 13\\n 10\\n 1\\n \\n 业务流程/我的第一个业务流程/MaxCompute/ods层\\n 2735c2****\\n \\n\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '查询文件夹的列表', + 'summary' => '调用ListFolders查询文件夹的列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeployFile' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78223', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的ID,您可以通过[ListFiles](~~173942~~)查询对应文件的ID。'."\n" + .'该参数与NodeId参数配置一个即可。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'example' => '10000022', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => [ + 'description' => '本次发布的说明信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'First release task', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '待发布文件在调度系统对应的任务ID。该参数与FileId参数配置一个即可。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '2000001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回的数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '发布包的ID,后续需要将该ID作为参数调用[GetDeployment](~~173950~~)接口,获取本次发布的具体情况。 '."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '30000001', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 30000001,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 30000001\\n 0000-ABCD-EFG****\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n","errorExample":""}]', + 'title' => '部署文件', + 'summary' => '发布文件至生产环境。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateUdfFile' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78387', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'FileFolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数文件所在文件夹的路径。'."\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'Business_process/First_Business_Process/function/string_processing_function', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID,您可以单击页面右上角的小扳手图标,进入工作空间管理页面查看。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'FunctionType', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数的分类,对应创建函数表单中的函数类型,包括MATH(数学运算函数)、AGGREGATE(聚合函数)、STRING(字符串处理函数)、DATE(日期处理函数)、ANALYTIC(窗口函数)和OTHER(其他函数)。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'STRING', + 'enum' => [ + 'MATH', + 'AGGREGATE', + 'STRING', + 'DATE', + 'ANALYTIC', + 'OTHER', + ], + ], + ], + [ + 'name' => 'ClassName', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数定义所在的类名,对应创建函数表单的类名。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'com.alibaba.DataWorks.api.udf.StringConcat', + ], + ], + [ + 'name' => 'Resources', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数引用的资源名列表,使用英文逗号(,)分隔,对应创建函数表单中的资源列表。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'string-concat-1.0.0.jar,commons-lang-2.6.jar', + ], + ], + [ + 'name' => 'UdfDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数用途的说明,对应创建函数表单中的描述。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'Concatenate several strings to generate a new string', + ], + ], + [ + 'name' => 'CmdDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数的调用命令格式,对应创建函数表单中的命令格式。', + 'type' => 'string', + 'required' => false, + 'example' => 'StringConcat(String... substrs)', + ], + ], + [ + 'name' => 'ParameterDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数入参的说明,对应创建函数表单中的参数说明。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'List of strings to be connected', + 'default' => 'ALL_ALLOWED', + 'enum' => [ + 'ALL_ALLOWD', + 'FAILURE_ALLOWED', + 'ALL_DENIED', + ], + ], + ], + [ + 'name' => 'ReturnValue', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数的返回值说明,对应创建函数表单中的返回值。', + 'type' => 'string', + 'required' => false, + 'example' => 'New strings generated by concatenating all strings before and after the input order', + 'default' => 'false', + ], + ], + [ + 'name' => 'Example', + 'in' => 'formData', + 'schema' => [ + 'description' => '函数的调用示例,对应创建函数表单中的示例。', + 'type' => 'string', + 'required' => false, + 'example' => 'StringConcat(\'a\', \'b\', \'c\')', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的唯一标识符,即数据开发页面顶部切换工作空间处的英文标识。'."\n" + ."\n" + .'该参数与ProjectId参数二者必须设置其一,以确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1000000112', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\ntrue","errorExample":""}]', + 'title' => '更新函数的文件信息', + 'summary' => '调用UpdateUdfFile更新函数的文件信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetBusiness' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78232', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'BusinessId', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的ID,您可以调用[ListBusiness](~~173945~~)接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1000000111', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '业务流程的详情。', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '业务流程责任人的阿里云用户ID。', + 'type' => 'string', + 'example' => '20000****', + ], + 'Description' => [ + 'description' => '业务流程的描述信息。', + 'type' => 'string', + 'example' => 'This is my first business process.', + ], + 'ProjectId' => [ + 'description' => '业务流程所在DataWorks工作空间的ID。', + 'type' => 'string', + 'example' => '10000', + ], + 'BusinessId' => [ + 'description' => '业务流程的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000001', + ], + 'BusinessName' => [ + 'description' => '业务流程的名称。', + 'type' => 'string', + 'example' => 'The first business process', + ], + 'UseType' => [ + 'description' => '业务流程所属的功能模块,包括NORMAL(数据开发)和MANUAL_BIZ(手动业务流程)。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Owner\\": \\"20000****\\",\\n \\"Description\\": \\"This is my first business process.\\",\\n \\"ProjectId\\": \\"10000\\",\\n \\"BusinessId\\": 1000001,\\n \\"BusinessName\\": \\"The first business process\\",\\n \\"UseType\\": \\"NORMAL\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\n\\n 20000****\\n 这是我的第一个业务流程\\n 第一个业务流程\\n NORMAL\\n 10000\\n 1000001\\n\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '查询业务流程的详情', + 'summary' => '调用GetBusiness查询业务流程的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateFolder' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78373', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'FolderId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的ID,您可以调用[ListFolders](~~173955~~)获取文件夹的ID。'."\n" + ."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2735c2c19d58', + ], + ], + [ + 'name' => 'FolderName', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'MySecondFolder', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '更新文件夹的信息', + 'summary' => '调用UpdateFolder更新文件夹的信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListDeployments' => [ + 'summary' => '查询发布包列表信息。该功能与DataWorks控制台任务发布页面的发布包列表功能对应。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '100712', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间名称。'."\n" + ."\n" + .'该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'Creator', + 'in' => 'formData', + 'schema' => [ + 'description' => '发布包创建者的阿里云用户ID。', + 'type' => 'string', + 'required' => false, + 'example' => '20030****', + ], + ], + [ + 'name' => 'EndCreateTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '生成发布包的最大毫秒时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1593877765000', + ], + ], + [ + 'name' => 'Executor', + 'in' => 'formData', + 'schema' => [ + 'description' => '发布包执行者的阿里云用户ID。', + 'type' => 'string', + 'required' => false, + 'example' => '2003****', + ], + ], + [ + 'name' => 'EndExecuteTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '发布包开始执行的最大毫秒时间戳。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1593877765000', + ], + ], + [ + 'name' => 'Status', + 'in' => 'formData', + 'schema' => [ + 'description' => '发布包当前的状态。取值如下:'."\n" + .'- 0:发布包已准备就绪。'."\n" + .'- 1:发布包发布成功。'."\n" + .'- 2:发布包发布失败。'."\n" + .'- 6:发布包被驳回。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'formData', + 'schema' => [ + 'description' => '发布包名称的关键字。DataWorks支持模糊匹配,即输入关键字,即可查询包含该关键字的发布包。', + 'type' => 'string', + 'required' => false, + 'example' => 'hello', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'example' => '20', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG', + ], + 'Data' => [ + 'description' => '满足查询条件的发布包列表数据。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的数据条数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '满足条件的数据总条数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '13', + ], + 'Deployments' => [ + 'description' => '返回的发布包列表。', + 'type' => 'array', + 'items' => [ + 'description' => '发布包的详细信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '发布包当前的状态。取值如下:'."\n" + .'- 0:发布包已准备就绪。'."\n" + .'- 1:发布包发布成功。'."\n" + .'- 2:发布包发布失败。'."\n" + .'- 6:发布包被驳回。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ErrorMessage' => [ + 'description' => '当发布包执行失败,该参数用于记录错误信息。', + 'type' => 'string', + 'example' => 'OK', + ], + 'CreateTime' => [ + 'description' => '发布包创建的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593877765000', + ], + 'Executor' => [ + 'description' => '发布包执行者的阿里云用户ID。', + 'type' => 'string', + 'example' => '2003****', + ], + 'Creator' => [ + 'description' => '发布包创建者的阿里云用户ID。', + 'type' => 'string', + 'example' => '2003****', + ], + 'ExecuteTime' => [ + 'description' => '执行发布包的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593877765000', + ], + 'Name' => [ + 'description' => '发布包的名称。', + 'type' => 'string', + 'example' => 'auto_created', + ], + 'Id' => [ + 'description' => '发布包的ID,您可以根据此ID调用[GetDeployment](~~173950~~)接口,获取发布包详情。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11111', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 13,\\n \\"Deployments\\": [\\n {\\n \\"Status\\": 1,\\n \\"ErrorMessage\\": \\"OK\\",\\n \\"CreateTime\\": 1593877765000,\\n \\"Executor\\": \\"2003****\\",\\n \\"Creator\\": \\"2003****\\",\\n \\"ExecuteTime\\": 1593877765000,\\n \\"Name\\": \\"auto_created\\",\\n \\"Id\\": 11111\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG\\n \\n 1\\n 10\\n 13\\n \\n 1\\n OK\\n 1593877765000\\n 2003****\\n 2003****\\n 1593877765000\\n auto_created\\n 11111\\n \\n \\n","errorExample":""}]', + 'title' => '查询发布包列表信息', + ], + 'UpdateIDEEventResult' => [ + 'summary' => '用于在数据开发过程中触发扩展点时,通过将扩展程序对扩展点事件的检查结果返回给数据开发系统。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '101717', + 'abilityTreeNodes' => [ + 'FEATUREdide6ZPSGN', + ], + ], + 'parameters' => [ + [ + 'name' => 'MessageId', + 'in' => 'formData', + 'schema' => [ + 'title' => '消息UUID', + 'description' => 'DataWorks开放消息的消息ID。当触发扩展点事件后,您可以从接收到的事件消息中获取消息ID。'."\n" + ."\n" + .'消息格式,可参考[消息格式](~~215367~~)。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => '8abcb91f-d266-4073-b907-2ed670378ed1', + ], + ], + [ + 'name' => 'ExtensionCode', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展程序的唯一标识。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入开放平台的Extensions页签查看标识。', + 'type' => 'string', + 'required' => false, + 'example' => '8abcb91f-d266-4073-b907-2ed670378ed1', + ], + ], + [ + 'name' => 'CheckResult', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展程序对本次扩展点事件的检查状态。取值如下:'."\n" + .'- OK:扩展程序对本次扩展点事件检查通过。'."\n" + .'- FAIL:扩展程序对本次扩展点事件检查不通过。您需要查看并及时处理报错,以免影响后续程序的正常执行。'."\n" + .'- WARN:扩展程序对本次扩展点事件检查通过,但存在警告。', + 'type' => 'string', + 'required' => false, + 'example' => 'OK', + ], + ], + [ + 'name' => 'CheckResultTip', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展程序对本次扩展点事件进行检查的摘要信息。该信息会显示在您当前的开发页面上,当本次检查存在警告或者检查不通过时,您可以通过该摘要信息快速定位原因。', + 'type' => 'string', + 'required' => false, + 'example' => 'Succeeded', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的唯一标识,用于后续错误排查使用。', + 'type' => 'string', + 'example' => '8abcb91f-d266-4073-b907-2ed670378ed1', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"8abcb91f-d266-4073-b907-2ed670378ed1\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 8abcb91f-d266-4073-b907-2ed670378ed1\\n","errorExample":""}]', + 'title' => '更新扩展点事件的检查结果', + 'description' => "\n", + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetIDEEventDetail' => [ + 'summary' => '根据DataWorks开放消息的消息ID,查询触发扩展点事件时的扩展点数据快照。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '101710', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'MessageId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks开放消息的消息ID。当触发扩展点事件后,您可以从接收到的事件消息中获取消息ID。'."\n" + ."\n" + .'消息格式,可参考[消息格式](~~215367~~)。'."\n", + 'type' => 'string', + 'required' => true, + 'example' => '8abcb91f-d266-4073-b907-2ed67****1', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID,您可以通过解析DataWorks开放消息获取空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的唯一标识,用于后续错误排查使用。', + 'type' => 'string', + 'example' => '8abcb91f-d266-4073-b907-2ed670378ed1', + ], + 'EventDetail' => [ + 'description' => '触发扩展点事件时的数据快照。'."\n" + ."\n" + .'不同类型的消息事件,数据快照的有效字段存在差异,具体请参考各消息事件的字段说明。', + 'type' => 'object', + 'properties' => [ + 'FileExecutionCommand' => [ + 'description' => '文件代码执行时的快照,当Message类型为IDE_FILE_EXECUTE_BEFORE时有效。', + 'type' => 'object', + 'properties' => [ + 'FileId' => [ + 'description' => '文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234123', + ], + 'DataSourceName' => [ + 'description' => '文件关联的数据源唯一标识。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'Content' => [ + 'description' => '生成本次文件版本的文件代码。', + 'type' => 'string', + 'example' => 'SHOW TABLES;', + ], + 'FileType' => [ + 'description' => '文件类型。不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + ], + ], + 'DeletedFile' => [ + 'description' => '删除文件时的快照信息,当Message类型为IDE_FILE_DELETE_BEFORE时有效。', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '文件责任人。', + 'type' => 'string', + 'example' => '7384234****', + ], + 'FileType' => [ + 'description' => '文件类型。不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'CurrentVersion' => [ + 'description' => '当前文件的最新版本。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'BusinessId' => [ + 'description' => '文件所属的业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '74328', + ], + 'FileName' => [ + 'description' => '文件名称。', + 'type' => 'string', + 'example' => 'hello_dataworks.sql', + ], + 'DataSourceName' => [ + 'description' => '文件关联的数据源唯一标识。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'UseType' => [ + 'description' => '文件所属的功能模块。取值如下:'."\n" + .'- NORMAL:数据开发'."\n" + .'- MANUAL:手动任务'."\n" + .'- MANUAL_BIZ:手动业务流程'."\n" + .'- SKIP:数据开发的空跑调度'."\n" + .'- ADHOCQUERY:临时查询'."\n" + .'- COMPONENT:组件管理', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'FolderId' => [ + 'description' => '文件所属的文件夹ID,您可以调用[GetFolder](~~173952~~)接口,通过文件夹ID查询文件详情。', + 'type' => 'string', + 'example' => 'aldurie78l2falure', + ], + 'ParentFileId' => [ + 'description' => '文件所属的循环节点或遍历节点的节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234122', + ], + 'Content' => [ + 'description' => '生成本次文件版本的文件代码。', + 'type' => 'string', + 'example' => 'SHOW TABLES;', + ], + 'NodeId' => [ + 'description' => '调度节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '421429', + ], + 'FileId' => [ + 'description' => '文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234123', + ], + ], + ], + 'CommittedFile' => [ + 'description' => '文件提交和发布时的快照。'."\n" + ."\n" + .'仅当Message类型为IDE_FILE_SUBMIT_BEFORE或IDE_FILE_DEPLOY_BEFORE时有效。', + 'type' => 'object', + 'properties' => [ + 'FileId' => [ + 'description' => '文件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234123', + ], + 'Content' => [ + 'description' => '生成本次文件版本的文件代码。', + 'type' => 'string', + 'example' => 'SHOW TABLES;', + ], + 'Committor' => [ + 'description' => '生成本次文件版本的阿里云用户ID。', + 'type' => 'string', + 'example' => '7384234****', + ], + 'FileType' => [ + 'description' => '文件类型。不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'ChangeType' => [ + 'description' => '本次文件版本的变更类型,包括CREATE、UPDATE和DELETE。', + 'type' => 'string', + 'example' => 'UPDATE', + ], + 'FileName' => [ + 'description' => '文件名称。', + 'type' => 'string', + 'example' => 'hello_dataworks.sql', + ], + 'NodeId' => [ + 'description' => '调度节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '421429', + ], + 'Comment' => [ + 'description' => '本次文件版本的说明。', + 'type' => 'string', + 'example' => 'Second version submission', + ], + 'UseType' => [ + 'description' => '文件所属的功能模块。取值如下:'."\n" + .'- NORMAL:数据开发'."\n" + .'- MANUAL:手动任务'."\n" + .'- MANUAL_BIZ:手动业务流程'."\n" + .'- SKIP:数据开发的空跑调度'."\n" + .'- ADHOCQUERY:临时查询'."\n" + .'- COMPONENT:组件管理', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'FilePropertyContent' => [ + 'description' => '文件的更多属性。', + 'type' => 'object', + 'properties' => [ + 'DataSourceName' => [ + 'description' => '文件关联的数据源唯一标识。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'ParentFileId' => [ + 'description' => '文件所属的循环节点或遍历节点的节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234122', + ], + 'BusinessId' => [ + 'description' => '文件所属的业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '74328', + ], + 'CurrentVersion' => [ + 'description' => '当前文件的最新版本。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'Owner' => [ + 'description' => '文件责任人。', + 'type' => 'string', + 'example' => '7384234****', + ], + 'FolderId' => [ + 'description' => '文件所属的文件夹ID,您可以调用[GetFolder](~~173952~~)接口,通过文件夹ID查询文件详情。', + 'type' => 'string', + 'example' => 'aldurie78l2falure', + ], + ], + ], + 'NodeConfiguration' => [ + 'description' => '文件的调度属性配置。', + 'type' => 'object', + 'properties' => [ + 'RerunMode' => [ + 'description' => '重跑属性。取值如下:'."\n" + .'- ALL_ALLOWED:运行成功或失败后皆可重跑。'."\n" + .'- FAILURE_ALLOWED:运行成功后不可重跑,运行失败后可以重跑。'."\n" + .'- ALL_DENIED:运行成功或失败皆不可重跑。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>重跑属性”配置内容对应。', + 'type' => 'string', + 'example' => 'ALL_ALLOWED', + ], + 'SchedulerType' => [ + 'description' => '调度的类型,取值如下:'."\n" + .'- NORMAL:正常调度任务。'."\n" + .'- MANUAL:手动任务,不会被日常调度,对应手动业务流程下的节点。'."\n" + .'- PAUSE:暂停任务。'."\n" + .'- SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'ParaValue' => [ + 'description' => '调度参数。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>参数”对应。您可以参考[调度参数](~~137548~~)配置。', + 'type' => 'string', + 'example' => 'a=x b=y', + ], + 'CycleType' => [ + 'description' => '调度周期的类型,包括NOT_DAY(分钟、小时)和DAY(日、周、月)。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>时间属性>调度周期”对应。', + 'type' => 'string', + 'example' => 'DAY', + ], + 'DependentNodeIdList' => [ + 'description' => '当DependentType参数配置为USER_DEFINE时,用于设置当前文件具体依赖的节点ID。依赖多个节点时,使用英文逗号(,)分隔。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖>跨周期依赖(原上一周期)”,依赖项选择”其他节点“时配置的内容对应。', + 'type' => 'string', + 'example' => '5,10,15,20', + ], + 'ResourceGroupId' => [ + 'description' => '文件发布成任务后,任务执行时使用的资源组。您可以调用[ListResourceGroups](~~173913~~)获取工作空间可用的资源组列表。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '375827434852437', + ], + 'AutoRerunTimes' => [ + 'description' => '自动重跑次数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3', + ], + 'AutoRerunIntervalMillis' => [ + 'description' => '自动重跑间隔毫秒数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '120000', + ], + 'CronExpress' => [ + 'description' => '调度Cron表达式。', + 'type' => 'string', + 'example' => '00 05 00 * * ?', + ], + 'InputList' => [ + 'description' => '文件依赖的上游文件输出。', + 'type' => 'array', + 'items' => [ + 'description' => '依赖的上游文件输出信息。', + 'type' => 'object', + 'properties' => [ + 'Input' => [ + 'description' => '文件依赖的上游文件的输出名称。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖>依赖上游节点“的”上游节点输出名”对应。', + 'type' => 'string', + 'example' => 'dw_project_root', + ], + 'ParseType' => [ + 'description' => '配置文件依赖的方式,取值如下:'."\n" + .'- MANUAL:手动配置。'."\n" + .'- AUTO:自动解析。', + 'type' => 'string', + 'example' => 'MANUAL', + ], + ], + ], + ], + 'OutputList' => [ + 'description' => '文件的输出。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖>本节点输出名称“对应。', + 'type' => 'array', + 'items' => [ + 'description' => '文件的输出信息。', + 'type' => 'object', + 'properties' => [ + 'RefTableName' => [ + 'description' => '文件的输出表名。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖>本节点输出名称“的“输出表名”对应。', + 'type' => 'string', + 'example' => 'ods_user_info_d', + ], + 'Output' => [ + 'description' => '文件的输出名称。'."\n" + ."\n" + .'该参数与[DataWorks控制台](https://workbench.data.aliyun.com/console)中,数据开发任务的“调度配置>调度依赖>本节点输出名称“的“输出名”对应。', + 'type' => 'string', + 'example' => 'dw_project.002_out', + ], + ], + ], + ], + 'DependentType' => [ + 'description' => '依赖上一周期的方式。取值如下:'."\n" + .'- SELF:依赖项选择本节点。'."\n" + .'- CHILD:依赖项选择一级子节点。'."\n" + .'- USER_DEFINE:依赖项选择其他节点。'."\n" + .'- NONE:未选择依赖项,即不会依赖上一周期。'."\n", + 'type' => 'string', + 'example' => 'USER_DEFINE', + ], + ], + ], + ], + ], + 'TableModel' => [ + 'description' => '表提交和发布时的快照,当Message类型为IDE_TABLE_SUBMIT_BEFORE和IDE_TABLE_DEPLOY_BEFORE时有效。', + 'type' => 'object', + 'properties' => [ + 'Env' => [ + 'description' => '表所属环境。取值如下:'."\n" + .'- DEV:开发环境。'."\n" + .'- PROD:生产环境。', + 'type' => 'string', + 'example' => 'DEV', + ], + 'LifeCycle' => [ + 'description' => '表的生命周期。单位为天。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '7', + ], + 'TableName' => [ + 'description' => '表名称。', + 'type' => 'string', + 'example' => 'tb_hello', + ], + 'DataSourceName' => [ + 'description' => '表所属数据源的唯一标识。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'Columns' => [ + 'description' => '字段列表。', + 'type' => 'array', + 'items' => [ + 'description' => '字段信息。', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '字段名称。', + 'type' => 'string', + 'example' => 'ID', + ], + 'ColumnType' => [ + 'description' => '字段类型。', + 'type' => 'string', + 'example' => 'BIGINT', + ], + 'IsPartitionColumn' => [ + 'description' => '是否为分区字段,取值如下:'."\n" + .'- true:是分区字段。'."\n" + .'- false:非分区字段。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Comment' => [ + 'description' => '字段备注。', + 'type' => 'string', + 'example' => 'ID', + ], + ], + ], + ], + 'Comment' => [ + 'description' => '表的备注信息。', + 'type' => 'string', + 'example' => 'A new table', + ], + 'Location' => [ + 'description' => '外部表的Location信息。', + 'type' => 'string', + 'example' => 'hdfs://path/to/object', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"8abcb91f-d266-4073-b907-2ed670378ed1\\",\\n \\"EventDetail\\": {\\n \\"FileExecutionCommand\\": {\\n \\"FileId\\": 1234123,\\n \\"DataSourceName\\": \\"odps_source\\",\\n \\"Content\\": \\"SHOW TABLES;\\",\\n \\"FileType\\": 10\\n },\\n \\"DeletedFile\\": {\\n \\"Owner\\": \\"7384234****\\",\\n \\"FileType\\": 10,\\n \\"CurrentVersion\\": 1,\\n \\"BusinessId\\": 74328,\\n \\"FileName\\": \\"hello_dataworks.sql\\",\\n \\"DataSourceName\\": \\"odps_source\\",\\n \\"UseType\\": \\"NORMAL\\",\\n \\"FolderId\\": \\"aldurie78l2falure\\",\\n \\"ParentFileId\\": 1234122,\\n \\"Content\\": \\"SHOW TABLES;\\",\\n \\"NodeId\\": 421429,\\n \\"FileId\\": 1234123\\n },\\n \\"CommittedFile\\": {\\n \\"FileId\\": 1234123,\\n \\"Content\\": \\"SHOW TABLES;\\",\\n \\"Committor\\": \\"7384234****\\",\\n \\"FileType\\": 10,\\n \\"ChangeType\\": \\"UPDATE\\",\\n \\"FileName\\": \\"hello_dataworks.sql\\",\\n \\"NodeId\\": 421429,\\n \\"Comment\\": \\"Second version submission\\",\\n \\"UseType\\": \\"NORMAL\\",\\n \\"FilePropertyContent\\": {\\n \\"DataSourceName\\": \\"odps_source\\",\\n \\"ParentFileId\\": 1234122,\\n \\"BusinessId\\": 74328,\\n \\"CurrentVersion\\": 1,\\n \\"Owner\\": \\"7384234****\\",\\n \\"FolderId\\": \\"aldurie78l2falure\\"\\n },\\n \\"NodeConfiguration\\": {\\n \\"RerunMode\\": \\"ALL_ALLOWED\\",\\n \\"SchedulerType\\": \\"NORMAL\\",\\n \\"ParaValue\\": \\"a=x b=y\\",\\n \\"CycleType\\": \\"DAY\\",\\n \\"DependentNodeIdList\\": \\"5,10,15,20\\",\\n \\"ResourceGroupId\\": 375827434852437,\\n \\"AutoRerunTimes\\": 3,\\n \\"AutoRerunIntervalMillis\\": 120000,\\n \\"CronExpress\\": \\"00 05 00 * * ?\\",\\n \\"InputList\\": [\\n {\\n \\"Input\\": \\"dw_project_root\\",\\n \\"ParseType\\": \\"MANUAL\\"\\n }\\n ],\\n \\"OutputList\\": [\\n {\\n \\"RefTableName\\": \\"ods_user_info_d\\",\\n \\"Output\\": \\"dw_project.002_out\\"\\n }\\n ],\\n \\"DependentType\\": \\"USER_DEFINE\\"\\n }\\n },\\n \\"TableModel\\": {\\n \\"Env\\": \\"DEV\\",\\n \\"LifeCycle\\": 7,\\n \\"TableName\\": \\"tb_hello\\",\\n \\"DataSourceName\\": \\"odps_source\\",\\n \\"Columns\\": [\\n {\\n \\"ColumnName\\": \\"ID\\",\\n \\"ColumnType\\": \\"BIGINT\\",\\n \\"IsPartitionColumn\\": false,\\n \\"Comment\\": \\"ID\\"\\n }\\n ],\\n \\"Comment\\": \\"A new table\\",\\n \\"Location\\": \\"hdfs://path/to/object\\"\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 8abcb91f-d266-4073-b907-2ed670378ed1\\n \\n \\n 1234123\\n odps_source\\n SHOW TABLES;\\n 10\\n \\n \\n 7384234****\\n 10\\n 1\\n 74328\\n hello_dataworks.sql\\n odps_source\\n NORMAL\\n aldurie78l2falure\\n 1234122\\n SHOW TABLES;\\n 421429\\n 1234123\\n \\n \\n 1234123\\n SHOW TABLES;\\n 7384234****\\n 10\\n UPDATE\\n hello_dataworks.sql\\n 421429\\n 第二次版本提交\\n NORMAL\\n \\n odps_source\\n 1234122\\n 74328\\n 1\\n 7384234****\\n aldurie78l2falure\\n \\n \\n ALL_ALLOWED\\n NORMAL\\n a=x b=y\\n DAY\\n 5,10,15,20\\n 375827434852437\\n 3\\n 120000\\n 00 05 00 * * ?\\n \\n dw_project_root\\n MANUAL\\n \\n \\n ods_user_info_d\\n dw_project.002_out\\n \\n USER_DEFINE\\n \\n \\n \\n DEV\\n 7\\n tb_hello\\n odps_source\\n \\n ID\\n BIGINT\\n false\\n ID\\n \\n 新建的一张表。\\n hdfs://path/to/object\\n \\n \\n","errorExample":""}]', + 'title' => '查询触发扩展点事件时的数据快照', + 'description' => "\n", + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateResourceFile' => [ + 'summary' => '调用CreateResourceFile接口,在数据开发中创建或上传一个资源文件,此API功能与IDE界面中新建资源功能保持一致。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '185133', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + 'FEATUREdideJ3TPTK', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间ID。需要用该参数来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '0', + 'example' => '10111', + ], + ], + [ + 'name' => 'FileFolderPath', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的路径。'."\n" + ."\n", + 'type' => 'string', + 'required' => true, + 'example' => 'Business_process/First_Business_Process/MaxCompute/Folder_1/Folder_2', + ], + ], + [ + 'name' => 'FileName', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'File name', + ], + ], + [ + 'name' => 'FileType', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的代码类型。'."\n" + ."\n" + .'不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。'."\n" + .'您也可以调用[ListFileType](~~212428~~)接口,查询文件的代码类型。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'minimum' => '0', + 'example' => '10', + ], + ], + [ + 'name' => 'FileDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的描述信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'This is a description', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件责任人的阿里云用户ID。如果该参数为空,则默认使用调用者的阿里云用户ID。', + 'type' => 'string', + 'required' => false, + 'example' => '1000000000001', + ], + ], + [ + 'name' => 'Content', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件代码内容,不同代码类型(fileType)的文件,代码格式不同。您可以在运维中心找到对应类型的任务,右键单击查看代码,查看具体的代码格式。', + 'type' => 'string', + 'required' => false, + 'example' => 'SHOW TABLES;', + ], + ], + [ + 'name' => 'ResourceFile', + 'in' => 'formData', + 'schema' => [ + 'description' => 'POP提供的文件上传OSS URL。', + 'type' => 'string', + 'required' => false, + 'example' => 'http://bucketname1.oss-cn-shanghai.aliyuncs.com/example', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'OriginResourceName', + 'in' => 'formData', + 'schema' => [ + 'description' => '原始资源文件的名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'origin_file_name.sql', + ], + ], + [ + 'name' => 'UploadMode', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件资源上传模式。目前仅对MaxCompute的File类型文件生效,取值如下:'."\n" + ."\n" + .'- true:可下载的资源模式。'."\n" + ."\n" + .'- false:在线编辑的文本模式。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'RegisterToCalcEngine', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否将资源同步上传到计算引擎。', + 'type' => 'boolean', + 'required' => true, + 'example' => 'false', + ], + ], + [ + 'name' => 'StorageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '资源文件在计算引擎上的存储路径,目前只有EMR和CDH用到该字段。EMR格式为[oss|hdfs]://path/to/object,CDH默认需要填写为/user/admin/lib。', + 'type' => 'string', + 'required' => false, + 'example' => 'oss://oss-cn-shanghai.aliyuncs.com/emr-test', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '文件创建成功后的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000001', + ], + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": 1000001,\\n \\"RequestId\\": \\"0000-ABCD-EFG\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 1000001\\n 0000-ABCD-EFG\\n","errorExample":""}]', + 'title' => '创建资源文件', + ], + 'CreateDISyncTask' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '93925', + 'abilityTreeNodes' => [ + 'FEATUREdideBP0OJZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '创建的数据集成同步任务的任务类型。'."\n" + .'目前支持使用CreateDISyncTask接口创建数据集成离线同步任务(DI_OFFLINE),实时同步任务(DI_REALTIME)和解决方案(DI_SOLUTION)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_OFFLINE', + ], + ], + [ + 'name' => 'TaskContent', + 'in' => 'formData', + 'schema' => [ + 'description' => '数据集成同步任务的脚本内容。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '{"type":"job","version":"2.0","steps":[{"stepType":"mysql","parameter":{"envType":1,"datasource":"mysql_pub","column":["id","name","create_time","age","score","t_01"],"connection":[{"datasource":"mysql_pub","table":["u_pk"]}],"where":"","splitPk":"id","encoding":"UTF-8"},"name":"Reader","category":"reader"},{"stepType":"odps","parameter":{"partition":"pt=${bizdate}","truncate":true,"datasource":"odps_first","envType":1,"column":["id","name","create_time","age","score","t_01"],"emptyAsNull":false,"tableComment":"null","table":"u_pk"},"name":"Writer","category":"writer"}],"setting":{"executeMode":null,"errorLimit":{"record":""},"speed":{"concurrent":2,"throttle":false}},"order":{"hops":[{"from":"Reader","to":"Writer"}]}}', + 'default' => '', + ], + ], + [ + 'name' => 'TaskParam', + 'in' => 'query', + 'schema' => [ + 'description' => '数据集成同步任务的配置参数。目前支持配置如下参数:'."\n" + .'- FileFolderPath:表示数据集成同步任务的存放路径。'."\n" + .'- ResourceGroup:表示数据集成同步任务所使用的数据集成资源组标识(Identifier)。您可以调用[ListResourceGroups](~~173913~~),获取资源组标识。'."\n" + .'- Cu:表示数据集成同步任务在Serverless资源组上占用的规格,必须是0.5的倍数。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '{"FileFolderPath":"业务流程/XXX/数据集成","ResourceGroup":"Serverless_res_group_XXX_XXXX", "Cu":1.5}', + ], + ], + [ + 'name' => 'TaskName', + 'in' => 'query', + 'schema' => [ + 'description' => '创建的数据集成同步任务的名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'new_di_task', + ], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => [ + 'description' => '幂等参数,该参数可为空。', + 'type' => 'string', + 'required' => false, + 'example' => '0000-ABCD-EFG****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '创建数据集成同步任务的返回结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '创建数据集成同步任务的结果状态。取值如下:'."\n" + .'- success:表示创建任务成功。'."\n" + .'- fail:表示创建任务失败。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '创建数据集成同步任务失败的原因描述,如果成功,该字段为空,如果不成功,实例如下"不合法的目录路径:业务流程/xxxx/数据集成",'."\n", + 'type' => 'string', + 'example' => '不合法的目录路径:业务流程/xxxx/数据集成', + ], + 'FileId' => [ + 'description' => '成功创建的数据集成同步任务的任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000001', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + [ + 'errorCode' => 'Invalid.DI.Parameter.File.Existed', + 'errorMessage' => 'The file name already exists.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"不合法的目录路径:业务流程/xxxx/数据集成\\",\\n \\"FileId\\": 1000001\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n success\\n 1000001\\n \\n","errorExample":""}]', + 'title' => '创建数据集成同步任务', + 'summary' => '调用CreateDISyncTask创建数据集成同步任务。', + 'description' => 'CreateDISyncTask接口无法指定调度属性,若想配置调度属性,可使用[UpdataFile](~~2780137~~)接口。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteDISyncTask' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数用于确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据集成同步任务的类型。'."\n" + .'当前仅支持取值为DI_REALTIME,表示实时数据同步任务。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_REALTIME', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => [ + 'description' => '实时数据同步任务的ID。您可以调用[ListFiles](~~173942~~)接口获取任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '1', + 'example' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:请求成功。'."\n" + .'- false:请求失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '删除数据集成同步任务的结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '删除数据集成同步任务的结果状态。取值如下:'."\n" + .'- success:表示删除数据集成同步任务成功。'."\n" + .'- fail:表示删除数据集成同步任务失败。您可以查看具体的失败原因处理问题。', + 'type' => 'string', + 'example' => 'fail', + ], + 'Message' => [ + 'description' => '删除数据集成同步任务失败后的原因描述。'."\n" + .'如果删除数据集成同步任务成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'fileId:[100] is invalid.', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Param.Invalid', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"fail\\",\\n \\"Message\\": \\"fileId:[100] is invalid.\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n fail\\n fileId:[100] is invalid.\\n \\n","errorExample":""}]', + 'title' => '删除数据集成同步任务', + 'summary' => '调用DeleteDISyncTask接口,删除数据集成同步任务。当前仅支持使用该接口删除实时数据同步任务。', + 'description' => '如果您希望删除离线数据同步任务,请使用DeleteFile接口,具体操作流程请参考[删除同步任务](~~321443~~)。', + ], + 'UpdateDISyncTask' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78371', + 'abilityTreeNodes' => [ + 'FEATUREdideBP0OJZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '修改的数据集成同步任务的任务类型。'."\n" + .'目前仅支持使用UpdateDISyncTask接口修改数据集成离线同步任务(DI_OFFLINE)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_OFFLINE', + ], + ], + [ + 'name' => 'TaskContent', + 'in' => 'query', + 'schema' => [ + 'description' => '更新已创建的数据集成同步任务通过脚本模式配置的任务内容。详情请参见[通过脚本模式配置任务](~~137717~~)。当前仅支持通过UpdateDISyncTask接口更新数据集成离线同步任务。如果您无需更新数据集成同步任务的配置内容,则可将该参数置为空。'."\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '{"type":"job","version":"2.0","steps":[{"stepType":"mysql","parameter":{"envType":1,"datasource":"mysql_pub","column":["id","name","create_time","age","score","t_01"],"connection":[{"datasource":"mysql_pub","table":["u_pk"]}],"where":"","splitPk":"id","encoding":"UTF-8"},"name":"Reader","category":"reader"},{"stepType":"odps","parameter":{"partition":"pt=${bizdate}","truncate":true,"datasource":"odps_source","envType":1,"column":["id","name","create_time","age","score","t_01"],"emptyAsNull":false,"tableComment":"null","table":"u_pk"},"name":"Writer","category":"writer"}],"setting":{"executeMode":null,"errorLimit":{"record":""},"speed":{"concurrent":2,"throttle":false}},"order":{"hops":[{"from":"Reader","to":"Writer"}]}}', + 'default' => '', + ], + ], + [ + 'name' => 'TaskParam', + 'in' => 'query', + 'schema' => [ + 'description' => '更新数据集成同步任务的配置参数,使用JSON格式。'."\n" + ."\n" + .'- ResourceGroup:表示数据集成同步任务所使用的数据集成资源组标识(Identifier)。您可以调用[ListResourceGroups](~~173913~~),获取资源组标识。'."\n" + .'- Cu:表示数据集成同步任务在Serverless资源组上占用的规格,必须是0.5的倍数。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '{"ResourceGroup":"Serverless_res_group_XXX_XXXX", "Cu":1.5}', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => [ + 'description' => '需要更新的数据集成同步任务的任务ID。您可以调用[ListFiles](~~173942~~)接口获取同步任务的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '1000000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '更新数据集成同步任务的返回结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '更新数据集成同步任务的结果状态。取值如下:'."\n" + .'- success:表示更新数据集成同步任务成功。'."\n" + .'- fail:表示更新数据集成同步任务失败。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '更新数据集成同步任务失败后的原因描述。如果更新数据集成同步任务成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'ResourceGroup:[S_res_group_XXX] is invalid.', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"ResourceGroup:[S_res_group_XXX] is invalid.\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"0bc1411515937635973****\\n\\n success\\n ResourceGroup:[S_res_group_XXX] is invalid.\\n\\ntrue","errorExample":""}]', + 'title' => '更新同步任务', + 'summary' => '更新数据集成同步任务。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'TestNetworkConnection' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78363', + 'abilityTreeNodes' => [ + 'FEATUREdideRWC5F7', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所在的DataWorks工作空间ID。您可以调用[ListProjects](~~178393~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '100001', + ], + ], + [ + 'name' => 'DatasourceName', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'mysql_name', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所属的环境。取值如下:'."\n" + .'- 0:开发环境。'."\n" + .'- 1:生产环境。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'ResourceGroup', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所使用的资源组的标识(Identifier)。您可以调用[ListResourceGroups](~~173913~~)接口获取资源组的标识(Identifier)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'S_res_group_2XXXX4_1619100XXXXX', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。用于出现错误后定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG ', + ], + 'TaskList' => [ + 'description' => '测试数据源与资源组网络连通性的返回结果。', + 'type' => 'object', + 'properties' => [ + 'ConnectMessage' => [ + 'description' => '测试目标数据源与其所使用资源组的网络连通性失败后的原因描述。如果数据源与资源组网络连通性测试成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'Connectable', + ], + 'ConnectStatus' => [ + 'description' => '测试目标数据源与其所使用资源组网络连通性的结果状态。取值如下:'."\n" + .'- true:表示目标数据源与其所使用资源组的网络连通成功。'."\n" + .'- false:表示目标数据源与其所使用资源组的网络连通失败。您可以查看ConnectMessage参数定位失败原因。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0000-ABCD-EFG\\\\t\\",\\n \\"TaskList\\": {\\n \\"ConnectMessage\\": \\"Connectable\\",\\n \\"ConnectStatus\\": true\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG\\t\\n\\n true\\n 可连通\\n\\ntrue","errorExample":""}]', + 'title' => '测试数据源网络连通性', + 'summary' => '测试目标数据源与所使用资源组的网络连通性。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetDataSourceMeta' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'DatasourceName', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'mysql_name', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的数据条数。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '10000', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所属的环境。取值如下:'."\n" + .'- 0:开发环境。'."\n" + .'- 1:生产环境。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。用于出现错误后定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG ', + ], + 'Data' => [ + 'description' => '获取目标数据源Meta信息的返回的结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '获取目标数据源Meta信息的结果状态。取值如下:'."\n" + .'- success:表示获取目标数据源的Meta信息成功。'."\n" + .'- fail:表示获取目标数据源的Meta信息失败。您可以查看Message参数定位失败原因。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '获取目标数据源Meta信息失败后的原因描述。如果获取目标数据源的Meta信息成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'read datasource time out', + ], + 'Meta' => [ + 'description' => '返回的目标数据源的Meta信息。返回的信息为JSON格式。'."\n" + ."\n" + .'`{"dbTables":[{"dbName":"testdb","schema":[{"tableInfos":[{"dbName":"testdb","enable":true,"table":"table1","tableName":"table1"}]},{"tableInfos":[{"dbName":"testdb","enable":true,"table":"table2","tableName":"table2"}]}]}]}`'."\n" + ."\n" + .'参数描述如下:'."\n" + .'- dbName:数据源所在的数据库名称。'."\n" + .'- schema:数据库所属的模式。'."\n" + .'- enable:数据库是否可用,包含true(表示数据库可用),false(表示数据库不可用)取值。'."\n" + .'- tableName:数据库包含的表名称。'."\n" + .'- tableInfos:数据库中表的信息。', + 'type' => 'string', + 'example' => '{"dbTables":[{"dbName":"testdb","schema":[{"tableInfos":[{"dbName":"testdb","enable":true,"table":"table1","tableName":"table1"}]},{"tableInfos":[{"dbName":"testdb","enable":true,"table":"table2","tableName":"table2"}]}]}]}', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0000-ABCD-EFG\\\\t\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"read datasource time out\\",\\n \\"Meta\\": \\"{\\\\\\"dbTables\\\\\\":[{\\\\\\"dbName\\\\\\":\\\\\\"testdb\\\\\\",\\\\\\"schema\\\\\\":[{\\\\\\"tableInfos\\\\\\":[{\\\\\\"dbName\\\\\\":\\\\\\"testdb\\\\\\",\\\\\\"enable\\\\\\":true,\\\\\\"table\\\\\\":\\\\\\"table1\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"table1\\\\\\"}]},{\\\\\\"tableInfos\\\\\\":[{\\\\\\"dbName\\\\\\":\\\\\\"testdb\\\\\\",\\\\\\"enable\\\\\\":true,\\\\\\"table\\\\\\":\\\\\\"table2\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"table2\\\\\\"}]}]}]}\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0000-ABCD-EFG\\t\\n \\n success\\n read datasource time out\\n {\\"dbTables\\":[{\\"dbName\\":\\"testdb\\",\\"schema\\":[{\\"tableInfos\\":[{\\"dbName\\":\\"testdb\\",\\"enable\\":true,\\"table\\":\\"table1\\",\\"tableName\\":\\"table1\\"}]},{\\"tableInfos\\":[{\\"dbName\\":\\"testdb\\",\\"enable\\":true,\\"table\\":\\"table2\\",\\"tableName\\":\\"table2\\"}]}]}]}\\n \\n","errorExample":""}]', + 'title' => '获取目标数据源的Meta信息', + 'summary' => '调用GetDataSourceMeta获取目标数据源的Meta信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListDIProjectConfig' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '1000', + ], + ], + [ + 'name' => 'DestinationType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据集成同步解决方案任务的目的端数据源。该参数不能为空。'."\n" + .'调用ListDIProjectConfig查看同步解决方案的全局配置目前仅支持配置目的端数据源为analyticdb_for_mysql、odps、elasticsearch、holo、mysql及polardb。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'elasticsearch', + ], + ], + [ + 'name' => 'SourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据集成同步解决方案任务的源端数据源。'."\n" + .'调用ListDIProjectConfig查看同步解决方案的全局配置目前仅支持配置源端数据源为oracle、mysql、polardb、datahub、drds及analyticdb_for_mysql。'."\n" + .'如果不配置源端数据源,则默认全局配置对所有的源端数据源均生效。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'mysql', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。用于出现错误后定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG ', + ], + 'Data' => [ + 'description' => '查看目标工作空间中数据集成同步解决方案任务默认全局配置的返回结果。', + 'type' => 'object', + 'properties' => [ + 'Config' => [ + 'description' => '数据集成同步解决方案任务默认的全局配置内容(即对不同DDL消息类型配置的默认处理策略)。示例如下:'."\n" + .'{"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"}'."\n" + ."\n" + .'DDL消息类型如下:'."\n" + .'- RENAMECOLUMN:重命名列。'."\n" + .'- DROPTABLE:删除表。'."\n" + .'- CREATETABLE:新建表。'."\n" + .'- MODIFYCOLUMN:修改列类型。'."\n" + .'- TRUNCATETABLE:清空表。'."\n" + .'- DROPCOLUMN:删除列。'."\n" + .'- ADDCOLUMN:新增列。'."\n" + .'- RENAMETABLE:重命名表。'."\n" + ."\n" + .'DataWorks收到对应类型的DDL消息时,处理策略如下:'."\n" + .'- WARNING:直接丢弃该消息,同时会在实时同步日志中记录告警信息,指明该消息因执行出错被丢弃。'."\n" + .'- IGNORE:直接丢弃该消息,不再向目的端数据源发送。'."\n" + .'- CRITICAL:实时同步任务直接显示出错状态并终止运行。'."\n" + .'- NORMAL:将相应消息继续下发给目的端数据源,由目的端数据源来处理。因为不同目的端数据源对DDL消息处理策略可能会不同,因此DataWorks只执行转发操作。'."\n", + 'type' => 'string', + 'example' => '{"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"}', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0000-ABCD-EFG\\\\t\\",\\n \\"Data\\": {\\n \\"Config\\": \\"{\\\\\\"RENAMECOLUMN\\\\\\":\\\\\\"WARNING\\\\\\",\\\\\\"DROPTABLE\\\\\\":\\\\\\"WARNING\\\\\\",\\\\\\"CREATETABLE\\\\\\":\\\\\\"WARNING\\\\\\",\\\\\\"MODIFYCOLUMN\\\\\\":\\\\\\"WARNING\\\\\\",\\\\\\"TRUNCATETABLE\\\\\\":\\\\\\"WARNING\\\\\\",\\\\\\"DROPCOLUMN\\\\\\":\\\\\\"WARNING\\\\\\",\\\\\\"ADDCOLUMN\\\\\\":\\\\\\"WARNING\\\\\\",\\\\\\"RENAMETABLE\\\\\\":\\\\\\"WARNING\\\\\\"}\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG\\t\\n\\n {\\"RENAMECOLUMN\\":\\"WARNING\\",\\"DROPTABLE\\":\\"WARNING\\",\\"CREATETABLE\\":\\"WARNING\\",\\"MODIFYCOLUMN\\":\\"WARNING\\",\\"TRUNCATETABLE\\":\\"WARNING\\",\\"DROPCOLUMN\\":\\"WARNING\\",\\"ADDCOLUMN\\":\\"WARNING\\",\\"RENAMETABLE\\":\\"WARNING\\"}\\n\\ntrue","errorExample":""}]', + 'title' => '查看数据集成项目默认配置', + 'summary' => '查看当前工作空间中数据集成同步解决方案任务默认的全局配置。', + 'description' => '当前DataWorks仅支持为同步解决方案任务中的实时同步DDL消息处理策略设置默认的全局配置。如果您的同步解决方案任务包含实时同步任务,则配置**DDL消息处理规则**时会读取此处的全局配置为默认配置。您也可以根据实际业务需求修改目标同步任务的默认**DDL消息处理规则**为所需的配置。配置数据集成同步解决方案任务,详情请参见[配置同步解决方案任务](~~199008~~)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateDIProjectConfig' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'DestinationType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据集成同步解决方案任务的目的端数据源。该参数不能为空。'."\n" + .'调用UpdateDIProjectConfig修改同步解决方案的全局配置,目前仅支持配置目的端数据源为analyticdb_for_mysql、odps、elasticsearch、holo、mysql及polardb。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps', + ], + ], + [ + 'name' => 'SourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据集成同步解决方案任务的源端数据源。'."\n" + .'调用UpdateDIProjectConfig修改同步解决方案任务的全局配置,目前仅支持配置源端数据源为oracle、mysql、polardb、datahub、drds及analyticdb_for_mysql。'."\n" + .'如果不配置源端数据源,则默认全局配置对所有的源端数据源均生效。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'mysql', + ], + ], + [ + 'name' => 'ProjectConfig', + 'in' => 'query', + 'schema' => [ + 'description' => '修改后的数据集成同步解决方案任务默认的全局配置内容(即对不同DDL消息类型配置的默认处理策略)。请使用JSON格式。示例如下:'."\n" + .'{"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"}'."\n" + ."\n" + .'DDL消息类型如下:'."\n" + .'- RENAMECOLUMN:重命名列。'."\n" + .'- DROPTABLE:删除表。'."\n" + .'- CREATETABLE:新建表。'."\n" + .'- MODIFYCOLUMN:修改列类型。'."\n" + .'- TRUNCATETABLE:清空表。'."\n" + .'- DROPCOLUMN:删除列。'."\n" + .'- ADDCOLUMN:新增列。'."\n" + .'- RENAMETABLE:重命名表。'."\n" + ."\n" + .'DataWorks收到对应类型的DDL消息时,处理策略如下:'."\n" + .'- WARNING:直接丢弃该消息,同时会在实时同步日志中记录告警信息,指明该消息因执行出错被丢弃。'."\n" + .'- IGNORE:直接丢弃该消息,不再向目的端数据源发送。'."\n" + .'- CRITICAL:实时同步任务直接显示出错状态并终止运行。'."\n" + .'- NORMAL:将相应消息继续下发给目的端数据源,由目的端数据源来处理。因为不同目的端数据源对DDL消息处理策略可能会不同,因此DataWorks只执行转发操作。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '{"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。用于出现错误后定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG ', + ], + 'Data' => [ + 'description' => '修改目标工作空间中数据集成同步解决方案任务默认全局配置的返回结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '修改数据集成同步解决方案任务默认的全局配置是否成功。取值如下:'."\n" + .'- success:修改成功。'."\n" + .'- fail:修改失败。'."\n", + 'type' => 'string', + 'example' => 'success', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0000-ABCD-EFG\\\\t\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0000-ABCD-EFG\\t\\n \\n success\\n \\n","errorExample":""}]', + 'title' => '修改同步解决方案任务的全局配置', + 'summary' => '修改当前工作空间中数据集成同步解决方案任务默认的全局配置。', + 'description' => '当前DataWorks仅支持为同步解决方案任务中的实时同步DDL消息处理策略设置默认的全局配置。如果您的同步解决方案任务包含实时同步任务,则配置**DDL消息处理规则**时会读取此处的全局配置为默认配置。您也可以根据实际业务需求修改目标同步任务的默认**DDL消息处理规则**为所需的配置。配置数据集成同步解决方案任务,详情请参见[配置同步解决方案任务](~~199008~~)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetDISyncTask' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '93929', + 'abilityTreeNodes' => [ + 'FEATUREdideC95Y41', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面获取ID。'."\n" + ."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所关联的数据集成同步任务的任务类型。取值如下:'."\n" + ."\n" + .'- DI_REALTIME:表示数据集成实时同步任务。'."\n" + .'- DI_SOLUTION:表示数据集成同步解决方案。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_REALTIME', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => [ + 'description' => '- 当TaskType为DI_REALTIME时,则FileId为实时同步任务的文件ID。'."\n" + .'- 当TaskType为DI_SOLUTION时,则FileId为同步解决方案的任务ID。'."\n" + ."\n" + .'您可以调用[ListFiles](~~173942~~)接口获取任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '1', + 'example' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '获取数据集成任务的返回结果。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + ."\n" + .'- True:成功。'."\n" + .'- False:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973**** ', + ], + 'Data' => [ + 'description' => '获取数据集成任务的返回结果。', + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'description' => '- 如果TaskType为DI_REALTIME,则获取实时同步任务的详情。'."\n" + .'- 如果TaskType为DI_SOLUTION,则为null。', + 'type' => 'string', + 'example' => '{"extend":{"mode":"wizard","resourceGroup":"S_res_group_287114642182658_1560324290517"},"nodeDef":{},"order":{"hops":[{"from":"datahub_8htXSsfiS2vtZCVG","to":"datahub_CRHBAyGfhSaLmv2f"}]},"setting":{"errorLimit":{},"jvmOption":""},"steps":[{"stepType":"datahub","category":"writer","displayName":"DataHub1","parameter":{"batchSize":1000,"datasource":"datahub_cloud_dev_test","topic":"dwd_tfc_opt_speed_rid_amap_rt"},"name":"datahub_CRHBAyGfhSaLmv2f","gui":{"x":262,"y":325}},{"stepType":"datahub","displayName":"DataHub2","parameter":{"datasource":"datahub_uric_test","topic":"dwd_tfc_opt_speed_rid_amap_rt_330000","batchSize":1000},"name":"datahub_8htXSsfiS2vtZCVG","gui":{"x":268,"y":160.5},"category":"writer"}]}', + ], + 'Status' => [ + 'description' => '获取数据集成同步任务的结果状态。取值如下:'."\n" + ."\n" + .'Success:表示获取数据集成同步任务成功。'."\n" + .'Fail:表示获取数据集成同步任务失败。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '获取数据集成同步任务失败后的原因描述。'."\n" + ."\n" + .'如果获取数据集成同步任务成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'fileId:[100] is invalid.', + ], + 'AlarmList' => [ + 'description' => '实时任务相关联的报警规则数组。', + 'type' => 'array', + 'items' => [ + 'description' => '单条实时任务相关联的报警规则。', + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'description' => '报警规则id。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '45242', + ], + 'Enabled' => [ + 'description' => '报警规则是否启动。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RuleName' => [ + 'description' => '报警规则名称。', + 'type' => 'string', + 'example' => 'Delay alert rule name 1', + ], + 'Metric' => [ + 'description' => '报警类型:'."\n" + ."\n" + .'- taskStatus 任务状态'."\n" + .'- bizDelay 业务延迟'."\n" + .'- taskFailoverCount 监控Failover'."\n" + .'- ddlUnsupport DDL不支持'."\n" + .'- ddlReport DDL通知'."\n" + .'- totalDirtyRecordWriteInLines 脏数据', + 'type' => 'string', + 'example' => 'taskStatus', + ], + 'Description' => [ + 'description' => '报警规则描述。', + 'type' => 'string', + 'example' => 'Description', + ], + 'AlarmRuleList' => [ + 'description' => '报警通知配置数组。', + 'type' => 'array', + 'items' => [ + 'description' => '报警通知配置。', + 'type' => 'object', + 'properties' => [ + 'Level' => [ + 'description' => '- WARNING 警告告警'."\n" + .'- CRITICAL 严重告警', + 'type' => 'string', + 'example' => 'WARNING', + ], + 'Comparator' => [ + 'description' => '比较符号,指标和告警规则的比较方法:'."\n" + .'- \'=\' '."\n" + .'- \'<\''."\n" + .'- \'>\'', + 'type' => 'string', + 'example' => '=', + ], + 'Threshold' => [ + 'description' => '指标和告警规则的比较阈值。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'Duration' => [ + 'description' => '持续时间,满足该条件持续多久才会触发报警,单位分钟。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3', + ], + 'Aggregator' => [ + 'description' => '指标的计算方法:'."\n" + .'- avg 区间取平均'."\n" + .'- max 区间取最大值', + 'type' => 'string', + 'example' => 'avg', + ], + ], + ], + ], + 'NotifyRule' => [ + 'description' => '告警通知规则数组。', + 'type' => 'object', + 'properties' => [ + 'Interval' => [ + 'description' => '告警间隔,单位分钟。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '5', + ], + 'Warning' => [ + 'description' => 'Warning级别告警通知列表。', + 'type' => 'array', + 'items' => [ + 'description' => '通道,可选的枚举值:'."\n" + ."\n" + .'- Mail(邮件)'."\n" + .'- Phone(电话)'."\n" + .'- Sms(短信)'."\n" + .'- Ding(钉钉)', + 'type' => 'string', + 'example' => 'Ding', + ], + ], + 'Critical' => [ + 'description' => 'Critical级别告警通知列表。', + 'type' => 'array', + 'items' => [ + 'description' => '通道,可选的枚举值:'."\n" + ."\n" + .'- Mail(邮件)'."\n" + .'- Phone(电话)'."\n" + .'- Sms(短信)'."\n" + .'- Ding(钉钉)', + 'type' => 'string', + 'example' => 'Ding', + ], + ], + ], + ], + ], + ], + ], + 'SolutionDetail' => [ + 'description' => '- 如果TaskType为DI_REALTIME,则为null。'."\n" + .'- 如果TaskType为DI_SOLUTION,则获取同步解决方案任务的详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '同步解决方案的执行状态'."\n" + ."\n" + .'- 0-成功 '."\n" + .'- 1-未运行 '."\n" + .'- 2-运行中'."\n" + .'- 3-失败 '."\n" + .'- 4-提交'."\n" + .'- 5-待人工确认'."\n" + .'- 6-人工确认完成'."\n" + .'- 7-其他 '."\n" + .'- 8-等待 '."\n" + .'- 9-已删除', + 'type' => 'string', + 'example' => '0', + ], + 'Type' => [ + 'description' => '同步解决方案任务的类型。', + 'type' => 'string', + 'example' => 'holo', + ], + 'StartTime' => [ + 'description' => '同步解决方案任务的开始时间。', + 'type' => 'string', + 'example' => '2021-12-07 14:40:51', + ], + 'CreatorName' => [ + 'description' => '同步解决方案任务的创建者名称。', + 'type' => 'string', + 'example' => 'dataworks_di', + ], + 'ProjectId' => [ + 'description' => '同步解决方案任务所在的项目ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'SourceType' => [ + 'description' => '同步解决方案任务源端的类型。', + 'type' => 'string', + 'example' => 'mysql', + ], + 'ProcessContent' => [ + 'description' => '同步解决方案的配置详情。', + 'type' => 'string', + 'example' => '{"holoDatasource":"holo","offlineSyncConfig":{"nodeNameRule":"oneclick_holo_di_${db_table_name_src}_to_${db_table_name_dest}","resourceGroup":"group_219193793999490"},"processRuleId":1007,"readerConcurrent":10,"realtimeSyncConfig":{"content":{"order":{"hops":[{"from":"reader","to":"writer"}]},"setting":{"speed":{"readerConcurrent":10}},"steps":[{"stepType":"mysql","name":"reader","category":"reader","parameter":{"connection":[{"datasource":"mm","datasourceType":"mysql","table":[]}]}},{"stepType":"holo","name":"writer","category":"writer","parameter":{"datasource":"holo","writeMode":"replay","datasourceSchema":"public","tableMappingRule":{"datasource":[{"tableRule":[],"srcDatasourceName":"mm"}]}}}]},"extend":{"mode":"migration_holo","resourceGroup":"group_219193793999490"}},"setting":{"autoCreateWorkflow":true,"userDefinedFileNameExpression":"oneclick"},"srcType":"mysql","tableMappingRuleFromRealtimeSyncConfig":{"datasource":[{"srcDatasourceName":"mm","tableRule":[]}]}}', + ], + 'Name' => [ + 'description' => '同步解决方案任务的名称。', + 'type' => 'string', + 'example' => 'holo_20211206161025', + ], + 'ProcessExtra' => [ + 'description' => '同步解决方案任务的额外参数。', + 'type' => 'string', + 'example' => '{"processType":"new","tableNum":300}', + ], + 'SubmitTime' => [ + 'description' => '同步解决方案任务提交的时间。', + 'type' => 'string', + 'example' => '2021-12-07 14:40:51', + ], + 'Id' => [ + 'description' => '同步解决方案的任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Param.Invalid', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\\\t\\",\\n \\"Data\\": {\\n \\"Code\\": \\"{\\\\\\"extend\\\\\\":{\\\\\\"mode\\\\\\":\\\\\\"wizard\\\\\\",\\\\\\"resourceGroup\\\\\\":\\\\\\"S_res_group_287114642182658_1560324290517\\\\\\"},\\\\\\"nodeDef\\\\\\":{},\\\\\\"order\\\\\\":{\\\\\\"hops\\\\\\":[{\\\\\\"from\\\\\\":\\\\\\"datahub_8htXSsfiS2vtZCVG\\\\\\",\\\\\\"to\\\\\\":\\\\\\"datahub_CRHBAyGfhSaLmv2f\\\\\\"}]},\\\\\\"setting\\\\\\":{\\\\\\"errorLimit\\\\\\":{},\\\\\\"jvmOption\\\\\\":\\\\\\"\\\\\\"},\\\\\\"steps\\\\\\":[{\\\\\\"stepType\\\\\\":\\\\\\"datahub\\\\\\",\\\\\\"category\\\\\\":\\\\\\"writer\\\\\\",\\\\\\"displayName\\\\\\":\\\\\\"DataHub1\\\\\\",\\\\\\"parameter\\\\\\":{\\\\\\"batchSize\\\\\\":1000,\\\\\\"datasource\\\\\\":\\\\\\"datahub_cloud_dev_test\\\\\\",\\\\\\"topic\\\\\\":\\\\\\"dwd_tfc_opt_speed_rid_amap_rt\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"datahub_CRHBAyGfhSaLmv2f\\\\\\",\\\\\\"gui\\\\\\":{\\\\\\"x\\\\\\":262,\\\\\\"y\\\\\\":325}},{\\\\\\"stepType\\\\\\":\\\\\\"datahub\\\\\\",\\\\\\"displayName\\\\\\":\\\\\\"DataHub2\\\\\\",\\\\\\"parameter\\\\\\":{\\\\\\"datasource\\\\\\":\\\\\\"datahub_uric_test\\\\\\",\\\\\\"topic\\\\\\":\\\\\\"dwd_tfc_opt_speed_rid_amap_rt_330000\\\\\\",\\\\\\"batchSize\\\\\\":1000},\\\\\\"name\\\\\\":\\\\\\"datahub_8htXSsfiS2vtZCVG\\\\\\",\\\\\\"gui\\\\\\":{\\\\\\"x\\\\\\":268,\\\\\\"y\\\\\\":160.5},\\\\\\"category\\\\\\":\\\\\\"writer\\\\\\"}]}\\",\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"fileId:[100] is invalid.\\",\\n \\"AlarmList\\": [\\n {\\n \\"Id\\": 45242,\\n \\"Enabled\\": true,\\n \\"RuleName\\": \\"Delay alert rule name 1\\",\\n \\"Metric\\": \\"taskStatus\\",\\n \\"Description\\": \\"Description\\",\\n \\"AlarmRuleList\\": [\\n {\\n \\"Level\\": \\"WARNING\\",\\n \\"Comparator\\": \\"=\\",\\n \\"Threshold\\": 1,\\n \\"Duration\\": 3,\\n \\"Aggregator\\": \\"avg\\"\\n }\\n ],\\n \\"NotifyRule\\": {\\n \\"Interval\\": 5,\\n \\"Warning\\": [\\n \\"Ding\\"\\n ],\\n \\"Critical\\": [\\n \\"Ding\\"\\n ]\\n }\\n }\\n ],\\n \\"SolutionDetail\\": {\\n \\"Status\\": \\"0\\",\\n \\"Type\\": \\"holo\\",\\n \\"StartTime\\": \\"2021-12-07 14:40:51\\",\\n \\"CreatorName\\": \\"dataworks_di\\",\\n \\"ProjectId\\": 10000,\\n \\"SourceType\\": \\"mysql\\",\\n \\"ProcessContent\\": \\"{\\\\\\"holoDatasource\\\\\\":\\\\\\"holo\\\\\\",\\\\\\"offlineSyncConfig\\\\\\":{\\\\\\"nodeNameRule\\\\\\":\\\\\\"oneclick_holo_di_${db_table_name_src}_to_${db_table_name_dest}\\\\\\",\\\\\\"resourceGroup\\\\\\":\\\\\\"group_219193793999490\\\\\\"},\\\\\\"processRuleId\\\\\\":1007,\\\\\\"readerConcurrent\\\\\\":10,\\\\\\"realtimeSyncConfig\\\\\\":{\\\\\\"content\\\\\\":{\\\\\\"order\\\\\\":{\\\\\\"hops\\\\\\":[{\\\\\\"from\\\\\\":\\\\\\"reader\\\\\\",\\\\\\"to\\\\\\":\\\\\\"writer\\\\\\"}]},\\\\\\"setting\\\\\\":{\\\\\\"speed\\\\\\":{\\\\\\"readerConcurrent\\\\\\":10}},\\\\\\"steps\\\\\\":[{\\\\\\"stepType\\\\\\":\\\\\\"mysql\\\\\\",\\\\\\"name\\\\\\":\\\\\\"reader\\\\\\",\\\\\\"category\\\\\\":\\\\\\"reader\\\\\\",\\\\\\"parameter\\\\\\":{\\\\\\"connection\\\\\\":[{\\\\\\"datasource\\\\\\":\\\\\\"mm\\\\\\",\\\\\\"datasourceType\\\\\\":\\\\\\"mysql\\\\\\",\\\\\\"table\\\\\\":[]}]}},{\\\\\\"stepType\\\\\\":\\\\\\"holo\\\\\\",\\\\\\"name\\\\\\":\\\\\\"writer\\\\\\",\\\\\\"category\\\\\\":\\\\\\"writer\\\\\\",\\\\\\"parameter\\\\\\":{\\\\\\"datasource\\\\\\":\\\\\\"holo\\\\\\",\\\\\\"writeMode\\\\\\":\\\\\\"replay\\\\\\",\\\\\\"datasourceSchema\\\\\\":\\\\\\"public\\\\\\",\\\\\\"tableMappingRule\\\\\\":{\\\\\\"datasource\\\\\\":[{\\\\\\"tableRule\\\\\\":[],\\\\\\"srcDatasourceName\\\\\\":\\\\\\"mm\\\\\\"}]}}}]},\\\\\\"extend\\\\\\":{\\\\\\"mode\\\\\\":\\\\\\"migration_holo\\\\\\",\\\\\\"resourceGroup\\\\\\":\\\\\\"group_219193793999490\\\\\\"}},\\\\\\"setting\\\\\\":{\\\\\\"autoCreateWorkflow\\\\\\":true,\\\\\\"userDefinedFileNameExpression\\\\\\":\\\\\\"oneclick\\\\\\"},\\\\\\"srcType\\\\\\":\\\\\\"mysql\\\\\\",\\\\\\"tableMappingRuleFromRealtimeSyncConfig\\\\\\":{\\\\\\"datasource\\\\\\":[{\\\\\\"srcDatasourceName\\\\\\":\\\\\\"mm\\\\\\",\\\\\\"tableRule\\\\\\":[]}]}}\\",\\n \\"Name\\": \\"holo_20211206161025\\",\\n \\"ProcessExtra\\": \\"{\\\\\\"processType\\\\\\":\\\\\\"new\\\\\\",\\\\\\"tableNum\\\\\\":300}\\",\\n \\"SubmitTime\\": \\"2021-12-07 14:40:51\\",\\n \\"Id\\": 100\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\t\\n \\n {\\"extend\\":{\\"mode\\":\\"wizard\\",\\"resourceGroup\\":\\"S_res_group_287114642182658_1560324290517\\"},\\"nodeDef\\":{},\\"order\\":{\\"hops\\":[{\\"from\\":\\"datahub_8htXSsfiS2vtZCVG\\",\\"to\\":\\"datahub_CRHBAyGfhSaLmv2f\\"}]},\\"setting\\":{\\"errorLimit\\":{},\\"jvmOption\\":\\"\\"},\\"steps\\":[{\\"stepType\\":\\"datahub\\",\\"category\\":\\"writer\\",\\"displayName\\":\\"DataHub1\\",\\"parameter\\":{\\"batchSize\\":1000,\\"datasource\\":\\"datahub_cloud_dev_test\\",\\"topic\\":\\"dwd_tfc_opt_speed_rid_amap_rt\\"},\\"name\\":\\"datahub_CRHBAyGfhSaLmv2f\\",\\"gui\\":{\\"x\\":262,\\"y\\":325}},{\\"stepType\\":\\"datahub\\",\\"displayName\\":\\"DataHub2\\",\\"parameter\\":{\\"datasource\\":\\"datahub_uric_test\\",\\"topic\\":\\"dwd_tfc_opt_speed_rid_amap_rt_330000\\",\\"batchSize\\":1000},\\"name\\":\\"datahub_8htXSsfiS2vtZCVG\\",\\"gui\\":{\\"x\\":268,\\"y\\":160.5},\\"category\\":\\"writer\\"}]}\\n success\\n fileId:[100] is invalid.\\n \\n 0\\n holo\\n 2021-12-07 14:40:51\\n dataworks_di\\n 10000\\n mysql\\n {\\"holoDatasource\\":\\"holo\\",\\"offlineSyncConfig\\":{\\"nodeNameRule\\":\\"oneclick_holo_di_${db_table_name_src}_to_${db_table_name_dest}\\",\\"resourceGroup\\":\\"group_219193793999490\\"},\\"processRuleId\\":1007,\\"readerConcurrent\\":10,\\"realtimeSyncConfig\\":{\\"content\\":{\\"order\\":{\\"hops\\":[{\\"from\\":\\"reader\\",\\"to\\":\\"writer\\"}]},\\"setting\\":{\\"speed\\":{\\"readerConcurrent\\":10}},\\"steps\\":[{\\"stepType\\":\\"mysql\\",\\"name\\":\\"reader\\",\\"category\\":\\"reader\\",\\"parameter\\":{\\"connection\\":[{\\"datasource\\":\\"mm\\",\\"datasourceType\\":\\"mysql\\",\\"table\\":[]}]}},{\\"stepType\\":\\"holo\\",\\"name\\":\\"writer\\",\\"category\\":\\"writer\\",\\"parameter\\":{\\"datasource\\":\\"holo\\",\\"writeMode\\":\\"replay\\",\\"datasourceSchema\\":\\"public\\",\\"tableMappingRule\\":{\\"datasource\\":[{\\"tableRule\\":[],\\"srcDatasourceName\\":\\"mm\\"}]}}}]},\\"extend\\":{\\"mode\\":\\"migration_holo\\",\\"resourceGroup\\":\\"group_219193793999490\\"}},\\"setting\\":{\\"autoCreateWorkflow\\":true,\\"userDefinedFileNameExpression\\":\\"oneclick\\"},\\"srcType\\":\\"mysql\\",\\"tableMappingRuleFromRealtimeSyncConfig\\":{\\"datasource\\":[{\\"srcDatasourceName\\":\\"mm\\",\\"tableRule\\":[]}]}}\\n holo_20211206161025\\n {\\"processType\\":\\"new\\",\\"tableNum\\":300}\\n 2021-12-07 14:40:51\\n 100\\n \\n \\n","errorExample":""}]', + 'title' => '查询数据同步任务', + 'summary' => '获取数据集成实时同步任务和同步解决方案的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeployDISyncTask' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面获取ID。'."\n" + ."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所关联的数据集成同步任务的任务类型。取值如下:'."\n" + ."\n" + .'- DI_REALTIME:表示数据集成实时同步任务。'."\n" + .'- DI_SOLUTION:表示数据集成主站同步任务。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_REALTIME', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => [ + 'description' => '- 当TaskType为DI_REALTIME时,则FileId为实时同步任务的文件ID。'."\n" + .'- 当TaskType为DI_SOLUTION时,则FileId为主站同步任务的任务ID。'."\n" + ."\n" + .'您可以调用[ListFiles](~~173942~~)接口获取任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '1', + 'example' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '数据集成同步任务返回结果。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + ."\n" + .'- true:成功。 '."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => '0bc14115159376359******', + ], + 'Data' => [ + 'description' => '发布同步任务的结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '发布数据集成同步任务的结果状态。取值如下:'."\n" + ."\n" + .'- success:表示发布数据集成同步任务成功。'."\n" + .'- fail:表示发布数据集成同步任务失败。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '发布数据集成同步任务失败后的原因描述。'."\n" + ."\n" + .'如果发布数据集成同步任务成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'submit and deploy fail.', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Param.Invalid', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc14115159376359******\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"submit and deploy fail.\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n success\\n submit and deploy fail.\\n \\n","errorExample":""}]', + 'title' => '部署发布同步任务', + 'summary' => '该接口用于发布实时同步任务。', + ], + 'GetDISyncInstanceInfo' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面获取ID。'."\n" + ."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所关联的数据集成同步任务的任务类型。取值如下:'."\n" + ."\n" + .'- DI_REALTIME:表示数据集成实时同步任务。'."\n" + .'- DI_SOLUTION:表示数据集成同步解决方案。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_REALTIME', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => [ + 'description' => '- 当TaskType为DI_REALTIME时,则FileId为实时同步任务的文件ID。'."\n" + .'- 当TaskType为DI_SOLUTION时,则FileId为同步解决方案的任务ID。'."\n" + ."\n" + .'您可以调用[ListFiles](~~173942~~)接口获取任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '1', + 'example' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '数据集成同步任务返回的数据结构。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + ."\n" + .'- true:成功。 '."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '获取同步任务的运行状态。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '- 如果taskType为DI_REALTIME,则status为实时任务的运行状态。包括:PAUSE、NORUN、RUN、KILLING、WAIT。 '."\n" + ."\n" + .'- 如果taskType为DI_SOLITION, 则status为同步解决方案的运行状态。包括:success、fail。'."\n", + 'type' => 'string', + 'example' => 'RUN', + ], + 'Message' => [ + 'description' => '获取同步任务运行状态失败后的原因描述。如果获取数据集成同步任务成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'fileId[100] is invalid', + ], + 'Name' => [ + 'description' => '- 如果taskType为DI_REALTIME,则name为实时同步任务的名称。'."\n" + .'- 如果taskType为DI_SOLITION, 则name为空。', + 'type' => 'string', + 'example' => 'streamx_name', + ], + 'SolutionInfo' => [ + 'description' => '- 如果taskType为DI_REALTIME,则SolutionInfo为空。'."\n" + .'- 如果taskType为DI_SOLITION, 则SolutionInfo为同步解决方案运行详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '同步解决方案运行状态。', + 'type' => 'string', + 'example' => 'run', + ], + 'Id' => [ + 'description' => '同步解决方案任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'CreatorName' => [ + 'description' => '同步解决方案任务创建者名称。', + 'type' => 'string', + 'example' => 'dataworks_3h1', + ], + 'StepDetail' => [ + 'description' => '同步解决方案任务运行步骤详情。', + 'type' => 'array', + 'items' => [ + 'description' => '数据集成同步任务返回的数据结构。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '同步解决方案运行步骤的状态。', + 'type' => 'string', + 'example' => 'success', + ], + 'StepId' => [ + 'description' => '同步解决方案运行步骤的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'StepName' => [ + 'description' => '同步解决方案运行步骤的名称。', + 'type' => 'string', + 'example' => 'Create a base table', + ], + 'Info' => [ + 'description' => '同步解决方案运行信息', + 'type' => 'string', + 'example' => '{\\"fusionProps\\":{\\"dataSource\\":[{\\"fileName\\":\\"holo_20221020161613\\",\\"status\\":\\"SUCCESS\\"}]},\\"customProps\\":{\\"showSN\\":true,\\"columns\\":[{\\"dataIndex\\":\\"fileName\\",\\"width\\":0.8,\\"title\\":\\"Real-time synchronization name\\"},{\\"dataIndex\\":\\"status\\",\\"width\\":0.2,\\"title\\":\\"Status\\"}]},\\"componentName\\":\\"Table\\"}', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Param.Invalid', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"RUN\\",\\n \\"Message\\": \\"fileId[100] is invalid\\",\\n \\"Name\\": \\"streamx_name\\",\\n \\"SolutionInfo\\": {\\n \\"Status\\": \\"run\\",\\n \\"Id\\": 100,\\n \\"CreatorName\\": \\"dataworks_3h1\\",\\n \\"StepDetail\\": [\\n {\\n \\"Status\\": \\"success\\",\\n \\"StepId\\": 1,\\n \\"StepName\\": \\"Create a base table\\",\\n \\"Info\\": \\"{\\\\\\\\\\\\\\"fusionProps\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"dataSource\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"fileName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"holo_20221020161613\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"SUCCESS\\\\\\\\\\\\\\"}]},\\\\\\\\\\\\\\"customProps\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"showSN\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"columns\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"dataIndex\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"fileName\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"width\\\\\\\\\\\\\\":0.8,\\\\\\\\\\\\\\"title\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Real-time synchronization name\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"dataIndex\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"width\\\\\\\\\\\\\\":0.2,\\\\\\\\\\\\\\"title\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Status\\\\\\\\\\\\\\"}]},\\\\\\\\\\\\\\"componentName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Table\\\\\\\\\\\\\\"}\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n RUN\\n fileId[100] is invalid\\n streamx_name\\n \\n run\\n 100\\n dataworks_3h1\\n \\n success\\n 1\\n 创建base表\\n {\\\\\\"fusionProps\\\\\\":{\\\\\\"dataSource\\\\\\":[{\\\\\\"fileName\\\\\\":\\\\\\"holo_20221020161613\\\\\\",\\\\\\"status\\\\\\":\\\\\\"SUCCESS\\\\\\"}]},\\\\\\"customProps\\\\\\":{\\\\\\"showSN\\\\\\":true,\\\\\\"columns\\\\\\":[{\\\\\\"dataIndex\\\\\\":\\\\\\"fileName\\\\\\",\\\\\\"width\\\\\\":0.8,\\\\\\"title\\\\\\":\\\\\\"实时同步名称\\\\\\"},{\\\\\\"dataIndex\\\\\\":\\\\\\"status\\\\\\",\\\\\\"width\\\\\\":0.2,\\\\\\"title\\\\\\":\\\\\\"状态\\\\\\"}]},\\\\\\"componentName\\\\\\":\\\\\\"Table\\\\\\"}\\n \\n \\n \\n","errorExample":""}]', + 'title' => '获取同步任务实例信息', + 'summary' => '获取实时同步任务和同步解决方案任务的运行状态。', + ], + 'TerminateDISyncInstance' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面获取ID。'."\n" + ."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => 'DI_REALTIME表示实时同步任务。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_REALTIME', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => [ + 'description' => '实时同步任务的文件ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '1', + 'example' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '实时同步任务返回的数据结构。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + ."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '下线实时同步任务的状态。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '下线数据集成实时同步任务的结果状态。取值如下:'."\n" + ."\n" + .'- success:表示下线数据集成实时同步任务成功。 '."\n" + .'- fail:表示下线数据集成实时同步任务失败。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '下线数据集成实时同步任务失败后的原因描述。如果下线数据集成实时同步任务成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'fileId:[100] is invalid.', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Param.Invalid', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"fileId:[100] is invalid.\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n success\\n fileId:[100] is invalid.\\n \\n","errorExample":""}]', + 'title' => '终止同步任务', + 'summary' => '下线数据集成实时同步任务。', + ], + 'GenerateDISyncTaskConfigForCreating' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '使用异步方式创建数据集成同步任务的任务类型。取值如下:'."\n" + .'- DI_REALTIME:表示实时同步任务。'."\n" + .'- DI_SOLUTION:表示其他同步类型的同步任务。'."\n" + ."\n" + .'仅支持使用异步方式生成数据集成实时同步任务和其他同步类型的同步任务。'."\n" + .' '."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'DI_REALTIME', + 'enum' => [ + 'DI_OFFLINE', + 'DI_REALTIME', + 'DI_SOLUTION', + ], + ], + ], + [ + 'name' => 'TaskParam', + 'in' => 'query', + 'schema' => [ + 'description' => '数据集成同步任务的脚本。'."\n" + .'目前支持创建的同步任务类型如下: '."\n" + .'- 同步MySQL数据至MaxCompute。'."\n" + .'- 同步MySQL数据至Kafka。'."\n" + .'- 同步MySQL数据至Hologres。'."\n" + ."\n" + .'SelectedTables用于多库模式选择同步表,Tables用于单库模式选择同步表。'."\n" + .'- 当脚本中包含SelectedTables语句时,系统会使用SelectedTables语句中的表信息进行同步。'."\n" + .'- 当脚本中包含Tables语句时,系统会使用Tables的字段信息进行同步。'."\n" + ."\n\n" + .'同步MySQL数据至MaxCompute,示例语句如下。'."\n" + .'```'."\n" + .'{'."\n" + .' "type": "realtime",'."\n" + .' "version": "1.0",'."\n" + .' "setting": {'."\n" + .' "resourceGroup": "S_res_group_280749521950784_1623033752022",'."\n" + .' "taskType": "oneclick_to_odps"'."\n" + .' },'."\n" + .' "steps": ['."\n" + .' {'."\n" + .' "stepType": "mysql",'."\n" + .' "parameter": {'."\n" + .' "connection": ['."\n" + .' {'."\n" + .' "datasourceType": "mysql",'."\n" + .' "datasource": "mysql_pub1",'."\n" + .' "selectedTables": ['."\n" + .' {'."\n" + .' "dbName": "mysql_db",'."\n" + .' "schema": ['."\n" + .' {'."\n" + .' "tableInfos": ['."\n" + .' {'."\n" + .' "table": "molin_di_test_in_pk_v4"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' },'."\n" + .' "name": "Reader",'."\n" + .' "category": "reader"'."\n" + .' },'."\n" + .' {'."\n" + .' "stepType": "odps",'."\n" + .' "parameter": {'."\n" + .' "datasource": "odps_source"'."\n" + .' },'."\n" + .' "name": "Writer",'."\n" + .' "category": "writer"'."\n" + .' }'."\n" + .' ]'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'同步MySQL数据至Kafka,示例语句如下。'."\n" + .'```'."\n" + .'{'."\n" + .' "type": "realtime",'."\n" + .' "version": "1.0",'."\n" + .' "setting": {'."\n" + .' "resourceGroup": "S_res_group_280749521950784_1623033752022",'."\n" + .' "taskType": "oneclick_to_kafka"'."\n" + .' },'."\n" + .' "steps": ['."\n" + .' {'."\n" + .' "stepType": "mysql",'."\n" + .' "parameter": {'."\n" + .' "connection": ['."\n" + .' {'."\n" + .' "datasourceType": "mysql",'."\n" + .' "datasource": "pkset_test",'."\n" + .' "selectedTables": ['."\n" + .' {'."\n" + .' "dbName": "mysql_db",'."\n" + .' "schema": ['."\n" + .' {'."\n" + .' "tableInfos": ['."\n" + .' {'."\n" + .' "table": "molin_di_test_in_pk_v4"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' },'."\n" + .' "name": "Reader",'."\n" + .' "category": "reader"'."\n" + .' },'."\n" + .' {'."\n" + .' "stepType": "kafka",'."\n" + .' "parameter": {'."\n" + .' "datasource": "azn_kafka"'."\n" + .' },'."\n" + .' "name": "Writer",'."\n" + .' "category": "writer"'."\n" + .' }'."\n" + .' ]'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'同步MySQL数据至Hologres,示例语句如下。'."\n" + .'```'."\n" + .'{'."\n" + .' "type": "realtime",'."\n" + .' "version": "1.0",'."\n" + .' "setting": {'."\n" + .' "resourceGroup": "S_res_group_280749521950784_1623033752022",'."\n" + .' "taskType": "oneclick_to_holo"'."\n" + .' },'."\n" + .' "steps": ['."\n" + .' {'."\n" + .' "stepType": "mysql",'."\n" + .' "parameter": {'."\n" + .' "connection": ['."\n" + .' {'."\n" + .' "datasourceType": "mysql",'."\n" + .' "datasource": "mysql_pub",'."\n" + .' "selectedTables": ['."\n" + .' {'."\n" + .' "dbName": "mysql_db",'."\n" + .' "schema": ['."\n" + .' {'."\n" + .' "tableInfos": ['."\n" + .' {'."\n" + .' "table": "molin_di_test_in2_pk_v3"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' },'."\n" + .' "name": "Reader",'."\n" + .' "category": "reader"'."\n" + .' },'."\n" + .' {'."\n" + .' "stepType": "holo",'."\n" + .' "parameter": {'."\n" + .' "datasource": "holo"'."\n" + .' },'."\n" + .' "name": "Writer",'."\n" + .' "category": "writer"'."\n" + .' }'."\n" + .' ]'."\n" + .'}'."\n" + .'```'."\n" + ."\n\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '{ "type": "realtime", "version": "1.0", "setting": { "resourceGroup": "S_res_group_280749521950784_1623033752022", "taskType": "oneclick_to_odps" }, "steps": [{ "stepType": "mysql", "parameter": { "connection": [ { "datasourceType": "mysql", "datasource": "mysql_pub1", "selectedTables": [ { "dbName": "mysql_db", "schema": [ { "tableInfos": [ { "table": "molin_di_test_in_pk_v4" }] } ] } ] } ] }, "name": "Reader", "category": "reader" }, { "stepType": "odps", "parameter": { "datasource": "odps_source" }, "name": "Writer", "category": "writer" } ] }', + ], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => [ + 'description' => '幂等参数。用于避免多次调用导致操作重复。', + 'type' => 'string', + 'required' => false, + 'example' => 'ABFUOEUOTRTRJKE', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '异步线程ID的生成结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '生成异步线程ID的结果状态。取值如下:'."\n" + .'- success:表示成功生成异步线程ID。'."\n" + .'- fail:表示异步线程ID生成失败。您可以查看失败原因,处理相关问题。', + 'type' => 'string', + 'example' => 'true', + ], + 'ProcessId' => [ + 'description' => '异步线程ID。您需要通过该ID,调用[QueryDISyncTaskConfigProcessResult](~~383465~~)接口获取异步生成创建数据集成同步任务需要的参数,使用该参数创建数据集成同步任务。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'Message' => [ + 'description' => '异步线程ID生成失败的原因描述。'."\n" + .'如果成功生成异步线程ID,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'XXX is invalid.', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + [ + 'errorCode' => 'Invalid.DI.Parameter.File.Existed', + 'errorMessage' => 'The file name already exists.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"true\\",\\n \\"ProcessId\\": 10,\\n \\"Message\\": \\"XXX is invalid.\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n true\\n 10\\n XXX is invalid.\\n \\n","errorExample":""}]', + 'title' => '异步生成同时任务的JSON', + 'summary' => '异步生成同时任务的JSON。', + 'description' => 'DataWorks目前仅支持直接使用[CreateDISyncTask](~~278725~~)接口创建数据集成离线同步任务,而数据集成实时同步任务和其他同步类型的任务则需要先调用[GenerateDISyncTaskConfigForCreating](~~383463~~)和[QueryDISyncTaskConfigProcessResult](~~383465~~)接口,获取异步生成创建数据集成同步任务需要的参数,再将该参数作为[CreateDISyncTask](~~278725~~)接口的入参,使用[CreateDISyncTask](~~278725~~)接口创建相应的实时同步任务和其他同步类型的同步任务。'."\n" + .'仅支持使用异步方式创建数据集成实时同步任务和其他同步类型的同步任务。', + ], + 'GenerateDISyncTaskConfigForUpdating' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '使用异步方式更新数据集成同步任务的任务类型。取值如下:'."\n" + .'- DI_REALTIME:表示实时同步任务。'."\n" + .'- DI_SOLUTION:表示解决方案同步任务。'."\n" + .'仅支持使用异步方式更新数据集成实时同步任务和解决方案同步任务。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_REALTIME', + 'enum' => [ + 'DI_OFFLINE', + 'DI_REALTIME', + 'DI_SOLUTION', + ], + ], + ], + [ + 'name' => 'TaskParam', + 'in' => 'query', + 'schema' => [ + 'description' => '更新同步任务的脚本语句。'."\n" + .'目前仅支持通过异步方式为数据集成同步任务新增表或者删除表,并且仅支持更新如下类型的同步任务:'."\n" + .'- 同步MySQL数据至MaxCompute。'."\n" + .'- 同步MySQL数据至Kafka。'."\n" + .'- 同步MySQL数据至Hologres。'."\n" + ."\n" + .'同步任务中的SelectedTables用于多库模式选择同步表,Tables用于单库模式选择同步表。'."\n" + .'- 当脚本中包含SelectedTables语句时,系统会使用SelectedTables语句中的表信息进行同步。'."\n" + .'- 当脚本中包含Tables语句时,系统会使用Tables的字段信息进行同步。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '{"steps":[{"parameter":{"connection":[{"table":["xyx"]}]},"name":"Reader","category":"reader"}]}', + ], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => [ + 'description' => '幂等参数。用于避免多次调用导致操作重复。', + 'type' => 'string', + 'required' => false, + 'example' => 'ABFUOEUOTRTRJKE', + ], + ], + [ + 'name' => 'TaskId', + 'in' => 'query', + 'schema' => [ + 'description' => '任务ID。'."\n" + .'- 当TaskType参数配置为实时同步任务(DI_REALTIME),则TaskId为实时同步任务的FileId。'."\n" + .'- 当TaskType参数配置为解决方案同步任务(DI_SOLUTION),则TaskId为解决方案同步任务的FileId。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '0', + 'example' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '异步线程ID的生成结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '生成异步线程ID的结果状态。取值如下:'."\n" + .'- success:表示成功生成异步线程ID。'."\n" + .'- fail:表示异步线程ID生成失败。您可以查看失败原因,处理相关问题。', + 'type' => 'string', + 'example' => 'true', + ], + 'ProcessId' => [ + 'description' => '异步线程ID。您需要通过该ID,调用[QueryDISyncTaskConfigProcessResult](~~383465~~)接口获取异步生成更新数据集成同步任务需要的参数,后续使用该参数更新数据集成同步任务。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'Message' => [ + 'description' => '异步线程ID生成失败的原因描述。 如果成功生成异步线程ID,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'XXX is invalid.', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + [ + 'errorCode' => 'Invalid.DI.Parameter.File.Existed', + 'errorMessage' => 'The file name already exists.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"true\\",\\n \\"ProcessId\\": 10,\\n \\"Message\\": \\"XXX is invalid.\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n true\\n 10\\n XXX is invalid.\\n \\n","errorExample":""}]', + 'title' => '异步生成更新同步任务配置', + 'summary' => '异步生成更新同步任务的JSON。', + 'description' => 'DataWorks目前仅支持直接使用[UpdateDISyncTask](~~289109~~)接口更新数据集成离线同步任务,而数据集成实时同步任务则需要先调用GenerateDISyncTaskConfigForUpdating和[QueryDISyncTaskConfigProcessResult](~~383465~~)接口,异步生成更新数据集成同步任务需要的参数,再将该参数作为UpdateDISyncTask接口的入参,使用UpdateDISyncTask接口更新相应的实时同步任务。 仅支持使用异步方式更新数据集成实时同步任务。', + ], + 'StartDISyncInstance' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '启动数据集成同步任务的任务类型。 目前仅支持使用DI_REALTIME和DI_SOLUTION两种类型:'."\n" + .'- DI_REALTIME代表启动实时任务。'."\n" + .'- DI_SOLUTION代表启动解决方案。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_REALTIME', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => [ + 'description' => '- 当TaskType参数配置为DI_REALTIME,则FileId为实时同步任务的任务ID。'."\n" + .'- 当TaskType参数配置为DI_SOLUTION,则FileId为解决方案同步任务的任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '1', + 'example' => '100', + ], + ], + [ + 'name' => 'StartParam', + 'in' => 'query', + 'schema' => [ + 'description' => '- 当TaskType参数配置为DI_REALTIME,则StartParam为实时同步任务的启动参数,包括Failover的设置,脏数据条数,以及DDL的参数配置。'."\n" + .'- 当TaskType参数配置为DI_SOLUTION,则StartParam参数无意义。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{"failoverLimit":{"count":10,"interval":30},"errorLimit":{"record":0},"ddlMarkMap":{"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"IGNORE","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"NORMAL","DROPCOLUMN":"IGNORE","ADDCOLUMN":"NORMAL","RENAMETABLE":"CRITICAL"}}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '启动同步任务的结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '启动同步任务的结果状态。取值如下:'."\n" + .'- success:同步任务启动成功。'."\n" + .'- fail:同步任务启动失败。您可以查看具体原因,处理相关问题。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '启动数据集成同步任务失败后的原因描述。'."\n" + ."\n" + .'如果启动数据集成同步任务成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'fileId:[100] is invalid.', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Param.Invalid', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"fileId:[100] is invalid.\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0bc1411515937635973****\\n \\n success\\n fileId:[100] is invalid.\\n \\n true\\n","errorExample":""}]', + 'title' => '启动实时同步任务和解决方案同步任务', + 'summary' => '调用StartDISyncInstance接口,启动实时同步任务和解决方案同步任务。', + ], + 'StopDISyncInstance' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '停止数据集成同步任务的任务类型。目前仅支持使用DI_REALTIME类型。'."\n" + ."\n" + .'DI_REALTIME代表实时任务。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_REALTIME', + ], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => [ + 'description' => 'FileId为实时同步任务的ID。您可以调用[ListFiles](~~173942~~)接口获取任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '1', + 'example' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。 '."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '停止同步任务的结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '停止数据集成同步任务的结果状态。取值如下:'."\n" + .'- success:表示停止数据集成同步任务成功。'."\n" + .'- fail:表示停止数据集成同步任务失败。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '停止数据集成同步任务失败后的原因描述。'."\n" + ."\n" + .'如果停止数据集成同步任务成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'fileId:[100] is invalid.', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Param.Invalid', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"fileId:[100] is invalid.\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n success\\n fileId:[100] is invalid.\\n \\n","errorExample":""}]', + 'title' => '停止实时同步任务', + 'summary' => '调用StopDISyncInstance接口,停止实时同步任务。', + ], + 'QueryDISyncTaskConfigProcessResult' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。'."\n" + ."\n" + .'该参数用来确定本次API调用操作使用的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '异步方式创建或更新的同步任务的任务类型。取值如下:'."\n" + .'- DI_REALTIME:表示实时同步任务。'."\n" + .'- DI_SOLUTION:表示解决方案同步任务。'."\n" + .'仅支持使用异步方式创建或更新数据集成实时同步任务和解决方案同步任务。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'DI_REALTIME', + 'enum' => [ + 'DI_OFFLINE', + 'DI_REALTIME', + 'DI_SOLUTION', + ], + ], + ], + [ + 'name' => 'AsyncProcessId', + 'in' => 'query', + 'schema' => [ + 'description' => '异步线程的ID。您可以调用[GenerateDISyncTaskConfigForCreating](~~383463~~)或[GenerateDISyncTaskConfigForUpdating](~~383464~~)接口获取ID。'."\n" + .'- GenerateDISyncTaskConfigForCreating:表示创建数据集成同步任务。'."\n" + .'- GenerateDISyncTaskConfigForUpdating:表示更新数据集成同步任务。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999999999999', + 'minimum' => '1', + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '获取异步生成或更新数据集成同步任务所需参数的返回结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '获取异步生成或更新数据集成同步任务所需参数的结果状态。取值如下:'."\n" + .'- success:表示成功获取相关参数。'."\n" + .'- fail:表示获取相关参数失败。您可以查看失败原因,处理相关问题。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '获取异步生成或更新数据集成同步任务所需参数失败的原因描述。如果获取成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'fileId:[100] is invalid.', + ], + 'TaskContent' => [ + 'description' => '异步线程生成的数据集成同步任务所需参数。该参数将作为[CreateDISyncTask](~~278725~~)或[UpdateDISyncTask](~~289109~~)接口的输入参数,用于后续创建或更新数据集成同步任务。', + 'type' => 'string', + 'example' => '{"extend":{"mode":"migration_holo","resourceGroup":"280749","name":"h"},"type":"job","steps":[{"stepType":"mysql","parameter":{"connection":[{"datasourceType":"mysql","datasource":"mm","selectedTables":[{"schema":[{"tableInfos":[{"enable":true,"table":"m_v1","tableName":"m_v1"}]}],"dbName":"m"}]}]},"name":"reader","category":"reader"},{"stepType":"holo","parameter":{"datasource":"h","tableMappingRule":{"datasource":[{"tableRule":[{"srcTable":"m_v1","mergeIntoCycleType":"DEFAULT","hourDeltaEnable":false,"dstTable":"m.m_v1","dayDeltaEnable":false,"primaryKeyInfo":{"column":["id"],"type":"pk"},"dstCreateTableInfo":{"indexType":"m_v1","dataColumn":[{"columnSize":0,"name":"id","index":0,"comment":"","newDigit":0,"type":"int8","digit":0,"primaryKey":true}],"schemaName":"m","tableName":"m_v1"},"srcDbName":"m"}],"srcDatasourceName":"mm"}],"totalTableMapping":1},"writeMode":"replay"},"name":"writer","category":"writer"}],"version":"2.0","order":{"hops":[{"from":"reader","to":"writer"}]}}', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Param.Invalid', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"fileId:[100] is invalid.\\",\\n \\"TaskContent\\": \\"{\\\\\\"extend\\\\\\":{\\\\\\"mode\\\\\\":\\\\\\"migration_holo\\\\\\",\\\\\\"resourceGroup\\\\\\":\\\\\\"280749\\\\\\",\\\\\\"name\\\\\\":\\\\\\"h\\\\\\"},\\\\\\"type\\\\\\":\\\\\\"job\\\\\\",\\\\\\"steps\\\\\\":[{\\\\\\"stepType\\\\\\":\\\\\\"mysql\\\\\\",\\\\\\"parameter\\\\\\":{\\\\\\"connection\\\\\\":[{\\\\\\"datasourceType\\\\\\":\\\\\\"mysql\\\\\\",\\\\\\"datasource\\\\\\":\\\\\\"mm\\\\\\",\\\\\\"selectedTables\\\\\\":[{\\\\\\"schema\\\\\\":[{\\\\\\"tableInfos\\\\\\":[{\\\\\\"enable\\\\\\":true,\\\\\\"table\\\\\\":\\\\\\"m_v1\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"m_v1\\\\\\"}]}],\\\\\\"dbName\\\\\\":\\\\\\"m\\\\\\"}]}]},\\\\\\"name\\\\\\":\\\\\\"reader\\\\\\",\\\\\\"category\\\\\\":\\\\\\"reader\\\\\\"},{\\\\\\"stepType\\\\\\":\\\\\\"holo\\\\\\",\\\\\\"parameter\\\\\\":{\\\\\\"datasource\\\\\\":\\\\\\"h\\\\\\",\\\\\\"tableMappingRule\\\\\\":{\\\\\\"datasource\\\\\\":[{\\\\\\"tableRule\\\\\\":[{\\\\\\"srcTable\\\\\\":\\\\\\"m_v1\\\\\\",\\\\\\"mergeIntoCycleType\\\\\\":\\\\\\"DEFAULT\\\\\\",\\\\\\"hourDeltaEnable\\\\\\":false,\\\\\\"dstTable\\\\\\":\\\\\\"m.m_v1\\\\\\",\\\\\\"dayDeltaEnable\\\\\\":false,\\\\\\"primaryKeyInfo\\\\\\":{\\\\\\"column\\\\\\":[\\\\\\"id\\\\\\"],\\\\\\"type\\\\\\":\\\\\\"pk\\\\\\"},\\\\\\"dstCreateTableInfo\\\\\\":{\\\\\\"indexType\\\\\\":\\\\\\"m_v1\\\\\\",\\\\\\"dataColumn\\\\\\":[{\\\\\\"columnSize\\\\\\":0,\\\\\\"name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"index\\\\\\":0,\\\\\\"comment\\\\\\":\\\\\\"\\\\\\",\\\\\\"newDigit\\\\\\":0,\\\\\\"type\\\\\\":\\\\\\"int8\\\\\\",\\\\\\"digit\\\\\\":0,\\\\\\"primaryKey\\\\\\":true}],\\\\\\"schemaName\\\\\\":\\\\\\"m\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"m_v1\\\\\\"},\\\\\\"srcDbName\\\\\\":\\\\\\"m\\\\\\"}],\\\\\\"srcDatasourceName\\\\\\":\\\\\\"mm\\\\\\"}],\\\\\\"totalTableMapping\\\\\\":1},\\\\\\"writeMode\\\\\\":\\\\\\"replay\\\\\\"},\\\\\\"name\\\\\\":\\\\\\"writer\\\\\\",\\\\\\"category\\\\\\":\\\\\\"writer\\\\\\"}],\\\\\\"version\\\\\\":\\\\\\"2.0\\\\\\",\\\\\\"order\\\\\\":{\\\\\\"hops\\\\\\":[{\\\\\\"from\\\\\\":\\\\\\"reader\\\\\\",\\\\\\"to\\\\\\":\\\\\\"writer\\\\\\"}]}}\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0bc1411515937635973****\\n \\n success\\n fileId:[100] is invalid.\\n {\\"extend\\":{\\"mode\\":\\"migration_holo\\",\\"resourceGroup\\":\\"280749\\",\\"name\\":\\"h\\"},\\"type\\":\\"job\\",\\"steps\\":[{\\"stepType\\":\\"mysql\\",\\"parameter\\":{\\"connection\\":[{\\"datasourceType\\":\\"mysql\\",\\"datasource\\":\\"mm\\",\\"selectedTables\\":[{\\"schema\\":[{\\"tableInfos\\":[{\\"enable\\":true,\\"table\\":\\"m_v1\\",\\"tableName\\":\\"m_v1\\"}]}],\\"dbName\\":\\"m\\"}]}]},\\"name\\":\\"reader\\",\\"category\\":\\"reader\\"},{\\"stepType\\":\\"holo\\",\\"parameter\\":{\\"datasource\\":\\"h\\",\\"tableMappingRule\\":{\\"datasource\\":[{\\"tableRule\\":[{\\"srcTable\\":\\"m_v1\\",\\"mergeIntoCycleType\\":\\"DEFAULT\\",\\"hourDeltaEnable\\":false,\\"dstTable\\":\\"m.m_v1\\",\\"dayDeltaEnable\\":false,\\"primaryKeyInfo\\":{\\"column\\":[\\"id\\"],\\"type\\":\\"pk\\"},\\"dstCreateTableInfo\\":{\\"indexType\\":\\"m_v1\\",\\"dataColumn\\":[{\\"columnSize\\":0,\\"name\\":\\"id\\",\\"index\\":0,\\"comment\\":\\"\\",\\"newDigit\\":0,\\"type\\":\\"int8\\",\\"digit\\":0,\\"primaryKey\\":true}],\\"schemaName\\":\\"m\\",\\"tableName\\":\\"m_v1\\"},\\"srcDbName\\":\\"m\\"}],\\"srcDatasourceName\\":\\"mm\\"}],\\"totalTableMapping\\":1},\\"writeMode\\":\\"replay\\"},\\"name\\":\\"writer\\",\\"category\\":\\"writer\\"}],\\"version\\":\\"2.0\\",\\"order\\":{\\"hops\\":[{\\"from\\":\\"reader\\",\\"to\\":\\"writer\\"}]}}\\n \\n","errorExample":""}]', + 'title' => '查询异步任务结果', + 'summary' => '查询异步任务结果。', + 'description' => 'DataWorks目前仅支持直接使用[CreateDISyncTask](~~278725~~)接口创建或[UpdateDISyncTask](~~289109~~)接口更新数据集成离线同步任务,而数据集成实时同步任务则需要先调用[GenerateDISyncTaskConfigForCreating](~~383463~~)、[GenerateDISyncTaskConfigForUpdating](~~383464~~)和[QueryDISyncTaskConfigProcessResult](~~383465~~)接口,获取异步生成创建或更新数据集成同步任务需要的参数,再将该参数作为CreateDISyncTask或UpdateDISyncTask接口的入参,使用CreateDISyncTask创建、UpdateDISyncTask更新相应的实时同步任务。'."\n" + .' 仅支持使用异步方式创建或更新数据集成实时同步任务。', + ], + 'CreateDIJob' => [ + 'summary' => '创建数据集成新版任务,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '155151', + 'abilityTreeNodes' => [ + 'FEATUREdideQHGTK4', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间ID。您可以通过[ListProjects](~~178393~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'JobName', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql_to_holo_sync_8772', + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'Synchronize mysql to hologres', + ], + ], + [ + 'name' => 'MigrationType', + 'in' => 'formData', + 'schema' => [ + 'description' => '同步类型,可选的枚举值有:'."\n" + .'- FullAndRealtimeIncremental(全量和实时增量)'."\n" + .'- RealtimeIncremental(实时增量)'."\n" + .'- Full(全量)'."\n" + .'- OfflineIncremental(离线增量)'."\n" + .'- FullAndOfflineIncremental(全量+离线增量)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'FullAndRealtimeIncremental', + ], + ], + [ + 'name' => 'SourceDataSourceType', + 'in' => 'formData', + 'schema' => [ + 'description' => '源端数据源类型,枚举值:MySQL。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'MySQL', + ], + ], + [ + 'name' => 'DestinationDataSourceType', + 'in' => 'formData', + 'schema' => [ + 'description' => '目标端数据源类型,枚举值:Hologres、Hive。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Hologres', + ], + ], + [ + 'name' => 'SourceDataSourceSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '源端数据源设置,目前仅支持单个数据源。', + 'type' => 'array', + 'items' => [ + 'description' => '源端数据源设置。', + 'type' => 'object', + 'properties' => [ + 'DataSourceName' => [ + 'description' => '数据源名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql_datasource_1', + ], + 'DataSourceProperties' => [ + 'description' => '数据源属性。', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'string', + 'example' => 'TimeZone', + 'description' => '源端数据源属性。MySQL数据源支持的属性名称包括:TimeZone(时区),Encoding(编码)。', + ], + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'DestinationDataSourceSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '目标端数据源设置,目前仅支持单个数据源。', + 'type' => 'array', + 'items' => [ + 'description' => '目标端数据源设置。', + 'type' => 'object', + 'properties' => [ + 'DataSourceName' => [ + 'description' => '数据源名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'holo_datasource_1', + ], + 'DataSourceProperties' => [ + 'description' => '数据源属性。', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'string', + 'example' => 'TimeZone', + 'description' => '目标端数据源属性。Hologres数据源暂无属性可设置。'."\n" + ."\n", + ], + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'ResourceSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '资源设置。', + 'type' => 'object', + 'properties' => [ + 'OfflineResourceSettings' => [ + 'description' => '离线同步资源。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupIdentifier' => [ + 'description' => '离线同步使用的数据集成资源组标识。', + 'type' => 'string', + 'required' => false, + 'example' => 'S_res_group_111_222', + ], + ], + 'required' => false, + ], + 'RealtimeResourceSettings' => [ + 'description' => '实时同步资源。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupIdentifier' => [ + 'description' => '实时同步使用的数据集成资源组标识。', + 'type' => 'string', + 'required' => false, + 'example' => 'S_res_group_111_222', + ], + ], + 'required' => false, + ], + 'RequestedCu' => [ + 'description' => '增全量同步任务使用的资源组cu', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '2.0', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'TransformationRules', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '同步对象转换规则定义列表,列表中每个元素为一条转换规则定义。', + 'type' => 'array', + 'items' => [ + 'description' => '同步对象转换规则定义。', + 'type' => 'object', + 'properties' => [ + 'RuleName' => [ + 'description' => '规则名称,当动作类型和动作作用的目标类型相同时,规则名称需保证唯一性。', + 'type' => 'string', + 'required' => false, + 'example' => 'rename_rule_1', + ], + 'RuleActionType' => [ + 'description' => '动作类型,可选的枚举值:'."\n" + .'- DefinePrimaryKey(定义主键)'."\n" + .'- Rename(重命名)'."\n" + .'- AddColumn(增加列)'."\n" + .'- HandleDml(DML处理)'."\n" + .'- DefineIncrementalCondition(定义增量条件)'."\n" + .'- DefineCycleScheduleSettings(定义周期调度设置)'."\n" + .'- DefineRuntimeSettings(定义高级配置参数)'."\n" + .'- DefinePartitionKey(定义分区列)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Rename', + ], + 'RuleTargetType' => [ + 'description' => '动作作用的目标类型,可选的枚举值:'."\n" + .'- Table(表)'."\n" + .'- Schema(schema)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Table', + ], + 'RuleExpression' => [ + 'description' => '规则表达式,json string格式。'."\n" + ."\n\n" + .'重命名规则(Rename)示例:'."\n" + .'{"expression":"${srcDatasourceName}_${srcDatabaseName}_0922","variables":\\[{"variableName":"srcDatabaseName","variableRules":\\[{"from":"fromdb","to":"todb"}\\]}\\]}'."\n" + .'- expression:为重命名转换规则表达式,表达式内支持变量包括:${srcDatasourceName}(源端数据源名)、${srcDatabaseName}(源端库名)、${srcTableName}(源端表名)。'."\n" + .'- variables:为重命名转换规则表达式中各变量的生成规则,参数默认值为对应含义在源端的原始值,可按需定义一组字符串替换规则对原始值进行改写。variableName:变量名,不含${}。variableRules:变量生成规则组,按顺序串行执行替换,from原始字符串;to替换后字符串。'."\n" + ."\n\n" + .'在目标端增加指定列并赋值规则(AddColumn)示例:'."\n" + .'{"columns":\\[{"columnName":"my_add_column","columnValueType":"Constant","columnValue":"123"}\\]}'."\n" + .'- 如不指定,默认规则为不加列不复制。'."\n" + .'- columnName:附加的列名称。'."\n" + .'- columnValueType:附加的列取值类型,包括Constant(常量)、Variable(变量)。'."\n" + .'- columnValue:附加的列取值。当valueType=Constant时,value为自定义常量,String类型。当valueType=Variable时,value为内置变量。内置变量可选值包括:EXECUTE_TIME(执行时间,Long类型)、DB_NAME_SRC(源端数据库名称,String类型)、DATASOURCE_NAME_SRC(源端数据源名称,String类型)、TABLE_NAME_SRC(源端表名,String类型)、DB_NAME_DEST(目标端数据库名称,String类型)、DATASOURCE_NAME_DEST(目标端数据源名称,String类型)、TABLE_NAME_DEST(目标端表名,String类型)、DB_NAME_SRC_TRANSED(转换后的数据库名称,String类型)。'."\n" + ."\n" + .'指定目标端表的主键列列名(DefinePrimaryKey)示例:'."\n" + .'{"columns":\\["ukcolumn1","ukcolumn2"\\]}'."\n" + .'- 如不指定默认使用源端主键列。'."\n" + .'- 当目标端为已有表:数据集成系统不会修改目标端表结构,如果指定的主键列不在目标端的列集合中,任务启动会报错提示。'."\n" + .'- 当目标端为自动建表:数据集成系统会自动创建目标端表结构,表结构包含定义的主键列。当指定的主键列不在目标端的列集合中时,任务启动会报错提示。'."\n" + ."\n" + .'DML处理规则(HandleDml)示例:'."\n" + .'{"dmlPolicies":\\[{"dmlType":"Delete","dmlAction":"Filter","filterCondition":"id > 1"}\\]}'."\n" + .'- 如不指定,默认规则为Insert、Update、Delete均为Normal'."\n" + .'- dmlType:DML操作类型,Insert(插入)、Update(更新)、Delete(删除)'."\n" + .'- dmlAction:DML处理策略,Normal(正常处理)、Ignore(忽略)、Filter(有条件的正常处理,当dmlType=Update/Delete时使用)、LogicalDelete(逻辑删除)'."\n" + .'- filterCondition:DML过滤条件,当dmlAction=Filter时使用', + 'type' => 'string', + 'required' => false, + 'example' => '{"expression":"${srcDatasoureName}_${srcDatabaseName}"}', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'TableMappings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '同步对象转换映射列表,列表中每个元素描述了一组源端同步对象选择规则列表和在该组同步对象上应用的同步对象转换规则列表。', + 'type' => 'array', + 'items' => [ + 'description' => '同步对象转换映射。', + 'type' => 'object', + 'properties' => [ + 'SourceObjectSelectionRules' => [ + 'description' => '源端对象选择规则,支持多条。', + 'type' => 'array', + 'items' => [ + 'description' => '每条规则可选择待同步源端对象的不同对象类型,如选择源端数据库、源端数据表。', + 'type' => 'object', + 'properties' => [ + 'ObjectType' => [ + 'description' => '对象类型,可选的枚举值:'."\n" + .'- Table(表)'."\n" + .'- Database(数据库)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Table', + ], + 'Expression' => [ + 'description' => '表达式。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql_table_1', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'TransformationRules' => [ + 'description' => '源端对象上应用的转换规则列表。', + 'type' => 'array', + 'items' => [ + 'description' => '源端对象上应用的转换规则。', + 'type' => 'object', + 'properties' => [ + 'RuleName' => [ + 'description' => '规则名称,在一种动作类型+动作作用的目标类型下规则名称唯一。', + 'type' => 'string', + 'required' => false, + 'example' => 'rename_rule_1', + ], + 'RuleActionType' => [ + 'description' => '动作类型,可选的枚举值:'."\n" + .'- DefinePrimaryKey(定义主键)'."\n" + .'- Rename(重命名)'."\n" + .'- AddColumn(增加列)'."\n" + .'- HandleDml(DML处理)'."\n" + .'- DefineIncrementalCondition(定义增量条件)'."\n" + .'- DefineCycleScheduleSettings(定义周期调度设置)'."\n" + .'- DefineRuntimeSettings(定义高级配置参数)'."\n" + .'- DefinePartitionKey(定义分区列)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Rename', + ], + 'RuleTargetType' => [ + 'description' => '动作作用的目标类型,可选的枚举值:'."\n" + .'- Table(表)'."\n" + .'- Schema(schema)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Table', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'JobSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '同步任务维度的设置,含DDL处理策略、源端和目标端列数据类型映射策略、任务运行时参数等。', + 'type' => 'object', + 'properties' => [ + 'DdlHandlingSettings' => [ + 'description' => 'DDL处理设置。', + 'type' => 'array', + 'items' => [ + 'description' => 'DDL处理设置。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => 'DDL类型,可选的枚举值:'."\n" + .'- RenameColumn(重命名列)'."\n" + .'- ModifyColumn(重命名列)'."\n" + .'- CreateTable(重命名列)'."\n" + .'- TruncateTable(清空表)'."\n" + .'- DropTable(删除表)'."\n" + .'- DropColumn(删除列)'."\n" + .'- AddColumn(新增列)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'AddColumn', + ], + 'Action' => [ + 'description' => '处理动作,可选的枚举值:'."\n" + .' '."\n" + .'- Ignore(忽略)'."\n" + .'- Critical(报错)'."\n" + .'- Normal(正常处理)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Critical', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'ColumnDataTypeSettings' => [ + 'description' => '列类型映射,多值。', + 'type' => 'array', + 'items' => [ + 'description' => '列类型映射。', + 'type' => 'object', + 'properties' => [ + 'SourceDataType' => [ + 'description' => '源端类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'bigint', + ], + 'DestinationDataType' => [ + 'description' => '目标端类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'text', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'RuntimeSettings' => [ + 'description' => '运行时设置,多值。', + 'type' => 'array', + 'items' => [ + 'description' => '运行时设置。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '设置名称,可选的枚举值:'."\n" + .'- runtime.offline.speed.limit.mb(离线批量任务限流大小,当runtime.offline.speed.limit.enable=true时有效)'."\n" + .'- runtime.offline.speed.limit.enable(离线批量任务是否开启限流)'."\n" + .'- dst.offline.connection.max(离线批量任务写端最大连接数)'."\n" + .'- runtime.offline.concurrent(离线批量同步任务并发度)'."\n" + .'- dst.realtime.connection.max(实时任务写端最大连接数)'."\n" + .'- runtime.enable.auto.create.schema(是否自动在目标端创建schema)'."\n" + .'- src.offline.datasource.max.connection(离线批量任务源端最大连接数)'."\n" + .'- runtime.realtime.concurrent(实时任务并发度)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'runtime.offline.concurrent', + ], + 'Value' => [ + 'description' => '设置取值。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'CycleScheduleSettings' => [ + 'description' => '周期调度设置。', + 'type' => 'object', + 'properties' => [ + 'CycleMigrationType' => [ + 'description' => '需要周期调度的同步类型。取值范围:'."\n" + .'- Full:全量'."\n" + .'- OfflineIncremental:离线增量', + 'type' => 'string', + 'required' => false, + 'example' => 'Full', + ], + 'ScheduleParameters' => [ + 'description' => '调度参数。', + 'type' => 'string', + 'required' => false, + 'example' => 'bizdate=$bizdate'."\n", + ], + ], + 'required' => false, + ], + 'ChannelSettings' => [ + 'description' => '通道相关任务设置,Json String形式。', + 'type' => 'string', + 'required' => false, + 'example' => '{"structInfo":"MANAGED","storageType":"TEXTFILE","writeMode":"APPEND","partitionColumns":[{"columnName":"pt","columnType":"STRING","comment":""}],"fieldDelimiter":""}'."\n", + ], + 'ImportRuleSettings' => [ + 'description' => '同步任务导入设置。', + 'type' => 'object', + 'properties' => [ + 'Source' => [ + 'description' => '任务配置导入来源。取值范围:'."\n" + .'Datastudio:数据开发中的同步任务', + 'type' => 'string', + 'required' => false, + 'example' => 'Datastudio', + ], + 'FileId' => [ + 'description' => '待导入任务ID。', + 'type' => 'string', + 'required' => false, + 'example' => '10000', + ], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'SystemDebug', + 'in' => 'query', + 'schema' => [ + 'description' => '系统调试使用,默认false。', + 'type' => 'string', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '4F6AB6B3-41FB-5EBB-AFB2-0C98D49DA2BB', + ], + 'DIJobId' => [ + 'description' => '数据集成任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11792', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4F6AB6B3-41FB-5EBB-AFB2-0C98D49DA2BB\\",\\n \\"DIJobId\\": 11792\\n}","errorExample":""},{"type":"xml","example":"\\n 4F6AB6B3-41FB-5EBB-AFB2-0C98D49DA2BB\\n 11792\\n","errorExample":""}]', + 'title' => '创建数据集成新版任务', + ], + 'DeleteDIJob' => [ + 'summary' => '删除数据集成新版任务,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '155161', + 'abilityTreeNodes' => [ + 'FEATUREdideQHGTK4', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIJobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '11126', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'D33D4A51-5845-579A-B4BA-FAADD0F83D53', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D33D4A51-5845-579A-B4BA-FAADD0F83D53\\"\\n}","errorExample":""},{"type":"xml","example":"\\n D33D4A51-5845-579A-B4BA-FAADD0F83D53\\n","errorExample":""}]', + 'title' => '删除数据集成新版任务', + ], + 'GetDIJob' => [ + 'summary' => '查看数据集成新版任务,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '154572', + 'abilityTreeNodes' => [ + 'FEATUREdideQHGTK4', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIJobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '11588', + ], + ], + [ + 'name' => 'WithDetails', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否返回详细配置信息,详细配置信息包括TransformationRules、TableMappings、JobSettings。默认返回。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '任务信息。', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '22', + ], + 'DIJobId' => [ + 'description' => '任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11588', + ], + 'JobName' => [ + 'description' => '任务名称。', + 'type' => 'string', + 'example' => 'mysql_to_holo_sync_445', + ], + 'Description' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'Synchronize mysql to hologres'."\n", + ], + 'MigrationType' => [ + 'description' => '同步类型,可选的枚举值有:'."\n" + .'- FullAndRealtimeIncremental(全量和实时增量)'."\n" + .'- RealtimeIncremental(实时增量)'."\n" + .'- Full(全量)'."\n" + .'- OfflineIncremental(离线增量)'."\n" + .'- FullAndOfflineIncremental(全量+离线增量)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'FullAndRealtimeIncremental', + ], + 'SourceDataSourceType' => [ + 'description' => '源端数据源类型,枚举值:MySQL。', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'MySQL', + ], + 'DestinationDataSourceType' => [ + 'description' => '目标端数据源类型,枚举值:Hologres、Hive。', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Hologres', + ], + 'SourceDataSourceSettings' => [ + 'description' => '源端数据源设置,目前仅支持单个数据源。', + 'type' => 'array', + 'items' => [ + 'description' => '源端数据源设置。', + 'type' => 'object', + 'properties' => [ + 'DataSourceName' => [ + 'description' => '数据源名称。', + 'type' => 'string', + 'example' => 'mysql_datasource_1', + ], + 'DataSourceProperties' => [ + 'description' => '数据源属性。', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'description' => '源端数据源属性。 MySQL数据源支持的属性名称包括:TimeZone(时区),Encoding(编码)。', + 'example' => 'TimeZone', + ], + ], + ], + ], + ], + 'DestinationDataSourceSettings' => [ + 'description' => '目标端数据源设置,目前仅支持单个数据源。', + 'type' => 'array', + 'items' => [ + 'description' => '目标端数据源设置。', + 'type' => 'object', + 'properties' => [ + 'DataSourceName' => [ + 'description' => '数据源名称。', + 'type' => 'string', + 'example' => 'holo_datasource_1', + ], + 'DataSourceProperties' => [ + 'description' => '数据源属性。', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'example' => 'TimeZone', + 'description' => '目标端数据源属性。Hologres数据源暂无属性可设置。', + ], + ], + ], + ], + ], + 'ResourceSettings' => [ + 'description' => '资源设置。', + 'type' => 'object', + 'properties' => [ + 'OfflineResourceSettings' => [ + 'description' => '离线同步资源。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupIdentifier' => [ + 'description' => '离线同步使用的数据集成资源组标识。', + 'type' => 'string', + 'example' => 'S_res_group_111_222', + ], + ], + ], + 'RealtimeResourceSettings' => [ + 'description' => '实时同步资源。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupIdentifier' => [ + 'description' => '实时同步使用的数据集成资源组标识。', + 'type' => 'string', + 'example' => 'S_res_group_111_222', + ], + ], + ], + 'RequestedCu' => [ + 'description' => '增全量同步任务使用的资源组cu。', + 'type' => 'number', + 'format' => 'float', + 'example' => '2.0', + ], + ], + ], + 'TransformationRules' => [ + 'description' => '同步对象转换规则定义列表,列表中每个元素为一条转换规则定义。', + 'type' => 'array', + 'items' => [ + 'description' => '同步对象转换规则定义。', + 'type' => 'object', + 'properties' => [ + 'RuleActionType' => [ + 'description' => '动作类型,可选的枚举值:'."\n" + .'- DefinePrimaryKey(定义主键)'."\n" + .'- Rename(重命名)'."\n" + .'- AddColumn(增加列)'."\n" + .'- HandleDml(DML处理)'."\n" + .'- DefineIncrementalCondition(定义增量条件)'."\n" + .'- DefineCycleScheduleSettings(定义周期调度设置)'."\n" + .'- DefineRuntimeSettings(定义高级配置参数)'."\n" + .'- DefinePartitionKey(定义分区列)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Rename', + ], + 'RuleExpression' => [ + 'description' => '规则表达式,json string格式。'."\n" + ."\n" + .'- 重命名规则(Rename)示例: `{"expression":"${srcDatasourceName}_${srcDatabaseName}_0922","variables":\\[{"variableName":"srcDatabaseName","variableRules":\\[{"from":"fromdb","to":"todb"}\\]}\\]}`'."\n" + ."\n" + .' - expression:为重命名转换规则表达式,表达式内支持变量包括:'."\n" + .' - ${srcDatasourceName}(源端数据源名)'."\n" + .' - ${srcDatabaseName}(源端库名)'."\n" + .' - ${srcTableName}(源端表名)'."\n" + .' - variables:为重命名转换规则表达式中各变量的生成规则,参数默认值为对应含义在源端的原始值,可按需定义一组字符串替换规则对原始值进行改写。'."\n" + .' - variableName:变量名,不含${}。'."\n" + .' - variableRules:变量生成规则组,按顺序串行执行替换,from原始字符串;to替换后字符串。'."\n" + ."\n" + .'- 在目标端增加指定列并赋值规则(AddColumn)示例:` {"columns":\\[{"columnName":"my_add_column","columnValueType":"Constant","columnValue":"123"}\\]}`'."\n" + ."\n" + .' 如不指定,默认规则为不加列不复制。'."\n" + .' - columnName:附加的列名称。'."\n" + .' - columnValueType:附加的列取值类型,包括Constant(常量)、Variable(变量)。'."\n" + .' - columnValue:附加的列取值。'."\n" + .' - 当valueType=Constant时,value为自定义常量,String类型。'."\n" + .' - 当valueType=Variable时,value为内置变量。内置变量可选值包括:EXECUTE_TIME(执行时间,Long类型)、DB_NAME_SRC(源端数据库名称,String类型)、DATASOURCE_NAME_SRC(源端数据源名称,String类型)、TABLE_NAME_SRC(源端表名,String类型)、DB_NAME_DEST(目标端数据库名称,String类型)、DATASOURCE_NAME_DEST(目标端数据源名称,String类型)、TABLE_NAME_DEST(目标端表名,String类型)、DB_NAME_SRC_TRANSED(转换后的数据库名称,String类型)。'."\n" + ."\n" + .'- 指定目标端表的主键列列名(DefinePrimaryKey)示例:` {"columns":\\["ukcolumn1","ukcolumn2"\\]}`'."\n" + ."\n" + .' 如不指定默认使用源端主键列。'."\n" + .' - 当目标端为已有表:数据集成系统不会修改目标端表结构,如果指定的主键列不在目标端的列集合中,任务启动会报错提示。'."\n" + .' - 当目标端为自动建表:数据集成系统会自动创建目标端表结构,表结构包含定义的主键列。当指定的主键列不在目标端的列集合中时,任务启动会报错提示。'."\n" + ."\n" + .'- DML处理规则(HandleDml)示例: `{"dmlPolicies":\\[{"dmlType":"Delete","dmlAction":"Filter","filterCondition":"id > 1"}\\]}`'."\n" + ."\n" + .' 如不指定,默认规则为Insert、Update、Delete均为Normal。'."\n" + .' - dmlType:DML操作类型,Insert(插入)、Update(更新)、Delete(删除)。'."\n" + .' - dmlAction:DML处理策略,Normal(正常处理)、Ignore(忽略)、Filter(有条件的正常处理,当dmlType=Update/Delete时使用)、LogicalDelete(逻辑删除)。'."\n" + .' - filterCondition:DML过滤条件,当dmlAction=Filter时使用。', + 'type' => 'string', + 'example' => '{"expression":"${srcDatasoureName}_${srcDatabaseName}"}', + ], + 'RuleName' => [ + 'description' => '规则名称,当动作类型和动作作用的目标类型相同时,规则名称需保证唯一性。', + 'type' => 'string', + 'example' => 'rename_rule_1', + ], + 'RuleTargetType' => [ + 'description' => '动作作用的目标类型,可选的数据类型有:'."\n" + .'- Table(表)'."\n" + .'- Schema(schema)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Table', + ], + ], + ], + ], + 'TableMappings' => [ + 'description' => '同步对象转换映射列表,列表中每个元素描述了一组源端同步对象选择规则列表和在该组同步对象上应用的同步对象转换规则列表。', + 'type' => 'array', + 'items' => [ + 'description' => '同步对象转换映射。', + 'type' => 'object', + 'properties' => [ + 'SourceObjectSelectionRules' => [ + 'description' => '源端对象选择规则,支持多条。', + 'type' => 'array', + 'items' => [ + 'description' => '每条规则可选择待同步源端对象的不同对象类型,如选择源端数据库、源端数据表。', + 'type' => 'object', + 'properties' => [ + 'Expression' => [ + 'description' => '表达式。', + 'type' => 'string', + 'example' => 'mysql_table_1', + ], + 'ObjectType' => [ + 'description' => '对象类型,可选的枚举值有:'."\n" + .'- Table(表)'."\n" + .'- Database(数据库)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Table', + ], + ], + ], + ], + 'TransformationRules' => [ + 'description' => '源端对象上应用的转换规则列表。', + 'type' => 'array', + 'items' => [ + 'description' => '源端对象上应用的转换规则。', + 'type' => 'object', + 'properties' => [ + 'RuleActionType' => [ + 'description' => '动作类型,可选的枚举值:'."\n" + .'- DefinePrimaryKey(定义主键)'."\n" + .'- Rename(重命名)'."\n" + .'- AddColumn(增加列)'."\n" + .'- HandleDml(DML处理)'."\n" + .'- DefineIncrementalCondition(定义增量条件)'."\n" + .'- DefineCycleScheduleSettings(定义周期调度设置)'."\n" + .'- DefineRuntimeSettings(定义高级配置参数)'."\n" + .'- DefinePartitionKey(定义分区列)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Rename', + ], + 'RuleName' => [ + 'description' => '规则名称,在一种动作类型+动作作用的目标类型下规则名称唯一。', + 'type' => 'string', + 'example' => 'rename_rule_1', + ], + 'RuleTargetType' => [ + 'description' => '动作作用的目标类型,可选的枚举值有:'."\n" + .'- Table(表)'."\n" + .'- Schema(schema)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Table', + ], + ], + ], + ], + ], + ], + ], + 'JobSettings' => [ + 'description' => '同步任务维度的设置,含DDL处理策略、源端和目标端列数据类型映射策略、任务运行时参数等。', + 'type' => 'object', + 'properties' => [ + 'ColumnDataTypeSettings' => [ + 'description' => '列类型映射,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '列类型映射。', + 'type' => 'object', + 'properties' => [ + 'SourceDataType' => [ + 'description' => '源端类型。', + 'type' => 'string', + 'example' => 'bigint', + ], + 'DestinationDataType' => [ + 'description' => '目标端类型。', + 'type' => 'string', + 'example' => 'text', + ], + ], + ], + ], + 'DdlHandlingSettings' => [ + 'description' => 'DDL处理设置,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => 'DDL处理设置。', + 'type' => 'object', + 'properties' => [ + 'Action' => [ + 'description' => '处理动作,可选的枚举值:'."\n" + .'- Ignore(忽略)'."\n" + .'- Critical(报错)'."\n" + .'- Normal(正常处理)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Critical', + ], + 'Type' => [ + 'description' => 'DDL类型,可选的枚举值:'."\n" + .'- RenameColumn(重命名列)'."\n" + .'- ModifyColumn(更新列)'."\n" + .'- CreateTable(新建表)'."\n" + .'- TruncateTable(清空表)'."\n" + .'- DropTable(删除表)'."\n" + .'- DropColumn(删除列)'."\n" + .'- AddColumn(新增列)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'AddColumn', + ], + ], + ], + ], + 'RuntimeSettings' => [ + 'description' => '运行时设置,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '运行时设置。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '设置名称,可选的枚举值:'."\n" + .'- runtime.offline.speed.limit.mb(离线批量任务限流大小,当runtime.offline.speed.limit.enable=true时有效)'."\n" + .'- runtime.offline.speed.limit.enable(离线批量任务是否开启限流)'."\n" + .'- dst.offline.connection.max(离线批量任务写端最大连接数)'."\n" + .'- runtime.offline.concurrent(离线批量同步任务并发度)'."\n" + .'- dst.realtime.connection.max(实时任务写端最大连接数)'."\n" + .'- runtime.enable.auto.create.schema(是否自动在目标端创建schema)'."\n" + .'- src.offline.datasource.max.connection(离线批量任务源端最大连接数)'."\n" + .'- runtime.realtime.concurrent(实时任务并发度)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'runtime.offline.concurrent', + ], + 'Value' => [ + 'description' => '设置取值。', + 'type' => 'string', + 'example' => '1', + ], + ], + ], + ], + 'CycleScheduleSettings' => [ + 'description' => '周期调度设置。', + 'type' => 'object', + 'properties' => [ + 'CycleMigrationType' => [ + 'description' => '需要周期调度的同步类型。取值范围:'."\n" + .'- Full:全量'."\n" + .'- OfflineIncremental:离线增量', + 'type' => 'string', + 'example' => 'Full', + ], + 'ScheduleParameters' => [ + 'description' => '调度参数。', + 'type' => 'string', + 'example' => 'bizdate=$bizdate', + ], + ], + ], + 'ChannelSettings' => [ + 'description' => '通道相关任务设置,Json String形式。', + 'type' => 'string', + 'example' => '{"structInfo":"MANAGED","storageType":"TEXTFILE","writeMode":"APPEND","partitionColumns":[{"columnName":"pt","columnType":"STRING","comment":""}],"fieldDelimiter":""}'."\n", + ], + ], + ], + 'CreatedTime' => [ + 'description' => '创建时间戳,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1671516776', + ], + 'CreatedUid' => [ + 'description' => '创建者用户ID。', + 'type' => 'string', + 'example' => '100000001', + ], + 'UpdatedTime' => [ + 'description' => '最近一次更新时间戳,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1673859985', + ], + 'UpdatedUid' => [ + 'description' => '最近一次更新者用户ID。', + 'type' => 'string', + 'example' => '100000001', + ], + 'StartedTime' => [ + 'description' => '最近一次启动时间戳,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1673859999', + ], + 'StartedUid' => [ + 'description' => '最近一次启动者用户ID。', + 'type' => 'string', + 'example' => '100000001', + ], + 'JobStatus' => [ + 'description' => '同步状态,可选的枚举值:'."\n" + .'- Finished(运行成功已结束)'."\n" + .'- Initialized(初始化完成)'."\n" + .'- Stopped(已停止)'."\n" + .'- Failed(运行失败)'."\n" + .'- Running(运行中)'."\n" + .'- Stopping(停止中)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Finished', + ], + 'ErrorMessage' => [ + 'description' => '错误信息,当JobStatus=Failed时使用。', + 'type' => 'string', + 'example' => 'error details xxx', + ], + 'RunStats' => [ + 'description' => '运行统计信息', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'description' => '运行统计信息详情。'."\n" + .'- StructureMigrationTotalTables:结构同步表总数'."\n" + .'- StructureMigrationSuccessTables:结构同步表成功数'."\n" + .'- StructureMigrationFailedTables:结构同步表失败数'."\n" + .'- StructureMigrationStatus:结构同步状态,Waiting、Running、Finished、Failed、Stopped'."\n" + .'- StructureMigrationErrorMessage:结构同步错误信息'."\n" + .'- FullMigrationTotalTables:全量同步表总数'."\n" + .'- FullMigrationSuccessTables:全量同步表成功数'."\n" + .'- FullMigrationFailedTables:全量同步表失败数'."\n" + .'- FullMigrationStatus:全量同步状态'."\n" + .'- FullMigrationErrorMessage:全量同步错误信息'."\n" + .'- RealtimeMigrationMaxDelay:实时同步延迟时长,单位毫秒'."\n" + .'- RealtimeMigrationStatus:实时同步状态'."\n" + .'- RealtimeMigrationErrorMessage:实时已同步错误信息', + 'example' => 'StructureMigrationTotalTables', + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": {\\n \\"ProjectId\\": 22,\\n \\"DIJobId\\": 11588,\\n \\"JobName\\": \\"mysql_to_holo_sync_445\\",\\n \\"Description\\": \\"Synchronize mysql to hologres\\\\n\\",\\n \\"MigrationType\\": \\"FullAndRealtimeIncremental\\",\\n \\"SourceDataSourceType\\": \\"MySQL\\",\\n \\"DestinationDataSourceType\\": \\"Hologres\\",\\n \\"SourceDataSourceSettings\\": [\\n {\\n \\"DataSourceName\\": \\"mysql_datasource_1\\",\\n \\"DataSourceProperties\\": {\\n \\"key\\": \\"TimeZone\\"\\n }\\n }\\n ],\\n \\"DestinationDataSourceSettings\\": [\\n {\\n \\"DataSourceName\\": \\"holo_datasource_1\\",\\n \\"DataSourceProperties\\": {\\n \\"key\\": \\"TimeZone\\"\\n }\\n }\\n ],\\n \\"ResourceSettings\\": {\\n \\"OfflineResourceSettings\\": {\\n \\"ResourceGroupIdentifier\\": \\"S_res_group_111_222\\"\\n },\\n \\"RealtimeResourceSettings\\": {\\n \\"ResourceGroupIdentifier\\": \\"S_res_group_111_222\\"\\n },\\n \\"RequestedCu\\": 2\\n },\\n \\"TransformationRules\\": [\\n {\\n \\"RuleActionType\\": \\"Rename\\",\\n \\"RuleExpression\\": \\"{\\\\\\"expression\\\\\\":\\\\\\"${srcDatasoureName}_${srcDatabaseName}\\\\\\"}\\",\\n \\"RuleName\\": \\"rename_rule_1\\",\\n \\"RuleTargetType\\": \\"Table\\"\\n }\\n ],\\n \\"TableMappings\\": [\\n {\\n \\"SourceObjectSelectionRules\\": [\\n {\\n \\"Expression\\": \\"mysql_table_1\\",\\n \\"ObjectType\\": \\"Table\\"\\n }\\n ],\\n \\"TransformationRules\\": [\\n {\\n \\"RuleActionType\\": \\"Rename\\",\\n \\"RuleName\\": \\"rename_rule_1\\",\\n \\"RuleTargetType\\": \\"Table\\"\\n }\\n ]\\n }\\n ],\\n \\"JobSettings\\": {\\n \\"ColumnDataTypeSettings\\": [\\n {\\n \\"SourceDataType\\": \\"bigint\\",\\n \\"DestinationDataType\\": \\"text\\"\\n }\\n ],\\n \\"DdlHandlingSettings\\": [\\n {\\n \\"Action\\": \\"Critical\\",\\n \\"Type\\": \\"AddColumn\\"\\n }\\n ],\\n \\"RuntimeSettings\\": [\\n {\\n \\"Name\\": \\"runtime.offline.concurrent\\",\\n \\"Value\\": \\"1\\"\\n }\\n ],\\n \\"CycleScheduleSettings\\": {\\n \\"CycleMigrationType\\": \\"Full\\",\\n \\"ScheduleParameters\\": \\"bizdate=$bizdate\\"\\n },\\n \\"ChannelSettings\\": \\"{\\\\\\"structInfo\\\\\\":\\\\\\"MANAGED\\\\\\",\\\\\\"storageType\\\\\\":\\\\\\"TEXTFILE\\\\\\",\\\\\\"writeMode\\\\\\":\\\\\\"APPEND\\\\\\",\\\\\\"partitionColumns\\\\\\":[{\\\\\\"columnName\\\\\\":\\\\\\"pt\\\\\\",\\\\\\"columnType\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"comment\\\\\\":\\\\\\"\\\\\\"}],\\\\\\"fieldDelimiter\\\\\\":\\\\\\"\\\\\\"}\\\\n\\"\\n },\\n \\"CreatedTime\\": 1671516776,\\n \\"CreatedUid\\": \\"100000001\\",\\n \\"UpdatedTime\\": 1673859985,\\n \\"UpdatedUid\\": \\"100000001\\",\\n \\"StartedTime\\": 1673859999,\\n \\"StartedUid\\": \\"100000001\\",\\n \\"JobStatus\\": \\"Finished\\",\\n \\"ErrorMessage\\": \\"error details xxx\\",\\n \\"RunStats\\": {\\n \\"key\\": \\"StructureMigrationTotalTables\\"\\n }\\n },\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 22\\n 11588\\n mysql_to_holo_sync_445\\n mysql同步到hologres\\n FullAndRealtimeIncremental\\n MySQL\\n Hologres\\n \\n mysql_datasource_1\\n \\n TimeZone\\n \\n \\n \\n holo_datasource_1\\n \\n TimeZone\\n \\n \\n \\n \\n S_res_group_111_222\\n \\n \\n S_res_group_111_222\\n \\n \\n \\n Rename\\n {\\"expression\\":\\"${srcDatasoureName}_${srcDatabaseName}\\"}\\n rename_rule_1\\n Table\\n \\n \\n \\n mysql_table_1\\n Table\\n \\n \\n Rename\\n rename_rule_1\\n Table\\n \\n \\n \\n \\n bigint\\n text\\n \\n \\n Critical\\n AddColumn\\n \\n \\n runtime.offline.concurrent\\n 1\\n \\n \\n 1671516776\\n 100000001\\n 1673859985\\n 100000001\\n 1673859999\\n 100000001\\n Finished\\n error details xxx\\n \\n StructureMigrationTotalTables\\n \\n \\n 0000-ABCD-EFG****\\n","errorExample":""}]', + 'title' => '查看数据集成新版任务', + ], + 'ListDIJobs' => [ + 'summary' => '查询数据集成新版任务列表,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '155162', + 'abilityTreeNodes' => [ + 'FEATUREdideQHGTK4', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '1967', + ], + ], + [ + 'name' => 'JobName', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务名称,不填代表不限制,填写支持模糊查询。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql_to_holo_sync_8772', + ], + ], + [ + 'name' => 'SourceDataSourceType', + 'in' => 'formData', + 'schema' => [ + 'description' => '源端数据源类型,不填代表不限制。', + 'type' => 'string', + 'required' => false, + 'example' => 'MySQL', + ], + ], + [ + 'name' => 'DestinationDataSourceType', + 'in' => 'formData', + 'schema' => [ + 'description' => '目标端数据源类型,不填代表不限制。', + 'type' => 'string', + 'required' => false, + 'example' => 'Hologres', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码,默认为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页大小,默认为10,最大支持100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '7263E4AC-9D2E-5B29-B8AF-7C5012E92A41', + ], + 'DIJobPaging' => [ + 'description' => '任务分页结果。', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'description' => '总记录数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '6', + ], + 'PageNumber' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '分页大小。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'DIJobs' => [ + 'description' => '任务列表。', + 'type' => 'array', + 'items' => [ + 'description' => '任务。', + 'type' => 'object', + 'properties' => [ + 'DIJobId' => [ + 'description' => '任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '16626', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1967', + ], + 'JobName' => [ + 'description' => '任务名称。', + 'type' => 'string', + 'example' => 'mysql_to_holo_sync_8772', + ], + 'MigrationType' => [ + 'description' => '同步类型,可选的枚举值有:'."\n" + .'- FullAndRealtimeIncremental(全量和实时增量)'."\n" + .'- RealtimeIncremental(实时增量)'."\n" + .'- Full(全量)', + 'type' => 'string', + 'enumValueTitles' => [ + 'FullAndRealtimeIncremental' => '全量和实时增量', + 'RealtimeIncremental' => '实时增量', + 'Full' => '全量', + ], + 'example' => 'Full', + ], + 'SourceDataSourceType' => [ + 'description' => '源端数据源类型,枚举值:MySQL。', + 'type' => 'string', + 'enumValueTitles' => [ + 'MySQL' => 'MySQL', + ], + 'example' => 'MySQL', + ], + 'DestinationDataSourceType' => [ + 'description' => '目标端数据源类型,枚举值:Hologres。', + 'type' => 'string', + 'enumValueTitles' => [ + 'Hologres' => 'Hologres', + ], + 'example' => 'Hologres', + ], + 'JobStatus' => [ + 'description' => '同步状态,可选的枚举值:'."\n" + .'- Finished(运行成功已结束)'."\n" + .'- Initialized(初始化完成)'."\n" + .'- Stopped(已停止)'."\n" + .'- Failed(运行失败)'."\n" + .'- Running(运行中)'."\n" + .'- Stopping(停止中)', + 'type' => 'string', + 'enumValueTitles' => [ + 'Finished' => '运行成功已结束', + 'Initialized' => '初始化完成', + 'Stopped' => '已停止', + 'Failed' => '运行失败', + 'Running' => '运行中', + 'Stopping' => '停止中', + ], + 'example' => 'Finished', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7263E4AC-9D2E-5B29-B8AF-7C5012E92A41\\",\\n \\"DIJobPaging\\": {\\n \\"TotalCount\\": 6,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"DIJobs\\": [\\n {\\n \\"DIJobId\\": 16626,\\n \\"ProjectId\\": 1967,\\n \\"JobName\\": \\"mysql_to_holo_sync_8772\\",\\n \\"MigrationType\\": \\"Full\\",\\n \\"SourceDataSourceType\\": \\"MySQL\\",\\n \\"DestinationDataSourceType\\": \\"Hologres\\",\\n \\"JobStatus\\": \\"Finished\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 7263E4AC-9D2E-5B29-B8AF-7C5012E92A41\\n \\n 6\\n 1\\n 10\\n \\n 16626\\n 1967\\n mysql_to_holo_sync_8772\\n Full\\n MySQL\\n Hologres\\n Finished\\n \\n \\n","errorExample":""}]', + 'title' => '查询数据集成新版任务列表', + 'description' => '此列表接口仅返回任务基础信息,如需查看任务详细信息,请调用单任务查询接口GetDIJob。', + ], + 'StartDIJob' => [ + 'summary' => '启动数据集成新版任务,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '155172', + 'abilityTreeNodes' => [ + 'FEATUREdideQHGTK4', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIJobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '11743', + ], + ], + [ + 'name' => 'RealtimeStartSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '实时同步启动设置。', + 'type' => 'object', + 'properties' => [ + 'StartTime' => [ + 'description' => '实时同步起始位点时间戳,单位秒。不填默认为不重置位点。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1671516776', + ], + 'FailoverSettings' => [ + 'description' => 'Failover设置。', + 'type' => 'object', + 'properties' => [ + 'Interval' => [ + 'description' => 'Failover时间区间,单位分钟。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10', + ], + 'UpperLimit' => [ + 'description' => 'Failover次数上限。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '30', + ], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'ForceToRerun', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否强制重跑全部同步步骤。不填默认为不强制重跑。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '999431B2-6013-577F-B684-36F7433C753B', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"999431B2-6013-577F-B684-36F7433C753B\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 999431B2-6013-577F-B684-36F7433C753B\\n","errorExample":""}]', + 'title' => '启动数据集成新版任务', + ], + 'StopDIJob' => [ + 'summary' => '停止数据集成新版任务,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '155174', + 'abilityTreeNodes' => [ + 'FEATUREdideQHGTK4', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIJobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '11668', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '92F778C7-8F00-53B1-AE1A-B3B17101247D', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"92F778C7-8F00-53B1-AE1A-B3B17101247D\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 92F778C7-8F00-53B1-AE1A-B3B17101247D\\n","errorExample":""}]', + 'title' => '停止数据集成新版任务', + ], + 'UpdateDIJob' => [ + 'summary' => '更新数据集成新版任务,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '155160', + 'abilityTreeNodes' => [ + 'FEATUREdideQHGTK4', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIJobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '11588', + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql同步到hologres', + ], + ], + [ + 'name' => 'ResourceSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '资源设置。', + 'type' => 'object', + 'properties' => [ + 'OfflineResourceSettings' => [ + 'description' => '离线同步资源。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupIdentifier' => [ + 'description' => '离线同步使用的数据集成资源组标识。', + 'type' => 'string', + 'required' => false, + 'example' => 'S_res_group_111_222', + ], + ], + 'required' => false, + ], + 'RealtimeResourceSettings' => [ + 'description' => '实时同步资源。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupIdentifier' => [ + 'description' => '实时同步使用的数据集成资源组标识。', + 'type' => 'string', + 'required' => false, + 'example' => 'S_res_group_111_222', + ], + ], + 'required' => false, + ], + 'RequestedCu' => [ + 'description' => '增全量同步任务使用的资源组 cu。', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '2.0', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'TransformationRules', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '同步对象转换规则定义列表,列表中每个元素为一条转换规则定义。', + 'type' => 'array', + 'items' => [ + 'description' => '同步对象转换规则定义。', + 'type' => 'object', + 'properties' => [ + 'RuleName' => [ + 'description' => '规则名称,当动作类型和动作作用的目标类型相同时,规则名称需保证唯一性。', + 'type' => 'string', + 'required' => false, + 'example' => 'rename_rule_1', + ], + 'RuleActionType' => [ + 'description' => '动作类型,可选的枚举值:'."\n" + .'- DefinePrimaryKey(定义主键)'."\n" + .'- Rename(重命名)'."\n" + .'- AddColumn(增加列)'."\n" + .'- HandleDml(DML处理)'."\n" + .'- DefineIncrementalCondition(定义增量条件)'."\n" + .'- DefineCycleScheduleSettings(定义周期调度设置)'."\n" + .'- DefineRuntimeSettings(定义高级配置参数)'."\n" + .'- DefinePartitionKey(定义分区列)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Rename', + ], + 'RuleTargetType' => [ + 'description' => '动作作用的目标类型,可选的枚举值:'."\n" + .'- Table(表)'."\n" + .'- Schema(schema)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Table', + ], + 'RuleExpression' => [ + 'description' => '规则表达式,json string格式。'."\n" + ."\n" + .'重命名规则(Rename)示例: {"expression":"${srcDatasourceName}_${srcDatabaseName}_0922","variables":\\[{"variableName":"srcDatabaseName","variableRules":\\[{"from":"fromdb","to":"todb"}\\]}\\]}'."\n" + ."\n" + .'expression:为重命名转换规则表达式,表达式内支持变量包括:${srcDatasourceName}(源端数据源名)、${srcDatabaseName}(源端库名)、${srcTableName}(源端表名)。'."\n" + .'variables:为重命名转换规则表达式中各变量的生成规则,参数默认值为对应含义在源端的原始值,可按需定义一组字符串替换规则对原始值进行改写。variableName:变量名,不含${}。variableRules:变量生成规则组,按顺序串行执行替换,from原始字符串;to替换后字符串。'."\n" + .'在目标端增加指定列并赋值规则(AddColumn)示例: {"columns":\\[{"columnName":"my_add_column","columnValueType":"Constant","columnValue":"123"}\\]}'."\n" + ."\n" + .'如不指定,默认规则为不加列不复制。'."\n" + .'columnName:附加的列名称。'."\n" + .'columnValueType:附加的列取值类型,包括Constant(常量)、Variable(变量)。'."\n" + .'columnValue:附加的列取值。当valueType=Constant时,value为自定义常量,String类型。当valueType=Variable时,value为内置变量。内置变量可选值包括:EXECUTE_TIME(执行时间,Long类型)、DB_NAME_SRC(源端数据库名称,String类型)、DATASOURCE_NAME_SRC(源端数据源名称,String类型)、TABLE_NAME_SRC(源端表名,String类型)、DB_NAME_DEST(目标端数据库名称,String类型)、DATASOURCE_NAME_DEST(目标端数据源名称,String类型)、TABLE_NAME_DEST(目标端表名,String类型)、DB_NAME_SRC_TRANSED(转换后的数据库名称,String类型)。'."\n" + .'指定目标端表的主键列列名(DefinePrimaryKey)示例: {"columns":\\["ukcolumn1","ukcolumn2"\\]}'."\n" + ."\n" + .'如不指定默认使用源端主键列。'."\n" + .'当目标端为已有表:数据集成系统不会修改目标端表结构,如果指定的主键列不在目标端的列集合中,任务启动会报错提示。'."\n" + .'当目标端为自动建表:数据集成系统会自动创建目标端表结构,表结构包含定义的主键列。当指定的主键列不在目标端的列集合中时,任务启动会报错提示。'."\n" + .'DML处理规则(HandleDml)示例: {"dmlPolicies":\\[{"dmlType":"Delete","dmlAction":"Filter","filterCondition":"id > 1"}\\]}'."\n" + ."\n" + .'如不指定,默认规则为Insert、Update、Delete均为Normal'."\n" + .'dmlType:DML操作类型,Insert(插入)、Update(更新)、Delete(删除)'."\n" + .'dmlAction:DML处理策略,Normal(正常处理)、Ignore(忽略)、Filter(有条件的正常处理,当dmlType=Update/Delete时使用)、LogicalDelete(逻辑删除)'."\n" + .'filterCondition:DML过滤条件,当dmlAction=Filter时使用', + 'type' => 'string', + 'required' => false, + 'example' => '{"expression":"${srcDatasoureName}_${srcDatabaseName}"}', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'TableMappings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '同步对象转换映射列表,列表中每个元素描述了一组源端同步对象选择规则列表和在该组同步对象上应用的同步对象转换规则列表。', + 'type' => 'array', + 'items' => [ + 'description' => '同步对象转换映射。', + 'type' => 'object', + 'properties' => [ + 'SourceObjectSelectionRules' => [ + 'description' => '源端对象选择规则,支持多条。', + 'type' => 'array', + 'items' => [ + 'description' => '每条规则可选择待同步源端对象的不同对象类型,如选择源端数据库、源端数据表。', + 'type' => 'object', + 'properties' => [ + 'ObjectType' => [ + 'description' => '对象类型,可选的枚举值:'."\n" + .'- Table(表)'."\n" + .'- Database(数据库)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Table', + ], + 'Expression' => [ + 'description' => '表达式。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql_table_1', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'TransformationRules' => [ + 'description' => '源端对象上应用的转换规则列表。', + 'type' => 'array', + 'items' => [ + 'description' => '源端对象上应用的转换规则。', + 'type' => 'object', + 'properties' => [ + 'RuleName' => [ + 'description' => '规则名称,在一种动作类型+动作作用的目标类型下规则名称唯一。', + 'type' => 'string', + 'required' => false, + 'example' => 'rename_rule_1', + ], + 'RuleActionType' => [ + 'description' => '动作类型,可选的枚举值:'."\n" + .'- DefinePrimaryKey(定义主键)'."\n" + .'- Rename(重命名)'."\n" + .'- AddColumn(增加列)'."\n" + .'- HandleDml(DML处理)'."\n" + .'- DefineIncrementalCondition(定义增量条件)'."\n" + .'- DefineCycleScheduleSettings(定义周期调度设置)'."\n" + .'- DefineRuntimeSettings(定义高级配置参数)'."\n" + .'- DefinePartitionKey(定义分区列)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Rename', + ], + 'RuleTargetType' => [ + 'description' => '动作作用的目标类型,可选的枚举值;'."\n" + .'- Table(表)'."\n" + .'- Schema(schema)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Table', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'JobSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '同步任务维度的设置,含DDL处理策略、源端和目标端列数据类型映射策略、任务运行时参数等。', + 'type' => 'object', + 'properties' => [ + 'DdlHandlingSettings' => [ + 'description' => 'DDL处理设置,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => 'DDL处理设置。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => 'DDL类型,可选的枚举值;'."\n" + .'- RenameColumn(重命名列)'."\n" + .'- ModifyColumn(更新列)'."\n" + .'- CreateTable(新建表)'."\n" + .'- TruncateTable(清空表)'."\n" + .'- DropTable(删除表)'."\n" + .'- DropColumn(删除列)'."\n" + .'- AddColumn(新增列)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'AddColumn', + ], + 'Action' => [ + 'description' => '处理动作,可选的枚举值:'."\n" + .'- Ignore(忽略)'."\n" + .'- Critical(报错)'."\n" + .'- Normal(正常处理)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Critical', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'ColumnDataTypeSettings' => [ + 'description' => '列类型映射,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '列类型映射。', + 'type' => 'object', + 'properties' => [ + 'SourceDataType' => [ + 'description' => '源端类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'bigint', + ], + 'DestinationDataType' => [ + 'description' => '目标端类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'text', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'RuntimeSettings' => [ + 'description' => '运行时设置,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '运行时设置。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '设置名称,可选的枚举值:'."\n" + .' '."\n" + .'- runtime.offline.speed.limit.mb(离线批量任务限流大小,当runtime.offline.speed.limit.enable=true时有效)'."\n" + .'- runtime.offline.speed.limit.enable(离线批量任务是否开启限流)'."\n" + .'- dst.offline.connection.max(离线批量任务写端最大连接数)'."\n" + .'- runtime.offline.concurrent(离线批量同步任务并发度)'."\n" + .'- dst.realtime.connection.max(实时任务写端最大连接数)'."\n" + .'- runtime.enable.auto.create.schema(是否自动在目标端创建schema)'."\n" + .'- src.offline.datasource.max.connection(离线批量任务源端最大连接数)'."\n" + .'- runtime.realtime.concurrent(实时任务并发度)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'runtime.offline.concurrent', + ], + 'Value' => [ + 'description' => '设置取值。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'CycleScheduleSettings' => [ + 'description' => '周期调度设置。', + 'type' => 'object', + 'properties' => [ + 'ScheduleParameters' => [ + 'description' => '调度参数。', + 'type' => 'string', + 'required' => false, + 'example' => 'bizdate=$bizdate'."\n", + ], + ], + 'required' => false, + ], + 'ChannelSettings' => [ + 'description' => '通道相关任务设置,Json String形式。', + 'type' => 'string', + 'required' => false, + 'example' => '{"structInfo":"MANAGED","storageType":"TEXTFILE","writeMode":"APPEND","partitionColumns":[{"columnName":"pt","columnType":"STRING","comment":""}],"fieldDelimiter":""}'."\n", + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'AAC30B35-820D-5F3E-A42C-E96BB6379325', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"AAC30B35-820D-5F3E-A42C-E96BB6379325\\"\\n}","errorExample":""},{"type":"xml","example":"\\n AAC30B35-820D-5F3E-A42C-E96BB6379325\\n","errorExample":""}]', + 'title' => '更新数据集成新版任务', + ], + 'CreateDIAlarmRule' => [ + 'summary' => '创建数据集成新版任务告警规则,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '154822', + 'abilityTreeNodes' => [ + 'FEATUREdideTG7EYI', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIJobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务ID,是告警规则关联的任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '11265', + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql synchronizes to hologres heartbeat alert', + ], + ], + [ + 'name' => 'MetricType', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警指标类型,可选的枚举值:'."\n" + .'- Heartbeat(任务状态报警)'."\n" + .'- FailoverCount(failover次数报警)'."\n" + .'- Delay(任务延迟报警)', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'Heartbeat', + ], + ], + [ + 'name' => 'TriggerConditions', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '告警触发条件列表,支持多条件。', + 'type' => 'array', + 'items' => [ + 'description' => '告警触发条件。', + 'type' => 'object', + 'properties' => [ + 'Severity' => [ + 'description' => '严重程度,可选的枚举值:'."\n" + .'- Warning'."\n" + .'- Critical', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Warning', + ], + 'Duration' => [ + 'description' => '告警计算时间区间,单位分钟。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '15', + ], + 'Threshold' => [ + 'description' => '告警阈值。'."\n" + .'- 任务状态报警:无需填写阈值。'."\n" + .'- failover次数报警:阈值为failover次数。'."\n" + .'- 任务延迟报警:阈值为延迟时长,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '5', + ], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + [ + 'name' => 'NotificationSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '告警通知设置。', + 'type' => 'object', + 'properties' => [ + 'NotificationChannels' => [ + 'description' => '告警通知渠道,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '告警通知渠道。', + 'type' => 'object', + 'properties' => [ + 'Severity' => [ + 'description' => '严重程度。'."\n" + .'- Warning'."\n" + .'- Critical', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Warning', + ], + 'Channels' => [ + 'description' => '通道列表。', + 'type' => 'array', + 'items' => [ + 'description' => '通道,可选的枚举值:'."\n" + .'- Mail(邮件)'."\n" + .'- Phone(电话)'."\n" + .'- Sms(短信)'."\n" + .'- Ding(钉钉)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Ding', + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => true, + ], + 'NotificationReceivers' => [ + 'description' => '告警通知接收方,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '告警通知接收方。', + 'type' => 'object', + 'properties' => [ + 'ReceiverType' => [ + 'description' => '接收方类型。'."\n" + .'- 当告警通知渠道为邮件、电话、短信时,接收方类型选择阿里云用户ID(**AliyunUid**)。'."\n" + .'- 当告警通知渠道为钉钉时,接收方类型选择钉钉token(**DingToken**)。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'DingToken', + ], + 'ReceiverValues' => [ + 'description' => '接收方取值列表。', + 'type' => 'array', + 'items' => [ + 'description' => '接收方取值。'."\n" + .'- 当接收方类型为阿里云ID时,接收方取值为具体阿里云用户ID。'."\n" + .'- 当接收方类型为钉钉token时,接收方取值为具体钉钉token值。', + 'type' => 'string', + 'required' => false, + 'example' => 'token1', + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => true, + ], + 'InhibitionInterval' => [ + 'description' => '告警抑制间隔时长,单位分钟,默认5分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '5', + ], + ], + 'required' => true, + ], + ], + [ + 'name' => 'Enabled', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警规则是否启用,默认不开启。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'default' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'C636A747-7E4E-594D-94CD-2B4F8A9A9A63', + ], + 'DIAlarmRuleId' => [ + 'description' => '告警规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '34988', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"C636A747-7E4E-594D-94CD-2B4F8A9A9A63\\",\\n \\"DIAlarmRuleId\\": 34988\\n}","errorExample":""},{"type":"xml","example":"\\n C636A747-7E4E-594D-94CD-2B4F8A9A9A63\\n 34988\\n","errorExample":""}]', + 'title' => '创建数据集成新版任务告警规则', + 'description' => '当您的任务同步类型中包含实时同步时,支持设置告警规则。', + ], + 'DeleteDIAlarmRule' => [ + 'summary' => '删除数据集成新版任务告警规则,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '154894', + 'abilityTreeNodes' => [ + 'FEATUREdide39WW3A', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIAlarmRuleId', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '34971', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490\\"\\n}","errorExample":""},{"type":"xml","example":"\\n C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490\\n","errorExample":""}]', + 'title' => '删除数据集成新版任务告警规则', + 'description' => '当您的任务同步类型中包含实时同步时,支持设置告警规则。', + ], + 'GetDIAlarmRule' => [ + 'summary' => '查询数据集成新版任务告警规则,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '154881', + 'abilityTreeNodes' => [ + 'FEATUREdide39WW3A', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIAlarmRuleId', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '34994', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '4A807D85-AC9F-55F7-A58F-998D5249CAD9', + ], + 'DIAlarmRule' => [ + 'description' => '告警规则。', + 'type' => 'object', + 'properties' => [ + 'DIAlarmRuleId' => [ + 'description' => '告警规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '34988', + ], + 'DIJobId' => [ + 'description' => '任务ID,是告警规则关联的任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11170', + ], + 'Description' => [ + 'description' => '描述。', + 'type' => 'string', + 'example' => 'mysql synchronizes to hologres heartbeat alert', + ], + 'MetricType' => [ + 'description' => '告警指标类型,可选的枚举值:'."\n" + .'- Heartbeat(任务状态报警)'."\n" + .'- FailoverCount(failover次数报警)'."\n" + .'- Delay(任务延迟报警)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Heartbeat', + ], + 'Enabled' => [ + 'description' => '告警规则是否启用。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'TriggerConditions' => [ + 'description' => '告警触发条件列表,支持多条件。', + 'type' => 'array', + 'items' => [ + 'description' => '告警触发条件。', + 'type' => 'object', + 'properties' => [ + 'Severity' => [ + 'description' => '严重程度,可选的枚举值:'."\n" + .'- Warning'."\n" + .'- Critical', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Warning', + ], + 'Duration' => [ + 'description' => '告警计算时间区间,单位分钟。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '15', + ], + 'Threshold' => [ + 'description' => '告警阈值。'."\n" + ."\n" + .'- 任务状态报警:无阈值。'."\n" + .'- failover次数报警:阈值为failover次数。'."\n" + .'- 任务延迟报警:阈值为延迟时长,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '5', + ], + ], + ], + ], + 'NotificationSettings' => [ + 'description' => '告警通知设置。', + 'type' => 'object', + 'properties' => [ + 'NotificationChannels' => [ + 'description' => '告警通知渠道,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '告警通知渠道。', + 'type' => 'object', + 'properties' => [ + 'Severity' => [ + 'description' => '严重程度,可选的枚举值:'."\n" + .'- Warning'."\n" + .'- Critical', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Warning', + ], + 'Channels' => [ + 'description' => '通道列表。', + 'type' => 'array', + 'items' => [ + 'description' => '通道,可选的枚举值;'."\n" + .'- Mail(邮件)'."\n" + .'- Phone(电话)'."\n" + .'- Sms(短信)'."\n" + .'- Ding(钉钉)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Ding', + ], + ], + ], + ], + ], + 'NotificationReceivers' => [ + 'description' => '告警通知接收方,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '告警通知接收方。', + 'type' => 'object', + 'properties' => [ + 'ReceiverType' => [ + 'description' => '接收方类型。'."\n" + ."\n" + .'- 当告警通知渠道为邮件、电话、短信时,接收方类型为阿里云用户ID(**AliyunUid**)。'."\n" + .'- 当告警通知渠道为钉钉时,接收方类型为钉钉token(**DingToken**)。', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'DingToken', + ], + 'ReceiverValues' => [ + 'description' => '接收方取值列表。', + 'type' => 'array', + 'items' => [ + 'description' => '接收方取值。'."\n" + ."\n" + .'- 当接收方类型为阿里云ID时,接收方取值为具体阿里云用户ID。'."\n" + .'- 当接收方类型为钉钉token时,接收方取值为具体钉钉token值。', + 'type' => 'string', + 'example' => 'token1', + ], + ], + ], + ], + ], + 'InhibitionInterval' => [ + 'description' => '告警抑制间隔时长,单位分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + ], + ], + 'CreatedUid' => [ + 'description' => '告警规则创建者用户ID。', + 'type' => 'string', + 'example' => '10000001', + ], + 'CreatedTime' => [ + 'description' => '告警规则创建时间戳,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1663573162', + ], + 'UpdatedUid' => [ + 'description' => '告警规则最近一次更新者用户ID。', + 'type' => 'string', + 'example' => '10000001', + ], + 'UpdatedTime' => [ + 'description' => '告警规则最近一次更新时间戳,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1663573163', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4A807D85-AC9F-55F7-A58F-998D5249CAD9\\",\\n \\"DIAlarmRule\\": {\\n \\"DIAlarmRuleId\\": 34988,\\n \\"DIJobId\\": 11170,\\n \\"Description\\": \\"mysql synchronizes to hologres heartbeat alert\\",\\n \\"MetricType\\": \\"Heartbeat\\",\\n \\"Enabled\\": true,\\n \\"TriggerConditions\\": [\\n {\\n \\"Severity\\": \\"Warning\\",\\n \\"Duration\\": 15,\\n \\"Threshold\\": 5\\n }\\n ],\\n \\"NotificationSettings\\": {\\n \\"NotificationChannels\\": [\\n {\\n \\"Severity\\": \\"Warning\\",\\n \\"Channels\\": [\\n \\"Ding\\"\\n ]\\n }\\n ],\\n \\"NotificationReceivers\\": [\\n {\\n \\"ReceiverType\\": \\"DingToken\\",\\n \\"ReceiverValues\\": [\\n \\"token1\\"\\n ]\\n }\\n ],\\n \\"InhibitionInterval\\": 5\\n },\\n \\"CreatedUid\\": \\"10000001\\",\\n \\"CreatedTime\\": 1663573162,\\n \\"UpdatedUid\\": \\"10000001\\",\\n \\"UpdatedTime\\": 1663573163\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 4A807D85-AC9F-55F7-A58F-998D5249CAD9\\n \\n 34988\\n 11170\\n mysql同步到hologres心跳告警\\n Heartbeat\\n true\\n \\n Warning\\n 15\\n 5\\n \\n \\n \\n Warning\\n Ding\\n \\n \\n DingToken\\n token1\\n \\n 5\\n \\n 10000001\\n 1663573162\\n 10000001\\n 1663573163\\n \\n","errorExample":""}]', + 'title' => '查询数据集成新版任务告警规则', + 'description' => '当您的任务同步类型中包含实时同步时,支持设置告警规则。', + ], + 'ListDIAlarmRules' => [ + 'summary' => '查询数据集成新版任务告警规则列表,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '154898', + 'abilityTreeNodes' => [ + 'FEATUREdideTG7EYI', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIJobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务ID,是告警规则关联的任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '11260', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码,默认为1。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页大小,默认为10。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10', + 'default' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '74C2FECD-5B3A-554A-BCF5-35****', + ], + 'DIAlarmRulePaging' => [ + 'description' => '告警规则分页结果。', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'description' => '总记录数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + ], + 'PageNumber' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '分页大小。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'DIJobAlarmRules' => [ + 'description' => '告警规则列表。', + 'type' => 'array', + 'items' => [ + 'description' => '告警规则。', + 'type' => 'object', + 'properties' => [ + 'DIAlarmRuleId' => [ + 'description' => '告警规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '41998', + ], + 'DIJobId' => [ + 'description' => '任务ID,是告警规则关联的任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11260', + ], + 'Description' => [ + 'description' => '描述。', + 'type' => 'string', + 'example' => 'mysql synchronizes to hologres heartbeat alert', + ], + 'MetricType' => [ + 'description' => '告警指标类型,可选的枚举值:'."\n" + .'- Heartbeat(任务状态报警)'."\n" + .'- FailoverCount(failover次数报警)'."\n" + .'- Delay(任务延迟报警)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Heartbeat', + ], + 'Enabled' => [ + 'description' => '告警规则是否启用。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'TriggerConditions' => [ + 'description' => '告警触发条件列表,支持多条件。', + 'type' => 'array', + 'items' => [ + 'description' => '告警触发条件。', + 'type' => 'object', + 'properties' => [ + 'Severity' => [ + 'description' => '严重程度,可选的枚举值:'."\n" + .'- Warning'."\n" + .'- Critical', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Warning', + ], + 'Duration' => [ + 'description' => '告警计算时间区间,单位分钟。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '15', + ], + 'Threshold' => [ + 'description' => '告警阈值。'."\n" + ."\n" + .'- 任务状态报警:无阈值。'."\n" + .'- failover次数报警:阈值为failover次数。'."\n" + .'- 任务延迟报警:阈值为延迟时长,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '5', + ], + ], + ], + ], + 'NotificationSettings' => [ + 'description' => '告警通知设置。', + 'type' => 'object', + 'properties' => [ + 'NotificationChannels' => [ + 'description' => '告警通知渠道,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '告警通知渠道。', + 'type' => 'object', + 'properties' => [ + 'Severity' => [ + 'description' => '严重程度,可选的枚举值:'."\n" + .'- Warning'."\n" + .'- Critical', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Warning', + ], + 'Channels' => [ + 'description' => '通道列表。', + 'type' => 'array', + 'items' => [ + 'description' => '通道,可选的枚举值:'."\n" + .'- Mail(邮件)'."\n" + .'- Phone(电话)'."\n" + .'- Sms(短信)'."\n" + .'- Ding(钉钉)', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'Ding', + ], + ], + ], + ], + ], + 'NotificationReceivers' => [ + 'description' => '告警通知接收方,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '告警通知接收方。', + 'type' => 'object', + 'properties' => [ + 'ReceiverType' => [ + 'description' => '接收方类型。'."\n" + ."\n" + .'- 当告警通知渠道为邮件、电话、短信时,接收方类型为阿里云用户ID(**AliyunUid**)。'."\n" + .'- 当告警通知渠道为钉钉时,接收方类型为钉钉token(**DingToken**)。', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'DingToken', + ], + 'ReceiverValues' => [ + 'description' => '接收方取值列表。', + 'type' => 'array', + 'items' => [ + 'description' => '接收方取值。'."\n" + ."\n" + .'- 当接收方类型为阿里云ID时,接收方取值为具体阿里云用户ID。'."\n" + .'- 当接收方类型为钉钉token时,接收方取值为具体钉钉token值。', + 'type' => 'string', + 'example' => 'token1', + ], + ], + ], + ], + ], + 'InhibitionInterval' => [ + 'description' => '告警抑制间隔时长,单位分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"74C2FECD-5B3A-554A-BCF5-35****\\",\\n \\"DIAlarmRulePaging\\": {\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"DIJobAlarmRules\\": [\\n {\\n \\"DIAlarmRuleId\\": 41998,\\n \\"DIJobId\\": 11260,\\n \\"Description\\": \\"mysql synchronizes to hologres heartbeat alert\\",\\n \\"MetricType\\": \\"Heartbeat\\",\\n \\"Enabled\\": true,\\n \\"TriggerConditions\\": [\\n {\\n \\"Severity\\": \\"Warning\\",\\n \\"Duration\\": 15,\\n \\"Threshold\\": 5\\n }\\n ],\\n \\"NotificationSettings\\": {\\n \\"NotificationChannels\\": [\\n {\\n \\"Severity\\": \\"Warning\\",\\n \\"Channels\\": [\\n \\"Ding\\"\\n ]\\n }\\n ],\\n \\"NotificationReceivers\\": [\\n {\\n \\"ReceiverType\\": \\"DingToken\\",\\n \\"ReceiverValues\\": [\\n \\"token1\\"\\n ]\\n }\\n ],\\n \\"InhibitionInterval\\": 5\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 74C2FECD-5B3A-554A-BCF5-351A36DE9815\\n \\n 2\\n 1\\n 10\\n \\n 41998\\n 11260\\n mysql同步到hologres心跳告警\\n Heartbeat\\n true\\n \\n Warning\\n 15\\n 5\\n \\n \\n \\n Warning\\n Ding\\n \\n \\n DingToken\\n token1\\n \\n 5\\n \\n \\n \\n","errorExample":""}]', + 'title' => '查询数据集成新版任务告警规则列表', + 'description' => '当您的任务同步类型中包含实时同步时,支持设置告警规则。', + ], + 'UpdateDIAlarmRule' => [ + 'summary' => '更新数据集成新版任务告警规则,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '154892', + 'abilityTreeNodes' => [ + 'FEATUREdide39WW3A', + ], + ], + 'parameters' => [ + [ + 'name' => 'DIAlarmRuleId', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '34982', + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql synchronizes to hologres heartbeat alert', + ], + ], + [ + 'name' => 'MetricType', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警指标类型,可选的枚举值:'."\n" + .'- Heartbeat(任务状态报警)'."\n" + .'- FailoverCount(failover次数报警)'."\n" + .'- Delay(任务延迟报警)', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'Heartbeat', + ], + ], + [ + 'name' => 'TriggerConditions', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '告警触发条件列表,支持多条件。', + 'type' => 'array', + 'items' => [ + 'description' => '告警触发条件。', + 'type' => 'object', + 'properties' => [ + 'Severity' => [ + 'description' => '严重程度,可选的枚举值;'."\n" + .'- Warning'."\n" + .'- Critical', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Warning', + ], + 'Duration' => [ + 'description' => '告警计算时间区间,单位分钟。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '15', + ], + 'Threshold' => [ + 'description' => '告警阈值。'."\n" + ."\n" + .'- 任务状态报警:无需填写阈值。'."\n" + .'- failover次数报警:阈值为failover次数。'."\n" + .'- 任务延迟报警:阈值为延迟时长,单位秒。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '5', + ], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + [ + 'name' => 'NotificationSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '告警通知设置。', + 'type' => 'object', + 'properties' => [ + 'NotificationChannels' => [ + 'description' => '告警通知渠道,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '告警通知渠道。', + 'type' => 'object', + 'properties' => [ + 'Severity' => [ + 'description' => '严重程度,可选的枚举值:'."\n" + .'- Warning'."\n" + .'- Critical', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Warning', + ], + 'Channels' => [ + 'description' => '通道列表。', + 'type' => 'array', + 'items' => [ + 'description' => '通道,可选的枚举值:'."\n" + .'- Mail(邮件)'."\n" + .'- Phone(电话)'."\n" + .'- Sms(短信)'."\n" + .'- Ding(钉钉)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'Ding', + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => true, + ], + 'NotificationReceivers' => [ + 'description' => '告警通知接收方,支持多值。', + 'type' => 'array', + 'items' => [ + 'description' => '告警通知接收方。', + 'type' => 'object', + 'properties' => [ + 'ReceiverType' => [ + 'description' => '接收方类型。'."\n" + ."\n" + .'- 当告警通知渠道为邮件、电话、短信时,接收方类型选择阿里云用户ID。'."\n" + .'- 当告警通知渠道为钉钉时,接收方类型选择钉钉token。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'DingToken', + ], + 'ReceiverValues' => [ + 'description' => '接收方取值列表。', + 'type' => 'array', + 'items' => [ + 'description' => '接收方取值。'."\n" + ."\n" + .'- 当接收方类型为阿里云ID时,接收方取值为具体阿里云用户ID。'."\n" + .'- 当接收方类型为钉钉token时,接收方取值为具体钉钉token值。', + 'type' => 'string', + 'required' => false, + 'example' => 'token1', + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => true, + ], + 'InhibitionInterval' => [ + 'description' => '告警抑制间隔时长,单位分钟,默认5分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '5', + ], + ], + 'required' => true, + ], + ], + [ + 'name' => 'Enabled', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警规则是否启用,默认不开启。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'A6C6B486-E3A2-5D52-9E76-D9380485D946', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A6C6B486-E3A2-5D52-9E76-D9380485D946\\"\\n}","errorExample":""},{"type":"xml","example":"\\n A6C6B486-E3A2-5D52-9E76-D9380485D946\\n","errorExample":""}]', + 'title' => '更新数据集成新版任务告警规则', + 'description' => '当您的任务同步类型中包含实时同步时,支持设置告警规则。'."\n" + .'告警规则更新为全字段更新,不支持部分字段更新。', + ], + 'QueryPublicModelEngine' => [ + 'summary' => '使用FML语句查询数据建模引擎的信息。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'Text', + 'in' => 'formData', + 'schema' => [ + 'description' => '输入查询引擎信息的FML语句,详情请参见[使用FML语句配置并管理数据表](~~298128~~)。'."\n" + .'当前仅支持show语句。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'show dim tables', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面获取ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '是调用FML语句查询返回的结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '4CFB2DED-7D9B-4C42-B4AA-CFF4991DFFF4', + ], + 'ReturnValue' => [ + 'description' => '是通过FML语句查询返回的列表信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回通过FML语句查询的数据建模引擎信息的结果。', + 'type' => 'object', + 'example' => '[{ "gmtModified": 最后修改时间,"code": "表名","creatorId": "创建人ID","creatorName": "创建人名称","modifierId": "修改人ID","gmtCreate": 创建时间,"type": 表类型,"ownerId": "负责人ID","uuid": "系统ID","businessUnitUuid": "业务板块ID","detailType": "表二级类型","ownerName": "负责人名称","name": "表显示名","modifierName": "最后修改人名称","businessProcessUuid": "业务过程ID" }]', + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Valid.FML.NoPermission', + 'errorMessage' => 'You are not authorized to access the project resources.', + ], + [ + 'errorCode' => 'Valid.FML.OnlySupportQueryStatement', + 'errorMessage' => 'Only FML query statement is supported.', + ], + [ + 'errorCode' => 'Valid.FML.ProjectNotExist', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Valid.FML.StatementNotValid', + 'errorMessage' => 'The FML statement is invalid.', + ], + [ + 'errorCode' => 'Valid.FML.ProductExpired', + 'errorMessage' => '智能数据建模产品购买已到期', + ], + [ + 'errorCode' => 'Valid.FML.ProductNotActivated', + 'errorMessage' => '智能数据建模产品未开通', + ], + ], + 500 => [ + [ + 'errorCode' => 'Execute.FML.ProcessError', + 'errorMessage' => 'Failed to execute FML statement.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4CFB2DED-7D9B-4C42-B4AA-CFF4991DFFF4\\",\\n \\"ReturnValue\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 4CFB2DED-7D9B-4C42-B4AA-CFF4991DFFF4\\n \\n","errorExample":""}]', + 'title' => '查询数据建模引擎的信息', + 'description' => '- 每次调用该接口均需使用FML语句请求获取查询信息。'."\n" + .'- 除了数仓分层、业务过程和数据域查询外,其他引擎信息查询均可使用分页查询方式。您可以在FML语句结尾增加offset'."\n" + .' num limit num语句,表示查询信息时的偏移量及每次返回的页数。目前偏移量取值仅支持为页数的倍数。'."\n" + .'- 每次调用该接口时,最多返回1000条数据。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => '## 返回结果说明'."\n" + .'### 查询数仓分层使用的FML语句如下。'."\n" + .'show layers; '."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------- | -------- | ---------- | ------------ |'."\n" + .'| code | String | dws | 数仓分层编码 |'."\n" + .'| englishName | String | dws | 数仓分层英文名 |'."\n" + .'| name | String | 汇总层 | 数仓分层中文名 |'."\n" + .'| ownerId | String | 0123456 | 负责人ID |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| description | String | 汇总层描述 | 备注 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n\n" + .'### 查询数据域使用的FML语句如下。'."\n" + .' show domains; '."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------- | -------- | ---------- | ------------ |'."\n" + .'| code | String | member | 数据域编码 |'."\n" + .'| englishName | String | member | 数据域英文名 |'."\n" + .'| name | String | 会员 | 数据域中文名 |'."\n" + .'| ownerId | String | 0123456 | 负责人ID |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| businessUnitCode | String | bu-123456 | 业务板块编码 |'."\n" + .'| description | String | 会员域备注 | 备注 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseIdID |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseIdID |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + .' '."\n" + ."\n" + .'### 查询业务过程使用的FML语句如下。'."\n" + ."\n" + .'- 无条件列表查询:show business_processes;'."\n" + .'- 根据code查询业务过程:show business_processes where code=\'bp-code\'; '."\n" + .'- 根据数据域查询业务过程:show business_processes where data_domain=\'dm-code\'; '."\n" + .' '."\n" + .'输出参数'."\n" + ."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| -------------- | -------- | -------------- | ------------------------------- |'."\n" + .'| code | String | bp-123456 | 业务过程编码 |'."\n" + .'| englishName | String | pay | 业务过程英文名 |'."\n" + .'| name | String | 付款 | 业务过程中文名 |'."\n" + .'| dataDomainCode | String | trade | 所属数据域编码 |'."\n" + .'| dataDomainName | String | 交易 | 所属数据域中文名 |'."\n" + .'| dataDomainUuid | String | dm-123456 | 所属数据域UUID |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| description | String | 付款 | 备注 |'."\n" + .'| source | Integer | 2 | 创建来源。可取值如下:
1:系统创建
2:用户创建|'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | creatorId | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询业务分类使用的FML语句如下。'."\n" + ."\n" + .'```'."\n" + .' show business_categories;'."\n" + .' show business_categories where code=\'code\';'."\n" + .' show business_categories where keyword=\'keyword\';'."\n" + .' show business_categories where uuid=\'uuid\'; '."\n" + .'```'."\n" + ."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ----------------- | ------------------ | -------------------- | -------------------- |'."\n" + .'| categoryDetail | DirectoryDetailDTO | {"uuid": "cate_uuid", "code": "trd", "name": "交易"} | 业务分类详细信息 |'."\n" + .'| name | String | 电商 | 目录名称 |'."\n" + .'| detailType | String | DICT | 目录子类型 |'."\n" + .'| parentUuid | String | dy-123456 | 父级目录UUID |'."\n" + .'| description | String | 描述信息 | 目录描述 |'."\n" + .'| code | String | ind | 业务分类code |'."\n" + .'| dataDomains | List | [{"uuid": "domain1", "code": "trd", "name": "交易域"}] | 业务分类下挂靠数据域 |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| businessUnitCode | String | bu-123456 | 业务板块编码 |'."\n" + .'| description | String | 描述信息 | 目录描述 |'."\n" + .'| categoryPath | String | tm.ind | 业务分类path |'."\n" + ."\n" + .'### 查询数据集市使用的FML语句如下。'."\n" + .' show markets;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ----------------- | ------------------ | -------------------- | -------------------- |'."\n" + .'| categoryDetail | DirectoryDetailDTO | {"uuid": "cate_uuid", "code": "trd", "name": "交易"} | 数据集市详细信息 |'."\n" + .'| name | String | 电商 | 目录名称 |'."\n" + .'| detailType | String | DICT | 目录子类型 |'."\n" + .'| parentUuid | String | dy-123456 | 父级目录UUID |'."\n" + .'| description | String | 描述信息 | 目录描述 |'."\n" + .'| code | String | ind | 业务分类code |'."\n" + .'| subDetailType | String | common | 目录子类型细分类型 |'."\n" + .'| auditDTOList | List | [{"baseId":"123","showName":"test"}] | 审核人员列表 |'."\n" + .'| code | String | member | 数据域编码 |'."\n" + .'| englishName | String | member | 数据域英文名 |'."\n" + .'| name | String | 会员 | 数据域中文名 |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| businessUnitCode | String | bu-123456 | 业务板块编码 |'."\n" + .'| description | String | 会员域备注 | 备注 |'."\n" + .'| auditDTOList | List | [{"baseId":"123","showName":"test"}] | 审核人员列表 |'."\n" + .'| categoryPath | String | tm.ind | 业务分类path |'."\n" + ."\n" + .'### 查询主题域使用的FML语句如下。'."\n" + .' show subjects;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ----------------- | ------------------ | -------------------- | -------------------- |'."\n" + .'| categoryDetail | DirectoryDetailDTO | {"uuid": "cate_uuid", "code": "trd", "name": "交易"} |主题详细信息 |'."\n" + .'| name | String | 电商 | 目录名称 |'."\n" + .'| detailType | String | DICT | 目录子类型 |'."\n" + .'| parentUuid | String | dy-123456 | 父级目录UUID |'."\n" + .'| description | String | 描述信息 | 目录描述 |'."\n" + .'| code | String | ind | 业务分类code |'."\n" + .'| subDetailType | String | common | 目录子类型细分类型 |'."\n" + .'| auditDTOList | List | [{"baseId":"123","showName":"test"}] | 审核人员列表 |'."\n" + .'| code | String | member | 数据域编码 |'."\n" + .'| englishName | String | member | 数据域英文名 |'."\n" + .'| name | String | 会员 | 数据域中文名 |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| businessUnitCode | String | bu-123456 | 业务板块编码 |'."\n" + .'| description | String | 会员域备注 | 备注 |'."\n" + .'| auditDTOList | List | [{"baseId":"123","showName":"test"}] | 审核人员列表 |'."\n" + .'| categoryPath | String | tm.ind | 业务分类path |'."\n" + ."\n" + .'### 查询数据标准集使用的FML语句如下。'."\n" + .' show dict groups;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ------------ | -------- | ---------- | ------------ |'."\n" + .'| name | String | 电商 | 目录名称 |'."\n" + .'| detailType | String | DICT | 目录子类型 |'."\n" + .'| parentUuid | String | dy-123456 | 父级目录UUID |'."\n" + .'| description | String | 描述信息 | 目录描述 |'."\n" + .'| code | String | ind | 业务分类code |'."\n" + .'| uuid | List | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId|'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询数据标准使用的FML语句如下。'."\n" + .' show dicts;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ------------------ | -------- | ------------ | ------------ |'."\n" + .'| code | String | shop_type | 英文缩写 |'."\n" + .'| englishName | String | shop type | 英文名称 |'."\n" + .'| name | String | 店铺类型 | 中文名称 |'."\n" + .'| no | String | SN00001| 标准编号 |'."\n" + .'| dataType | String | STRING| 数据类型 |'."\n" + .'| length | Integer | 10 | 列长度 |'."\n" + .'| numericalPrecision | Integer | 2 | 列精度 |'."\n" + .'| notNull | Boolean | false | 是否不为空 |'."\n" + .'| defaultValue | String | 旗舰店 | 默认值 |'."\n" + .'| parentNo | String | SN0001 | 父级标准编号 |'."\n" + .'| parentName | String | 店铺 | 父级标准名称 |'."\n" + .'| codeTableNo | String | shop_type | 引用码表编号 |'."\n" + .'| codeTableName | String | 店铺类型码表 | 引用码表名称 |'."\n" + .'| codeTableUuid | String | tb-0001 | 引用码表UUID |'."\n" + .'| directoryUuid | String | 所属目录UUID | 所属目录UUID |'."\n" + .'| directoryName | String | 店铺目录 | 所属目录名称 |'."\n" + .'| description | String | remark | 备注 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询标准代码使用的FML语句如下。'."\n" + .' show code tables;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ------------ | -------- | ---------- | ------------ |'."\n" + .'| code | String | shop_type |代码编码 |'."\n" + .'| name | String | 店铺类型 | 代码名称 |'."\n" + .'| extendName | String | shop type | 英文名称 |'."\n" + .'| description | String | remark | 描述 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId|'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询度量单位组使用的FML语句如下。'."\n" + .' show measure_unit groups;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ------------ | -------- | ---------- | ------------ |'."\n" + .'| name | String | 电商 | 目录名称|'."\n" + .'| detailType | String | DICT | 目录子类型 |'."\n" + .'| parentUuid | String | dy-123456 | 父级目录UUID |'."\n" + .'| description | String |描述信息 | 目录描述 |'."\n" + .'| code | String | ind | 分类code |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询度量单位使用的FML语句如下。'."\n" + .' show measure_units;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ------------- | -------- | ------------ | ------------ |'."\n" + .'| code | String | yuan | 英文缩写 |'."\n" + .'| englishName | String | RMB | 英文名称 |'."\n" + .'| name | String | 元 | 列中文名称 |'."\n" + .'| directoryUuid | String | di-0001 | 单位分组UUID |'."\n" + .'| directoryName | String | 货币 | 单位分组名称 |'."\n" + .'| description | String | remark | 备注 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询标准代码内容使用的FML语句如下。'."\n" + .' show codes from code_table;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ----------------- | -------- | ---------------- | ---------------- |'."\n" + .'| codeContent | String | 0 | code内容值 |'."\n" + .'| extendNameContent | String | female | 扩展标准代码名称 |'."\n" + .'| nameContent | String | 女性 | 标准代码名称 |'."\n" + .'| description | String | remark | 标准代码描述 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询命名词典使用的FML语句如下。'."\n" + .'show naming dicts;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ------------ | -------- | ---------- | ------------ |'."\n" + .'| code | String | shop | 英文缩写 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| extendName | String | shop | 英文名称 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + .'| name | String | 店铺 | 中文名称 |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + ."\n" + .'### 查询表信息使用的FML语句如下。'."\n" + .' show tables;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | -------- | ---------- | ------------------------------------------ |'."\n" + .'| code | String | dim_shop | 表编码 |'."\n" + .'| name | String | 店铺维度表 | 表中文名 |'."\n" + .'| type | Integer | 1 | 表类型。取值如下:
0:事实表
1:维度表
3:汇总表
4:应用表
5:贴源表
6:维度 |'."\n" + .'| detailType | String | normal | 表具体类型。可取值如下:
普通维度
枚举维度
事务事实 |'."\n" + .'| businessProcessUuid | String | bp-123456 | 业务过程UUID |'."\n" + .'| businessUnitUuid | String | bu-123456 | 业务板块UUID |'."\n" + .'| dataWarehouseLayerUuid | String | ly-123456 | 数仓层UUID |'."\n" + .'| businessCategoryUuid | String | bc-123456 | 业务分类UUID |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| description | String | 店铺表备注 | 备注 |'."\n" + .'| config | String | json字符串 | 拓展属性配置 |'."\n" + .'| lifeCycle | Integer | 365 | 表生命周期 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询维度表使用的FML语句如下。'."\n" + .' show dim tables; '."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | -------- | ---------- | ---------------------------------------- |'."\n" + .'| code | String | dim_shop | 表编码 |'."\n" + .'| name | String | 店铺维度表 | 表中文名 |'."\n" + .'| type | Integer | 1 | 表类型。可取值如下:
0:事实表
1:维度表 |'."\n" + .'| detailType | String | normal | 表具体类型。可取值如下:
普通维度
枚举维度
事务事实 |'."\n" + .'| businessProcessUuid | String | bp-123456 | 业务过程UUID |'."\n" + .'| businessUnitUuid | String | bu-123456 | 业务板块UUID |'."\n" + .'| dataWarehouseLayerUuid | String | ly-123456 | 数仓层UUID |'."\n" + .'| businessCategoryUuid | String | bc-123456 | 业务分类UUID |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| description | String | 店铺表备注 | 备注 |'."\n" + .'| config | String | json字符串 | 拓展属性配置 |'."\n" + .'| lifeCycle | Integer | 365 | 表生命周期 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询事实表信息使用的FML语句如下。'."\n" + .' show fact tables;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | -------- | ---------- | ---------------------------------------- |'."\n" + .'| code | String | dim_shop | 表编码 |'."\n" + .'| name | String | 店铺维度表 | 表中文名 |'."\n" + .'| type | Integer | 1 | 表类型。可取值如下:
0:事实表
1:维度表 |'."\n" + .'| detailType | String | normal | 表具体类型。可取值如下:
普通维度
枚举维度
事务事实 |'."\n" + .'| businessProcessUuid | String | bp-123456 | 业务过程UUID |'."\n" + .'| businessUnitUuid | String | bu-123456 | 业务板块UUID |'."\n" + .'| dataWarehouseLayerUuid | String | ly-123456 | 数仓层UUID |'."\n" + .'| businessCategoryUuid | String | bc-123456 | 业务分类UUID |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| description | String | 店铺表备注 | 备注 |'."\n" + .'| config | String | json字符串 | 拓展属性配置 |'."\n" + .'| lifeCycle | Integer | 365 | 表生命周期 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询汇总表使用的FML语句如下。'."\n" + .' show dws tables;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | -------- | ------------ | ------------------------------------------ |'."\n" + .'| dataDomainUuid | String | dm-12345 | 数据域UUID |'."\n" + .'| dataDomainCode | String | member | 数据域Code |'."\n" + .'| dataDomainName | String | 会员 | 数据域名字 |'."\n" + .'| timePeriods | List | [{"uuid": "uuid", "code": "code", "name": "中文名称"}] | 时间周期列表 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| code | String | dws_001 | 表名 |'."\n" + .'| name | String | 支付汇总表 | 表中文名称 |'."\n" + .'| adjuncts | List | [{"uuid": "uuid", "code": "code", "name": "中文名称"}] | 修饰词列表 |'."\n" + .'| dimensions | List | [{"uuid": "uuid", "code": "code", "name": "中文名称"}] | 粒度 |'."\n" + .'| bizEntityUuid | String | dim-123456 | 业务对象UUID |'."\n" + .'| bizEntityCode | String | dim_shop | 业务对象英文缩写 |'."\n" + .'| bizEntityName | String | 店铺表 | 业务对象中文名称 |'."\n" + .'| relUuid | String | dim_a-123456 | 关联维度UUID |'."\n" + .'| type | Integer | 3 | 表类型。取值为:3(汇总表) |'."\n" + .'| detailType | String | dws_normal | 表具体类型。可取值如下:
dws_normal:普通汇总表
dws_advanced:轻度汇总表 |'."\n" + .'| businessProcessUuid | String | bp-123456 | 业务过程UUID |'."\n" + .'| businessUnitUuid | String | bu-123456 | 业务板块UUID |'."\n" + .'| dataWarehouseLayerUuid | String | ly-123456 | 数仓层UUID |'."\n" + .'| businessCategoryUuid | String | bc-123456 | 业务分类UUID |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| description | String | 店铺表备注 | 备注 |'."\n" + .'| config | String | json字符串 | 拓展属性配置 |'."\n" + .'| lifeCycle | Integer | 365 | 表生命周期 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询应用表使用的FML语句如下。'."\n" + .' show ads tables;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | -------- | ------------ | ------------------------------------------ |'."\n" + .'| dataDomainUuid | String | dm-12345 | 数据域UUID |'."\n" + .'| dataDomainCode | String | member | 数据域Code |'."\n" + .'| dataDomainName | String | 会员 | 数据域名称 |'."\n" + .'| timePeriods | List | [{"uuid": "uuid", "code": "code", "name": "中文名称"}] | 时间周期列表 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| code | String | dws_001 |表名 |'."\n" + .'| name | String | 支付汇总表 | 表中文名称 |'."\n" + .'| adjuncts | List | [{"uuid": "uuid", "code": "code", "name": "中文名称"}] | 修饰词列表 |'."\n" + .'| dimensions | List | [{"uuid": "uuid", "code": "code", "name": "中文名称"}] |粒度 |'."\n" + .'| bizEntityUuid | String | dim-123456 | 业务对象UUID |'."\n" + .'| bizEntityCode | String | dim_shop | 业务对象英文缩写 |'."\n" + .'| bizEntityName | String | 店铺表 | 业务对象中文名称 |'."\n" + .'| relUuid | String | dim_a-123456 | 关联维度UUID |'."\n" + .'| type | Integer | 1 | 表类型。可取值如下:
0:事实表
1:维度表 |'."\n" + .'| detailType | String | normal | 表具体类型。可取值如下:
普通维度
枚举维度
事务事实 |'."\n" + .'| businessProcessUuid | String | bp-123456 | 业务过程UUID |'."\n" + .'| businessUnitUuid | String | bu-123456 | 业务板块UUID |'."\n" + .'| dataWarehouseLayerUuid | String | ly-123456 | 数仓层UUID |'."\n" + .'| businessCategoryUuid | String | bc-123456 | 业务分类UUID |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| description | String | 店铺表备注 | 备注 |'."\n" + .'| config | String | json字符串 | 拓展属性配置 |'."\n" + .'| lifeCycle | Integer | 365 | 表生命周期 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询表信息同时返回字段信息使用的FML语句如下。'."\n" + .' show full tables;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| -------------- | -------- | ---------- | ---------- |'."\n" + .'| tableUuid | String | tb-123456 | 表UUID |'."\n" + .'| tableCode | String | dim_shop | 表编码 |'."\n" + .'| tableName | String | 店铺表 | 表名称 |'."\n" + .'| columnCode | String | shop_id | 列编码 |'."\n" + .'| columnName | String | 店铺Id | 列名称 |'."\n" + .'| columnUuid | String | col-123456 | 列UUID |'."\n" + .'| columnType | String | STRING | 列数据类型 |'."\n" + .'| columnCategory | String | ATTRIBUTE | 列类别 |'."\n" + ."\n" + .'### 查询列信息使用的FML语句如下。'."\n" + .' show columns from table_code;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ------------------- | -------- | ------------ | ------------ |'."\n" + .'| code | String | seller_id | 列编码 |'."\n" + .'| name | String | 卖家Id | 列中文名 |'."\n" + .'| dataType | String | STRING | 数据类型 |'."\n" + .'| type | String | ATTRIBUTE | 字段类型 |'."\n" + .'| isPrimaryKey | Boolean | false | 是否主键 |'."\n" + .'| isPartitionKey | Boolean | false | 是否分区键 |'."\n" + .'| partitionOrder | Integer | 1 | 分区键顺序 |'."\n" + .'| notNull | Boolean | true | 是否非空 |'."\n" + .'| dataDictionaryUuid | String | member_id | 数据字典编码 |'."\n" + .'| dataDictionaryCode | String | 会员Id | 数据字典名称 |'."\n" + .'| codeTableUuid | String | cd-123456 | 关联码表UUID |'."\n" + .'| codeTableCode | String | sex | 关联码表编码 |'."\n" + .'| codeTableName | String | 性别 | 关联码表名称 |'."\n" + .'| measureUnitCode | String | percent | 关联单位编码 |'."\n" + .'| measureUnitName | String | 分 | 关联单位名称 |'."\n" + .'| sourceProjectName | String | autotest | 来源项目名称 |'."\n" + .'| sourceTableCode | String | dict | 来源表编码 |'."\n" + .'| sourceColumnCode | String | age | 来源字段编码 |'."\n" + .'| sourceRelationTag | String | label | 冗余关系标签 |'."\n" + .'| description | String | 字段备注 | 备注 |'."\n" + .'| orderId | String | 1 | 字段顺序 |'."\n" + .'| columnGroupName | Integer | col_group_1 | 所属字段组 |'."\n" + .'| config | String | json字符串 | 拓展属性配置 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询修饰词使用的FML语句如下。'."\n" + .' show adjuncts;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ----------------- | ------------------ | ---------------------------------------------- | ---------------------------------------------- |'."\n" + .'| businessUnitUuid | String | bu-123456 | 业务板块UUID |'."\n" + .'| businessUnitCode | String | test_bu | 业务板块CODE |'."\n" + .'| businessUnitName | String | 测试板块 | 业务板块NAME |'."\n" + .'| dataDomainUuid | String | dt-123456 | 数据域UUID |'."\n" + .'| dataDomainCode | String | member | 数据域CODE |'."\n" + .'| dataDomainName | String | 会员域 | 数据域NAME |'."\n" + .'| categoryUuid | String | cy-123456 | 业务分类UUID |'."\n" + .'| categoryCode | String | trade | 业务分类CODE |'."\n" + .'| categoryName | String | 电商 | 业务分类NAME |'."\n" + .'| type | AdjunctTypeEnum | DIM_VAL | 修饰词类型 |'."\n" + .'| code | String | beauty | 英文缩写 |'."\n" + .'| name | String | 美妆 | 中文名称 |'."\n" + .'| extendName | String | beauty | 英文名称 |'."\n" + .'| description | String | 美妆描述 | 描述 |'."\n" + .'| bizExpression | String | 用于报表统计口径 | 业务口径 |'."\n" + .'| expression | String | beauty = 1 | 修饰词语义表达式 |'."\n" + .'| bizEntityUuid | String | dim-123456 | 业务对象UUID |'."\n" + .'| bizEntityCode | String | dim_shop | 业务对象英文缩写 |'."\n" + .'| bizEntityName | String | 店铺表 | 业务对象中文名称 |'."\n" + .'| relUuid | String | dim_a-123456 | 关联维度UUID |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| isDeleted | DeleteTagEnum | NO | 是否被删除 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询时间周期使用的FML语句如下。'."\n" + .' show time_periods;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ----------------- | ------------------ | ---------------------------------------------- | ---------------------------------------------- |'."\n" + .'| businessUnitUuid | String | bu-123456 | 所属的业务板块 |'."\n" + .'| businessUnitCode | String | test_bu | 业务板块CODE |'."\n" + .'| type | TimePeriodTypeEnum | DAY | 时间周期类型 |'."\n" + .'| typeName | String | 天 | 时间周期类型名称 |'."\n" + .'| code | String | 1d | 英文缩写 |'."\n" + .'| name | String | 1天 | 中文名称|'."\n" + .'| extendName | String | 1d | 英文名称|'."\n" + .'| description | String | 时间周期描述 | 描述 |'."\n" + .'| isDeleted | DeleteTagEnum | NO | 是否被删除 |'."\n" + .'| timeBegin | String | start_expression | 开始时间表达式|'."\n" + .'| timeEnd | String | end_expression | 结束时间表达式|'."\n" + .'| gmtCreate | TimeStamp | 1633885261000 | 创建时间|'."\n" + .'| gmtModified | TimeStamp | 1633885261000 | 修改时间 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + .'| ownerId | String | 0123456 | 负责人BaseId |'."\n" + .'| ownerName | String | 甲乙丙丁 | 负责人名称 |'."\n" + .'| beginOffset | Integer | 1 | 开始周期偏移量 |'."\n" + .'| endOffset | Integer | 1 | 结束周期偏移量|'."\n" + .'| firstDay | Integer | 1 |周期第一天(必填场景:type in[WEEK, MONTH, QUARTER, YEAR]),"+ "取值范围:"+ "WEEK(初始星期,周日:1, 周一:2, 周二:3, 周三:4, 周四:5, 周五:6, 周六:7), "+ "MONTH(初始号,月初:1, 月末:99, 2号到27号:[2~27]), "+ "QUARTER(初始月,1月到12月:[0~11]), "+ "YEAR(初始月,1月到12月:[0~11])|'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称|'."\n" + ."\n" + .'### 查询原子指标使用的FML语句如下。'."\n" + .' show atomic indicators;'."\n" + .'输出参数 '."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ------------------- | ------------------- | ------------ | ---------------- |'."\n" + .'| dataDistinct | YesOrNoEnum | YES | 数据是否需要去重。可取值如下:
YES
NO |'."\n" + .'| aggFunctionType | AggFunctionEnum | SUM | 指标聚合函数类型。可取值如下:
SUM
COUNT
AVG
MAX
MIN
RATE
RANK
UNDEFINED|'."\n" + .'| calExpression | String | price | 计算口径(code) |'."\n" + .'| dataType | DataTypeNameEnum | TINYINT | 数据类型。可取值为:TINYINT、SMALLINT、INT、BIGINT、BINARY、FLOAT、DOUBLE、DECIMAL、VARCHAR、CHAR、STRING、DATE、DATETIME、TIMESTAMP、BOOLEAN、ARRAY、MAP、STRUCT、JSON |'."\n" + .'| dataRound | String | N | 数据精度。可取值如下:
N
M |'."\n" + .'| dataUnitUuid | String | du-123456 | 指标单位UUID |'."\n" + .'| dataUnitCode | String | percent | 指标单位CODE |'."\n" + .'| dataUnitName | String | 分 | 指标单位名称 |'."\n" + .'| bizExpression | String | 支付金额汇总 | 业务口径 |'."\n" + .'| dataRollUpType | String | AGG_FUNCTION | 数据上卷方式。可取值如下:
AGG_FUNCTION
SUM_THEN_RATE
RATE_THEN_AVG
NOT_SUPPORT |'."\n" + .'| businessUnitUuid | String | bu-0001 | 业务板块UUID |'."\n" + .'| businessUnitCode | String | project_code| 业务板块Code |'."\n" + .'| businessProcessUuid | String | di-0002| 业务过程UUID |'."\n" + .'| businessProcessCode | String | pay| 业务过程Code|'."\n" + .'| businessProcessName | String | 支付 | 业务过程Name |'."\n" + .'| dataDomainUuid | String | di-0003 | 数据域UUID |'."\n" + .'| dataDomainCode | String | trd| 数据域Code |'."\n" + .'| dataDomainName | String | 交易 | 数据域Name |'."\n" + .'| categoryUuid | String | di-0001 | 业务分类UUID |'."\n" + .'| categoryCode | String | tb | 业务分类Code |'."\n" + .'| categoryName | String | 淘宝| 业务分类Name |'."\n" + .'| type |String | ATOMIC | 指标类型。可取值如下:
ATOMIC
DERIVATIVE
DERIVATIVE_COMPOSITE |'."\n" + .'| code | String | pay_amt | 英文缩写 |'."\n" + .'| name | String |支付金额 | 中文名称 |'."\n" + .'| extendName | String | pay amount | 英文名称 |'."\n" + .'| description | String | remark | 描述 |'."\n" + .'| status | String | NORMAL | 指标状态。可取值如下:
DRAFT
DEV
NORMAL |'."\n" + .'| ownerId | String | 0001 | 负责人BaseId |'."\n" + .'| ownerName | String | 负责人姓名 | 负责人名称 |'."\n" + .'| isDeleted | DeleteTagEnum | NO | 是否被删除。可取值如下:
YES
NO|'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询派生指标使用的FML语句如下。'."\n" + .' show derivative indicators;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | ------------------- | ------------------ | ------------------ |'."\n" + .'| timePeriodUuid | String | tp-0001 | 时间周期UUID |'."\n" + .'| timePeriodCode | String | 1d | 时间周期英文缩写 |'."\n" + .'| timePeriodName | String | 近1天 | 时间周期中文名称 |'."\n" + .'| adjunctUuids | List | ["adj-001"]| 修饰词UUID列表 |'."\n" + .'| adjunctCodes | List |["male"]| 修饰词英缩写列表 |'."\n" + .'| adjunctNames | List | 男性 | 修饰词中文名称列表 |'."\n" + .'| atomicIndicatorUuid | String | ind-a-0001 | 原子指标UUID |'."\n" + .'| atomicIndicatorCode | String | pay_amt | 原子指标英文缩写 |'."\n" + .'| atomicIndicatorName | String | 支付金额 | 原子指标中文名称 |'."\n" + .'| dataType | DataTypeNameEnum | BIGINT | 数据类型。可取值为:TINYINT、SMALLINT、INT、BIGINT、BINARY、FLOAT、DOUBLE、DECIMAL、VARCHAR、CHAR、STRING、DATE、DATETIME、TIMESTAMP、BOOLEAN、ARRAY、MAP、STRUCT、JSON |'."\n" + .'| bizEntityUuid | String | dim-123456 | 业务对象UUID |'."\n" + .'| bizEntityCode | String | dim_shop | 业务对象英文缩写 |'."\n" + .'| bizEntityName | String | 店铺表 | 业务对象中文名称 |'."\n" + .'| relUuid | String | dim_a-123456 | 关联维度UUID |'."\n" + .'| indHash | String | hash-0001 | 指标hash |'."\n" + .'| suggestCode | String | pay_amt_1d | 推荐编码 |'."\n" + .'| businessUnitUuid | String | bu-0001 | 业务板块UUID |'."\n" + .'| businessUnitCode | String | project_code | 业务板块Code |'."\n" + .'| businessProcessUuid | String | di-0002 | 业务过程UUID |'."\n" + .'| businessProcessCode | String | pay | 业务过程Code |'."\n" + .'| businessProcessName | String | 支付 | 业务过程Name |'."\n" + .'| dataDomainUuid | String | di-0003 | 数据域UUID |'."\n" + .'| dataDomainCode | String | trd | 数据域Code |'."\n" + .'| dataDomainName | String | 交易 | 数据域Name |'."\n" + .'| categoryUuid | String | di-0001 | 业务分类UUID |'."\n" + .'| categoryCode | String | tb | 业务分类Code |'."\n" + .'| categoryName | String | 淘宝 | 业务分类Name |'."\n" + .'| type | IndicatorTypeEnum | ATOMIC | 指标类型。可取值如下:
ATOMIC
DERIVATIVE
DERIVATIVE_COMPOSITE |'."\n" + .'| code | String | pay_amt | 英文缩写 |'."\n" + .'| name | String | 支付金额 | 中文名称 |'."\n" + .'| extendName | String | pay amount | 英文名称 |'."\n" + .'| description | String | remark | 描述 |'."\n" + .'| status | IndicatorStatusEnum | NORMAL | 指标状态。可取值如下:
DRAFT
DEV
NORMAL |'."\n" + .'| ownerId | String | 0001 | 负责人BaseId |'."\n" + .'| ownerName | String | 负责人姓名 | 负责人名称 |'."\n" + .'| isDeleted | DeleteTagEnum | NO | 是否被删除。可取值如下:
YES
NO |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 修改时间 |'."\n" + .'| creatorId | String | 0123456 | 创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 修改人名称 |'."\n" + ."\n" + .'### 查询复合指标使用的FML语句如下。'."\n" + .'show derivative composite indicators;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | ------------------- | ------------------ | ------------------ |'."\n" + .'| businessUnitCode | String | project_code | 工作空间名称 |'."\n" + .'| businessProcessUuid | String | di-0002 | 业务过程UUID |'."\n" + .'| businessProcessCode | String | pay | 业务过程Code |'."\n" + .'| businessProcessName | String | 支付 | 业务过程名称 |'."\n" + .'| dataDomainUuid | String | di-0003 | 数据域UUID |'."\n" + .'| dataDomainCode | String | trd | 数据域Code |'."\n" + .'| dataDomainName | String | 交易 | 数据域名称 |'."\n" + .'| categoryUuid | String | di-0001 | 业务分类UUID |'."\n" + .'| categoryCode | String | tb | 业务分类Code |'."\n" + .'| categoryName | String | 淘宝 | 业务分类名称 |'."\n" + .'| type | String | DERIVATIVE_COMPOSITE | 计算模式。可取值DERIVATIVE_COMPOSITE (计算表达式)、DERIVATIVE_COMPARISON(同环比) |'."\n" + .'| code | String | pay_amt | 指标英文缩写 |'."\n" + .'| name | String | 支付金额 | 指标中文名称 |'."\n" + .'| extendName | String | pay amount | 指标英文名称 |'."\n" + .'| description | String | remark | 指标描述信息 |'."\n" + .'| calculateExpression | String | {@pay_amt_1d[近1天_支付金额]}/{@pay_amt_1m[近30天_支付金额]} | 计算表达式 |'."\n" + .'| comparisonPeriodType | String | DAY_MOM | 同环比对比类型。取值如下: DAY_MOM(日环比)、 WEEK_MOM(周环比)、WEEK_YOY(周同比)、MONTH_MOM(月环比)、MONTH_YOY(月同比)、QUARTER_MOM(季度环比)、YEAR_MOM(年环比)、YEAR_YOY(年同比) |'."\n" + .'| comparisonIndicatorUuid | String | obj-123456 | 同环比对比指标的UUID |'."\n" + .'| comparisonIndicatorCode | String | pay_amt_1d | 同环比对比指标的英文缩写 |'."\n" + .'| comparisonIndicatorName | String | 近1天_支付金额 | 同环比对比指标的中文名称 |'."\n" + .'| ownerId | String | 0001 | 指标负责人的BaseId |'."\n" + .'| ownerName | String | 张三 | 指标负责人的姓名 |'."\n" + .'| isDeleted | DeleteTagEnum | NO | 是否被删除,可取值YES或NO。 |'."\n" + .'| uuid | String | obj-123456 | 对象唯一标识 |'."\n" + .'| gmtCreate | TimeStamp | 1644397025000 | 指标创建时间 |'."\n" + .'| gmtModified | TimeStamp | 1644459965000 | 指标修改时间 |'."\n" + .'| creatorId | String | 0123456 | 指标创建人BaseId |'."\n" + .'| creatorName | String | 甲乙丙丁 | 指标创建人名称 |'."\n" + .'| modifierId | String | 0123456 | 指标修改人BaseId |'."\n" + .'| modifierName | String | 甲乙丙丁 | 指标修改人名称 |'."\n" + ."\n" + .'### 查询单个指标所依赖模型的相关信息,使用的FML语句如下。'."\n" + .'show statistic indicator table_code;'."\n" + .'输出参数'."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | ------------------- | ------------------ | ------------------ |'."\n" + .'| uuid | String | obj-123456 | 指标唯一标识 |'."\n" + .'| code | String | pay_amt | 指标英文缩写 |'."\n" + .'| name | String | 支付金额 | 指标中文名称 |'."\n" + .'|extendName | String | pay amount | 指标英文名称 |'."\n" + .'| relations | List | 示例请参见下文 | 依赖指标的模型信息列表,EntityInfo的结构参见下文|'."\n" + ."\n" + .'EntityInfo的结构示例及参数描述如下。'."\n" + ."\n" + .'```'."\n" + .'['."\n" + .' {'."\n" + .' "uuid": "uuid",'."\n" + .' "code": "code",'."\n" + .' "name": "中文名称",'."\n" + .' "extendName": "full name in English",'."\n" + .' "entityType": "EntityTypeEnum.BASE_DERIVATIVE_INDICATOR",'."\n" + .' "entityTypeName": "实体类型名称",'."\n" + .' "entitySubType": "DERIVATIVE_INDICATOR",'."\n" + .' "entitySubTypeName": "实体子类型名称",'."\n" + .' "ownerId": "0001",'."\n" + .' "ownerName": "负责人姓名"'."\n" + .' }'."\n" + .']'."\n" + .'```'."\n" + ."\n" + .'| 参数名 | 参数类型 | 示例值 | 描述信息 |'."\n" + .'| ---------------------- | ------------------- | ------------------ | ------------------ |'."\n" + .'| uuid | String | obj-123456 | 模型唯一标识 |'."\n" + .'| code | String | dws_001| 模型英文缩写 |'."\n" + .'| name | String | 支付汇总表 | 模型中文名称 |'."\n" + .'| extendName | String | dws_001| 模型英文名称 |'."\n" + .'| entityType | EntityTypeEnum | Table | 依赖指标的实体类型。取值包括但不限于`TABLE、BASE_ATOMIC_INDICATOR、BASE_DERIVATIVE_INDICATOR` |'."\n" + .'| entityTypeName | String | 表 | 实体类型名称 |'."\n" + .'| entitySubType | String | DWS_TABLE | 实体子类型。取值包括但不限于`DWS_TABLE、ATOMIC_INDICATOR、DERIVATIVE_INDICATOR` |'."\n" + .'| entitySubTypeName | String | 汇总表 | 实体子类型名称 |'."\n" + .'| ownerId | String | 0001 | 负责人BaseId |'."\n" + .'| ownerName | String | 张三 | 负责人名称 |', + 'extraInfo' => ' ', + ], + 'GetAlertMessage' => [ + 'summary' => '调用GetAlertMessage接口,通过获取的AlertId查询报警信息。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '201154', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'AlertId', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警ID,可调用[ListAlertMessages](~~173961~~)获取。', + 'type' => 'string', + 'required' => true, + 'example' => '1421', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回数据详情。', + 'type' => 'object', + 'properties' => [ + 'RemindId' => [ + 'description' => '当Source(报警来源)为REMIND_ALERT(自定义报警)时,返回触发的自定义监控规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'AlertMessageStatus' => [ + 'description' => '报警信息的发送状态。取值如下:'."\n" + .'- READY_TO_SEND(准备发送)'."\n" + .'- SEND_FAIL(发送失败)'."\n" + .'- SEND_SUCCESS(发送成功)'."\n" + .'- SEND_OVERLIMIT(报警超限)', + 'type' => 'string', + 'example' => 'READY_TO_SEND', + ], + 'AlertUser' => [ + 'description' => '报警信息接收人的阿里云UID。', + 'type' => 'string', + 'example' => '9527952795****', + ], + 'AlertTime' => [ + 'description' => '报警时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553524393000', + ], + 'AlertMethod' => [ + 'description' => '报警方式。取值如下:'."\n" + .'- MAIL(邮件)'."\n" + .'- SMS(短信)'."\n" + .'- PHONE(电话,仅DataWorks专业版及以上版本支持)', + 'type' => 'string', + 'example' => 'SMS', + ], + 'Source' => [ + 'description' => '报警来源。取值如下:'."\n" + .'- REMIND_ALERT(自定义报警)'."\n" + .'- TOPIC_ALERT(事件报警)'."\n" + .'- SLA_ALERT(基线预警)'."\n" + .'- NODE_CYCLE_ALERT(节点成环报警)'."\n" + .'- NODE_LONELY_ALERT(节点孤立报警)', + 'type' => 'string', + 'example' => 'REMIND_ALERT', + ], + 'Content' => [ + 'description' => '报警内容。', + 'type' => 'string', + 'example' => 'Node error', + ], + 'RemindName' => [ + 'description' => '当Source(报警来源)为REMIND_ALERT(自定义提醒)时,返回触发的自定义监控规则名称。', + 'type' => 'string', + 'example' => 'Custom monitoring rule name', + ], + 'AlertId' => [ + 'description' => '报警ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'Instances' => [ + 'description' => '当Source(报警来源)为REMIND_ALERT(自定义提醒)时,返回触发自定义监控规则的实例列表。其它类型的报警来源返回为空。', + 'type' => 'array', + 'items' => [ + 'description' => '实例信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '实例状态。取值如下:'."\n" + .'- NOT_RUN(未运行)'."\n" + .'- WAIT_TIME(等待时间)'."\n" + .'- WAIT_RESOURCE(等待资源)'."\n" + .'- RUNNING(运行中)'."\n" + .'- CHECKING(校检中)'."\n" + .'- CHECKING_CONDITION(条件检测中)'."\n" + .'- FAILURE(运行失败)'."\n" + .'- SUCCESS(运行成功)', + 'type' => 'string', + 'example' => 'NOT_RUN', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12312****', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'Node name', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + 'Topics' => [ + 'description' => '当Source(报警来源)为TOPIC_ALERT(全局事件告警)时,返回触发报警的事件列表。当报警来源为其它类型时,返回结果为空。', + 'type' => 'array', + 'items' => [ + 'description' => '事件信息。', + 'type' => 'object', + 'properties' => [ + 'TopicName' => [ + 'description' => '事件的名称。', + 'type' => 'string', + 'example' => 'error', + ], + 'InstanceId' => [ + 'description' => '事件关联的实例ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'TopicId' => [ + 'description' => '事件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '412431', + ], + 'TopicOwner' => [ + 'description' => '事件责任人的阿里云UID。', + 'type' => 'string', + 'example' => '9527952795****', + ], + 'NodeId' => [ + 'description' => '事件关联的任务节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'TopicStatus' => [ + 'description' => '事件的状态。取值如下:'."\n" + .'- IGNORE(已忽略)'."\n" + .'- NEW(新发现)'."\n" + .'- FIXING(处理中)'."\n" + .'- RECOVER(已恢复)', + 'type' => 'string', + 'example' => 'FIXING', + ], + ], + ], + ], + 'Nodes' => [ + 'description' => '不同的报警来源返回不同的节点列表:'."\n" + .'当Source(报警来源)为NODE_ CYCLE_ALERT(节点成环报警)时,返回成环的节点类型。'."\n" + .'当Source(报警来源)为NODELONELYALERT(节点孤立报警)时,返回孤立的节点类型。', + 'type' => 'array', + 'items' => [ + 'description' => '节点信息。', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '95279527952****', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'Node name', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + 'SlaAlert' => [ + 'description' => '当Source(报警来源)为SLA_ALERT(基线报警)时,返回触发基线预警的基本实例信息。当报警来源为其它类型时,返回为空。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '基线状态。取值如下:'."\n" + .'- ERROR(异常)'."\n" + .'- SAFE(安全)'."\n" + .'- DANGEROUS(预警)'."\n" + .'- OVER(破线)', + 'type' => 'string', + 'example' => 'SAFE', + ], + 'BaselineOwner' => [ + 'description' => '基线责任人的阿里云UID,多个UID之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'example' => '952795279****', + ], + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '15142123', + ], + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => 'Baseline name', + ], + 'Bizdate' => [ + 'description' => '基线实例的业务日期时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'ProjectId' => [ + 'description' => '基线所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'InGroupId' => [ + 'description' => '基线实例的周期号:天基线为1,小时基线范围为\\[1,24]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"RemindId\\": 1234,\\n \\"AlertMessageStatus\\": \\"READY_TO_SEND\\",\\n \\"AlertUser\\": \\"9527952795****\\",\\n \\"AlertTime\\": 1553524393000,\\n \\"AlertMethod\\": \\"SMS\\",\\n \\"Source\\": \\"REMIND_ALERT\\",\\n \\"Content\\": \\"Node error\\",\\n \\"RemindName\\": \\"Custom monitoring rule name\\",\\n \\"AlertId\\": 123,\\n \\"Instances\\": [\\n {\\n \\"Status\\": \\"NOT_RUN\\",\\n \\"InstanceId\\": 0,\\n \\"NodeName\\": \\"Node name\\",\\n \\"NodeId\\": 1234,\\n \\"ProjectId\\": 1234\\n }\\n ],\\n \\"Topics\\": [\\n {\\n \\"TopicName\\": \\"error\\",\\n \\"InstanceId\\": 12345,\\n \\"TopicId\\": 412431,\\n \\"TopicOwner\\": \\"9527952795****\\",\\n \\"NodeId\\": 1234,\\n \\"TopicStatus\\": \\"FIXING\\"\\n }\\n ],\\n \\"Nodes\\": [\\n {\\n \\"Owner\\": \\"95279527952****\\",\\n \\"NodeName\\": \\"Node name\\",\\n \\"NodeId\\": 1234,\\n \\"ProjectId\\": 1234\\n }\\n ],\\n \\"SlaAlert\\": {\\n \\"Status\\": \\"SAFE\\",\\n \\"BaselineOwner\\": \\"952795279****\\",\\n \\"BaselineId\\": 15142123,\\n \\"BaselineName\\": \\"Baseline name\\",\\n \\"Bizdate\\": 1553443200000,\\n \\"ProjectId\\": 1234,\\n \\"InGroupId\\": 1\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\n 200\\n The specified parameters are invalid.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n 1234\\n READY_TO_SEND\\n 9527952795****\\n 1553524393000\\n SMS\\n REMIND_ALERT\\n 节点出错\\n 自定义监控规则名称\\n 123\\n \\n NOT_RUN\\n 12312312\\n 节点名\\n 1234\\n 1234\\n \\n \\n 9527出错\\n 12345\\n 412431\\n 9527952795****\\n 1234\\n FIXING\\n \\n \\n 95279527952****\\n 节点名\\n 1234\\n 1234\\n \\n \\n SAFE\\n 952795279****\\n 15142123\\n 基线名\\n 1553443200000\\n 1234\\n 1\\n \\n \\n","errorExample":""}]', + 'title' => '查询报警信息', + ], + 'ListAlertMessages' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78294', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页的页数。默认值为1、最小值为1、最大值为30。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10,最大100条。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'BeginTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '起始报警时间,需要使用yyyy-MM-dd\'T\'HH:mm:ssZ的UTC格式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-04-02T00:00:00+0800', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '截止报警时间,需要使用yyyy-MM-dd\'T\'HH:mm:ssZ的UTC格式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-04-04T00:00:00+0800', + ], + ], + [ + 'name' => 'RemindId', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义规则的ID,当AlertRuleTypes参数配置为USER_DEFINE自定义规则时生效。'."\n" + .'该参数与BaselineId参数配置一个即可。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '9527', + ], + ], + [ + 'name' => 'AlertMethods', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警方式,取值如下:'."\n" + .'- MAIL:邮件。'."\n" + .'- SMS:短信。'."\n" + .'可使用短信告警的地域为:新加坡、马来西亚(吉隆坡)、德国(法兰克福)。'."\n" + .'- PHONE:电话。仅DataWorks专业版及以上版本支持。'."\n" + ."\n" + .'多个报警方式之间使用英文逗号(,)分隔。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'SMS,MAIL,PHONE', + ], + ], + [ + 'name' => 'AlertUser', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警接收人的阿里云UID。', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'AlertRuleTypes', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则类型,包括GLOBAL(全局规则)、USER_DEFINE(自定义规则)和OTHER(其它)。多个规则类型之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'GLOBAL,USER_DEFINE,OTHER', + ], + ], + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线ID,当 alertRuleTypes 包含 GLOBAL 时生效,与 RemindId 互斥', + 'description' => '基线ID。当AlertRuleTypes参数配置为GLOBAL时生效。'."\n" + .'该参数与RemindId参数配置一个即可。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回的报警信息列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前的页数。', + 'type' => 'string', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页的大小。'."\n", + 'type' => 'string', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '报警信息的总数。'."\n", + 'type' => 'string', + 'example' => '100', + ], + 'AlertMessages' => [ + 'description' => '报警信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'RemindId' => [ + 'description' => '当Source(报警来源)为REMIND_ALERT(自定义报警)时,返回触发的自定义监控规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'AlertMessageStatus' => [ + 'description' => '发送状态,包括READY_TO_SEND(准备发送)、SEND_FAIL(发送失败)、SEND_SUCCESS(发送成功)和SEND_OVERLIMIT(报警超限)。', + 'type' => 'string', + 'example' => 'READY_TO_SEND', + ], + 'AlertUser' => [ + 'description' => '接收人的阿里云UID。', + 'type' => 'string', + 'example' => '9527952795****', + ], + 'AlertTime' => [ + 'description' => '报警的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531401000', + ], + 'AlertMethod' => [ + 'description' => '报警方式,包括MAIL(邮件)、SMS(短信)和 PHONE(电话,仅DataWorks专业版及以上版本支持)。', + 'type' => 'string', + 'example' => 'SMS', + ], + 'Source' => [ + 'description' => '报警来源,包括REMIND_ALERT(自定义报警)、TOPIC_ALERT(事件告警)、SLA_ALERT(基线预警)、NODE_CYCLE_ALERT(节点成环报警)和NODE_LONELY_ALERT(节点孤立报警)。', + 'type' => 'string', + 'example' => 'REMIND_ALERT', + ], + 'Content' => [ + 'description' => '报警的内容。', + 'type' => 'string', + 'example' => 'Node error', + ], + 'RemindName' => [ + 'description' => '当Source(报警来源)为REMIND_ALERT(自定义提醒)时,返回触发的自定义监控规则名称。', + 'type' => 'string', + 'example' => 'Custom monitoring rule name', + ], + 'AlertId' => [ + 'description' => '报警ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'Instances' => [ + 'description' => '当Source(报警来源)为REMIND_ALERT(自定义提醒)时,返回触发自定义监控规则的实例列表。其它类型的报警来源返回为空。', + 'type' => 'array', + 'items' => [ + 'description' => '实例信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '实例状态,包括NOT_RUN (未运行)、WAIT_TIME(等待时间)、WAIT_RESOURCE(等待资源)、RUNNING(运行中)、CHECKING(校检中)、CHECKING_CONDITION(条件检测中)、FAILURE(运行失败)和SUCCESS(运行成功)。'."\n", + 'type' => 'string', + 'example' => 'NOT_RUN', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'Node name', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + 'Topics' => [ + 'description' => '当Source(报警来源)为TOPIC_ALERT(全局事件告警)时,返回触发报警的事件列表。当报警来源为其它类型时,返回结果为空。', + 'type' => 'array', + 'items' => [ + 'description' => '事件信息。', + 'type' => 'object', + 'properties' => [ + 'TopicName' => [ + 'description' => '事件的名称。', + 'type' => 'string', + 'example' => '9527 error', + ], + 'InstanceId' => [ + 'description' => '事件关联的实例ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'TopicId' => [ + 'description' => '事件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'TopicOwner' => [ + 'description' => '事件责任人的阿里云UID。', + 'type' => 'string', + 'example' => '9527952795****', + ], + 'NodeId' => [ + 'description' => '事件关联的节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'TopicStatus' => [ + 'description' => '事件状态,包括IGNORE(已忽略),NEW(新发现)、 FIXING(处理中)和RECOVER(已恢复)。', + 'type' => 'string', + 'example' => 'FIXING', + ], + ], + ], + ], + 'Nodes' => [ + 'description' => '不同的报警来源返回不同的节点列表:'."\n" + ."\n" + .'- 当Source(报警来源)为NODE_ CYCLE_ALERT(节点成环报警)时,返回成环的节点类型。'."\n" + ."\n" + .'- 当Source(报警来源)为NODE_LONELY_ALERT(节点孤立报警)时,返回孤立的节点类型。'."\n" + ."\n\n", + 'type' => 'array', + 'items' => [ + 'description' => '节点信息。', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '95279527952****', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'Node name', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + 'SlaAlert' => [ + 'description' => '当Source(报警来源)为SLA_ALERT(基线报警)时,返回触发基线预警的基本实例信息。当报警来源为其它类型时,返回为空。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '基线状态,包括ERROR(异常)、SAFE(安全)、DANGROUS(预警)和OVER(破线)。', + 'type' => 'string', + 'example' => 'SAFE', + ], + 'BaselineOwner' => [ + 'description' => '基线责任人的阿里云UID,多个UID之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'example' => '952795279****', + ], + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => 'Baseline name', + ], + 'Bizdate' => [ + 'description' => '基线实例的业务日期时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'ProjectId' => [ + 'description' => '基线所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'InGroupId' => [ + 'description' => '基线实例的周期号:天基线为1,小时基线范围为\\[1,24\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"10\\",\\n \\"TotalCount\\": \\"100\\",\\n \\"AlertMessages\\": [\\n {\\n \\"RemindId\\": 1234,\\n \\"AlertMessageStatus\\": \\"READY_TO_SEND\\",\\n \\"AlertUser\\": \\"9527952795****\\",\\n \\"AlertTime\\": 1553531401000,\\n \\"AlertMethod\\": \\"SMS\\",\\n \\"Source\\": \\"REMIND_ALERT\\",\\n \\"Content\\": \\"Node error\\",\\n \\"RemindName\\": \\"Custom monitoring rule name\\",\\n \\"AlertId\\": 1234,\\n \\"Instances\\": [\\n {\\n \\"Status\\": \\"NOT_RUN\\",\\n \\"InstanceId\\": 12345,\\n \\"NodeName\\": \\"Node name\\",\\n \\"NodeId\\": 1234,\\n \\"ProjectId\\": 1234\\n }\\n ],\\n \\"Topics\\": [\\n {\\n \\"TopicName\\": \\"9527 error\\",\\n \\"InstanceId\\": 12345,\\n \\"TopicId\\": 1234,\\n \\"TopicOwner\\": \\"9527952795****\\",\\n \\"NodeId\\": 1234,\\n \\"TopicStatus\\": \\"FIXING\\"\\n }\\n ],\\n \\"Nodes\\": [\\n {\\n \\"Owner\\": \\"95279527952****\\",\\n \\"NodeName\\": \\"Node name\\",\\n \\"NodeId\\": 1234,\\n \\"ProjectId\\": 1234\\n }\\n ],\\n \\"SlaAlert\\": {\\n \\"Status\\": \\"SAFE\\",\\n \\"BaselineOwner\\": \\"952795279****\\",\\n \\"BaselineId\\": 1234,\\n \\"BaselineName\\": \\"Baseline name\\",\\n \\"Bizdate\\": 1553443200000,\\n \\"ProjectId\\": 1234,\\n \\"InGroupId\\": 1\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n 1\\n 10\\n 100\\n \\n 1234\\n READY_TO_SEND\\n 9527952795****\\n 1553531401000\\n SMS\\n REMIND_ALERT\\n 节点出错\\n 自定义监控规则名称\\n 1234\\n \\n NOT_RUN\\n 12345\\n 节点名称\\n 1234\\n 1234\\n \\n \\n 9527出错\\n 12345\\n 1234\\n 9527952795****\\n 1234\\n FIXING\\n \\n \\n 95279527952****\\n 节点名称\\n 1234\\n 1234\\n \\n \\n SAFE\\n 952795279****\\n 1234\\n 基线名称\\n 1553443200000\\n 1234\\n 1\\n \\n \\n \\n","errorExample":""}]', + 'title' => '获取报警信息的列表', + 'summary' => '调用ListAlertMessages获取报警信息的列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetBaselineConfig' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78229', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的ID。您可以通过调用[GetNode](~~173977~~)接口获取基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '401', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'ecb967ec-c137-48a5-860****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '基线的详情。', + 'type' => 'object', + 'properties' => [ + 'HourSlaDetail' => [ + 'description' => '小时基线的承诺时间配置(JSON格式),key为周期号,value为hh:mm格式。hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '{"1":"03:58","2":"04:58","3":"05:58","4":"06:58","5":"07:58","6":"08:58","7":"09:58","8":"10:58","9":"11:58","10":"12:58","11":"13:58","12":"14:58","13":"15:58","14":"16:58","15":"17:58","16":"18:58","17":"19:58","18":"20:58","19":"21:58","20":"22:58","21":"23:58","22":"24:58","23":"25:58","24":"26:58"}', + ], + 'IsDefault' => [ + 'description' => '是否为工作空间的默认基线,包括true(是)和false(否)。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Owner' => [ + 'description' => '基线责任人的阿里云UID。有多个责任人时,使用英文逗号(,)分隔。', + 'type' => 'string', + 'example' => '9527952****', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123456', + ], + 'Priority' => [ + 'description' => '基线的优先级,取值集合为{1,3,5,7,8}。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'SlaMinu' => [ + 'description' => '天基线的承诺分钟,取值范围为\\[0, 59\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + ], + 'SlaHour' => [ + 'description' => '天基线的承诺小时,取值范围为\\[0, 47\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '9', + ], + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => 'Baseline name'."\n", + ], + 'HourExpDetail' => [ + 'description' => '小时基线的预警时间配置(JSON格式),key为周期号,value为hh:mm格式。hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '{"1":"03:28","2":"04:28","3":"05:28","4":"06:28","5":"07:28","6":"08:28","7":"09:28","8":"10:28","9":"11:28","10":"12:28","11":"13:28","12":"14:28","13":"15:28","14":"16:28","15":"17:28","16":"18:28","17":"19:28","18":"20:28","19":"21:28","20":"22:28","21":"23:28","22":"24:28","23":"25:28","24":"26:28"}', + ], + 'UseFlag' => [ + 'description' => '基线是否开启,包括true(开启)和false(未开启)。 ', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ExpHour' => [ + 'description' => '天基线的预警小时,取值范围为\\[0, 47\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '7', + ], + 'BaselineType' => [ + 'description' => '基线类型,包括DAILY(天基线)和HOURLY(小时基线)。', + 'type' => 'string', + 'example' => 'DAILY', + ], + 'ExpMinu' => [ + 'description' => '天基线的预警分钟,取值范围为\\[0, 59\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.BaselineNoPermission', + 'errorMessage' => 'You are not authorized to access the baseline.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Wkbench.ServiceError', + 'errorMessage' => 'An internal error occurred.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 401,\\n \\"RequestId\\": \\"ecb967ec-c137-48a5-860****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"HourSlaDetail\\": \\"{\\\\\\"1\\\\\\":\\\\\\"03:58\\\\\\",\\\\\\"2\\\\\\":\\\\\\"04:58\\\\\\",\\\\\\"3\\\\\\":\\\\\\"05:58\\\\\\",\\\\\\"4\\\\\\":\\\\\\"06:58\\\\\\",\\\\\\"5\\\\\\":\\\\\\"07:58\\\\\\",\\\\\\"6\\\\\\":\\\\\\"08:58\\\\\\",\\\\\\"7\\\\\\":\\\\\\"09:58\\\\\\",\\\\\\"8\\\\\\":\\\\\\"10:58\\\\\\",\\\\\\"9\\\\\\":\\\\\\"11:58\\\\\\",\\\\\\"10\\\\\\":\\\\\\"12:58\\\\\\",\\\\\\"11\\\\\\":\\\\\\"13:58\\\\\\",\\\\\\"12\\\\\\":\\\\\\"14:58\\\\\\",\\\\\\"13\\\\\\":\\\\\\"15:58\\\\\\",\\\\\\"14\\\\\\":\\\\\\"16:58\\\\\\",\\\\\\"15\\\\\\":\\\\\\"17:58\\\\\\",\\\\\\"16\\\\\\":\\\\\\"18:58\\\\\\",\\\\\\"17\\\\\\":\\\\\\"19:58\\\\\\",\\\\\\"18\\\\\\":\\\\\\"20:58\\\\\\",\\\\\\"19\\\\\\":\\\\\\"21:58\\\\\\",\\\\\\"20\\\\\\":\\\\\\"22:58\\\\\\",\\\\\\"21\\\\\\":\\\\\\"23:58\\\\\\",\\\\\\"22\\\\\\":\\\\\\"24:58\\\\\\",\\\\\\"23\\\\\\":\\\\\\"25:58\\\\\\",\\\\\\"24\\\\\\":\\\\\\"26:58\\\\\\"}\\",\\n \\"IsDefault\\": true,\\n \\"Owner\\": \\"9527952****\\",\\n \\"ProjectId\\": 123456,\\n \\"Priority\\": 1,\\n \\"SlaMinu\\": 30,\\n \\"SlaHour\\": 9,\\n \\"BaselineId\\": 1234,\\n \\"BaselineName\\": \\"Baseline name\\\\n\\",\\n \\"HourExpDetail\\": \\"{\\\\\\"1\\\\\\":\\\\\\"03:28\\\\\\",\\\\\\"2\\\\\\":\\\\\\"04:28\\\\\\",\\\\\\"3\\\\\\":\\\\\\"05:28\\\\\\",\\\\\\"4\\\\\\":\\\\\\"06:28\\\\\\",\\\\\\"5\\\\\\":\\\\\\"07:28\\\\\\",\\\\\\"6\\\\\\":\\\\\\"08:28\\\\\\",\\\\\\"7\\\\\\":\\\\\\"09:28\\\\\\",\\\\\\"8\\\\\\":\\\\\\"10:28\\\\\\",\\\\\\"9\\\\\\":\\\\\\"11:28\\\\\\",\\\\\\"10\\\\\\":\\\\\\"12:28\\\\\\",\\\\\\"11\\\\\\":\\\\\\"13:28\\\\\\",\\\\\\"12\\\\\\":\\\\\\"14:28\\\\\\",\\\\\\"13\\\\\\":\\\\\\"15:28\\\\\\",\\\\\\"14\\\\\\":\\\\\\"16:28\\\\\\",\\\\\\"15\\\\\\":\\\\\\"17:28\\\\\\",\\\\\\"16\\\\\\":\\\\\\"18:28\\\\\\",\\\\\\"17\\\\\\":\\\\\\"19:28\\\\\\",\\\\\\"18\\\\\\":\\\\\\"20:28\\\\\\",\\\\\\"19\\\\\\":\\\\\\"21:28\\\\\\",\\\\\\"20\\\\\\":\\\\\\"22:28\\\\\\",\\\\\\"21\\\\\\":\\\\\\"23:28\\\\\\",\\\\\\"22\\\\\\":\\\\\\"24:28\\\\\\",\\\\\\"23\\\\\\":\\\\\\"25:28\\\\\\",\\\\\\"24\\\\\\":\\\\\\"26:28\\\\\\"}\\",\\n \\"UseFlag\\": true,\\n \\"ExpHour\\": 7,\\n \\"BaselineType\\": \\"DAILY\\",\\n \\"ExpMinu\\": 30\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 401\\n ecb967ec-c137-48a5-860****\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n {\\"1\\":\\"03:58\\",\\"2\\":\\"04:58\\",\\"3\\":\\"05:58\\",\\"4\\":\\"06:58\\",\\"5\\":\\"07:58\\",\\"6\\":\\"08:58\\",\\"7\\":\\"09:58\\",\\"8\\":\\"10:58\\",\\"9\\":\\"11:58\\",\\"10\\":\\"12:58\\",\\"11\\":\\"13:58\\",\\"12\\":\\"14:58\\",\\"13\\":\\"15:58\\",\\"14\\":\\"16:58\\",\\"15\\":\\"17:58\\",\\"16\\":\\"18:58\\",\\"17\\":\\"19:58\\",\\"18\\":\\"20:58\\",\\"19\\":\\"21:58\\",\\"20\\":\\"22:58\\",\\"21\\":\\"23:58\\",\\"22\\":\\"24:58\\",\\"23\\":\\"25:58\\",\\"24\\":\\"26:58\\"}\\n true\\n 9527952****\\n 1234\\n 1\\n 30\\n 9\\n 1234\\n 基线名称\\n {\\"1\\":\\"03:28\\",\\"2\\":\\"04:28\\",\\"3\\":\\"05:28\\",\\"4\\":\\"06:28\\",\\"5\\":\\"07:28\\",\\"6\\":\\"08:28\\",\\"7\\":\\"09:28\\",\\"8\\":\\"10:28\\",\\"9\\":\\"11:28\\",\\"10\\":\\"12:28\\",\\"11\\":\\"13:28\\",\\"12\\":\\"14:28\\",\\"13\\":\\"15:28\\",\\"14\\":\\"16:28\\",\\"15\\":\\"17:28\\",\\"16\\":\\"18:28\\",\\"17\\":\\"19:28\\",\\"18\\":\\"20:28\\",\\"19\\":\\"21:28\\",\\"20\\":\\"22:28\\",\\"21\\":\\"23:28\\",\\"22\\":\\"24:28\\",\\"23\\":\\"25:28\\",\\"24\\":\\"26:28\\"}\\n true\\n 7\\n DAILY\\n 30\\n \\n","errorExample":""}]', + 'title' => '获取配置详情', + 'summary' => '调用GetBaselineConfig获取配置详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListNodesByBaseline' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78321', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的ID。您可以通过调用[ListBaselineConfigs](~~173964~~)接口获取基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'string', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '基线中的节点列表。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。'."\n", + 'type' => 'string', + 'example' => '9527952****', + ], + 'NodeName' => [ + 'description' => '节点的名称。'."\n", + 'type' => 'string', + 'example' => 'Node name', + ], + 'NodeId' => [ + 'description' => '节点的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.BaselineNoPermission', + 'errorMessage' => 'You are not authorized to access the baseline.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Wkbench.ServiceError', + 'errorMessage' => 'An internal error occurred.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.BaselineNotExist', + 'errorMessage' => 'The baseline does not exist.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": \\"true\\",\\n \\"Data\\": [\\n {\\n \\"Owner\\": \\"9527952****\\",\\n \\"NodeName\\": \\"Node name\\",\\n \\"NodeId\\": 12345,\\n \\"ProjectId\\": 12345\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-E****\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n 9527952****\\n 节点名称\\n 1234\\n 1234\\n \\n","errorExample":""}]', + 'title' => '获取基线中的节点', + 'summary' => '获取基线中的节点(不包含这些节点的上游节点)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListBaselineConfigs' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78295', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页的页数。默认值为1,最小值为1,最大值为30。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页返回的数据行数。默认值为10,最小值为1,最大值为100。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线责任人的阿里云UID。', + 'type' => 'string', + 'required' => false, + 'example' => '95279527****', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。您可以通过ListProjects接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'Priority', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的优先级,取值范围为{1,3,5,7,8} 。多个优先级之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => '1,3,5,7,8', + ], + ], + [ + 'name' => 'Useflag', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否开启,包括true(开启)和false(未开启)。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'BaselineTypes', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线类型,包括DAILY(天基线)和HOURLY(小时基线)。多个类型之间使用英文逗号(,)分隔。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'DAILY,HOURLY', + ], + ], + [ + 'name' => 'SearchText', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线名称的搜索关键字。', + 'type' => 'string', + 'required' => false, + 'example' => 'Baseline name search keywords', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回的基线列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前的页数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页的大小。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '基线的总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Baselines' => [ + 'description' => '基线列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HourSlaDetail' => [ + 'description' => '小时基线的承诺时间配置(JSON格式),key为周期号,value为hh:mm格式。hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '{"1":"03:58","2":"04:58","3":"05:58","4":"06:58","5":"07:58","6":"08:58","7":"09:58","8":"10:58","9":"11:58","10":"12:58","11":"13:58","12":"14:58","13":"15:58","14":"16:58","15":"17:58","16":"18:58","17":"19:58","18":"20:58","19":"21:58","20":"22:58","21":"23:58","22":"24:58","23":"25:58","24":"26:58"}', + ], + 'IsDefault' => [ + 'description' => '是否为工作空间的默认基线,包括true(是)和false(否)。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Owner' => [ + 'description' => '基线责任人的阿里云UID。有多个责任人时,使用英文逗号(,)分隔。'."\n", + 'type' => 'string', + 'example' => '952795****', + ], + 'ProjectId' => [ + 'description' => '基线所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100001', + ], + 'Priority' => [ + 'description' => '基线的优先级,取值集合为{1,3,5,7,8}。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'SlaMinu' => [ + 'description' => '天基线的预警分钟,取值范围为\\[0, 59\\]。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + ], + 'SlaHour' => [ + 'description' => '天基线的承诺小时,取值范围为\\[0, 47\\]。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '9', + ], + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => 'Baseline name', + ], + 'HourExpDetail' => [ + 'description' => '小时基线的预警时间配置(JSON格式),key为周期号,value为hh:mm格式。hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '{"1":"03:28","2":"04:28","3":"05:28","4":"06:28","5":"07:28","6":"08:28","7":"09:28","8":"10:28","9":"11:28","10":"12:28","11":"13:28","12":"14:28","13":"15:28","14":"16:28","15":"17:28","16":"18:28","17":"19:28","18":"20:28","19":"21:28","20":"22:28","21":"23:28","22":"24:28","23":"25:28","24":"26:28"}', + ], + 'UseFlag' => [ + 'description' => '基线是否开启,包括true(开启)和false(未开启)。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ExpHour' => [ + 'description' => '天基线的预警小时,取值范围为\\[0, 47\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '7', + ], + 'BaselineType' => [ + 'description' => '基线类型,包括DAILY(天基线)和HOURLY(小时基线)。 '."\n", + 'type' => 'string', + 'example' => 'DAILY', + ], + 'ExpMinu' => [ + 'description' => '天基线的预警分钟,取值范围为\\[0, 59\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Baselines\\": [\\n {\\n \\"HourSlaDetail\\": \\"{\\\\\\"1\\\\\\":\\\\\\"03:58\\\\\\",\\\\\\"2\\\\\\":\\\\\\"04:58\\\\\\",\\\\\\"3\\\\\\":\\\\\\"05:58\\\\\\",\\\\\\"4\\\\\\":\\\\\\"06:58\\\\\\",\\\\\\"5\\\\\\":\\\\\\"07:58\\\\\\",\\\\\\"6\\\\\\":\\\\\\"08:58\\\\\\",\\\\\\"7\\\\\\":\\\\\\"09:58\\\\\\",\\\\\\"8\\\\\\":\\\\\\"10:58\\\\\\",\\\\\\"9\\\\\\":\\\\\\"11:58\\\\\\",\\\\\\"10\\\\\\":\\\\\\"12:58\\\\\\",\\\\\\"11\\\\\\":\\\\\\"13:58\\\\\\",\\\\\\"12\\\\\\":\\\\\\"14:58\\\\\\",\\\\\\"13\\\\\\":\\\\\\"15:58\\\\\\",\\\\\\"14\\\\\\":\\\\\\"16:58\\\\\\",\\\\\\"15\\\\\\":\\\\\\"17:58\\\\\\",\\\\\\"16\\\\\\":\\\\\\"18:58\\\\\\",\\\\\\"17\\\\\\":\\\\\\"19:58\\\\\\",\\\\\\"18\\\\\\":\\\\\\"20:58\\\\\\",\\\\\\"19\\\\\\":\\\\\\"21:58\\\\\\",\\\\\\"20\\\\\\":\\\\\\"22:58\\\\\\",\\\\\\"21\\\\\\":\\\\\\"23:58\\\\\\",\\\\\\"22\\\\\\":\\\\\\"24:58\\\\\\",\\\\\\"23\\\\\\":\\\\\\"25:58\\\\\\",\\\\\\"24\\\\\\":\\\\\\"26:58\\\\\\"}\\",\\n \\"IsDefault\\": true,\\n \\"Owner\\": \\"952795****\\",\\n \\"ProjectId\\": 100001,\\n \\"Priority\\": 1,\\n \\"SlaMinu\\": 30,\\n \\"SlaHour\\": 9,\\n \\"BaselineId\\": 1234,\\n \\"BaselineName\\": \\"Baseline name\\",\\n \\"HourExpDetail\\": \\"{\\\\\\"1\\\\\\":\\\\\\"03:28\\\\\\",\\\\\\"2\\\\\\":\\\\\\"04:28\\\\\\",\\\\\\"3\\\\\\":\\\\\\"05:28\\\\\\",\\\\\\"4\\\\\\":\\\\\\"06:28\\\\\\",\\\\\\"5\\\\\\":\\\\\\"07:28\\\\\\",\\\\\\"6\\\\\\":\\\\\\"08:28\\\\\\",\\\\\\"7\\\\\\":\\\\\\"09:28\\\\\\",\\\\\\"8\\\\\\":\\\\\\"10:28\\\\\\",\\\\\\"9\\\\\\":\\\\\\"11:28\\\\\\",\\\\\\"10\\\\\\":\\\\\\"12:28\\\\\\",\\\\\\"11\\\\\\":\\\\\\"13:28\\\\\\",\\\\\\"12\\\\\\":\\\\\\"14:28\\\\\\",\\\\\\"13\\\\\\":\\\\\\"15:28\\\\\\",\\\\\\"14\\\\\\":\\\\\\"16:28\\\\\\",\\\\\\"15\\\\\\":\\\\\\"17:28\\\\\\",\\\\\\"16\\\\\\":\\\\\\"18:28\\\\\\",\\\\\\"17\\\\\\":\\\\\\"19:28\\\\\\",\\\\\\"18\\\\\\":\\\\\\"20:28\\\\\\",\\\\\\"19\\\\\\":\\\\\\"21:28\\\\\\",\\\\\\"20\\\\\\":\\\\\\"22:28\\\\\\",\\\\\\"21\\\\\\":\\\\\\"23:28\\\\\\",\\\\\\"22\\\\\\":\\\\\\"24:28\\\\\\",\\\\\\"23\\\\\\":\\\\\\"25:28\\\\\\",\\\\\\"24\\\\\\":\\\\\\"26:28\\\\\\"}\\",\\n \\"UseFlag\\": true,\\n \\"ExpHour\\": 7,\\n \\"BaselineType\\": \\"DAILY\\",\\n \\"ExpMinu\\": 30\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n 1\\n 10\\n 100\\n \\n {\\"1\\":\\"03:58\\",\\"2\\":\\"04:58\\",\\"3\\":\\"05:58\\",\\"4\\":\\"06:58\\",\\"5\\":\\"07:58\\",\\"6\\":\\"08:58\\",\\"7\\":\\"09:58\\",\\"8\\":\\"10:58\\",\\"9\\":\\"11:58\\",\\"10\\":\\"12:58\\",\\"11\\":\\"13:58\\",\\"12\\":\\"14:58\\",\\"13\\":\\"15:58\\",\\"14\\":\\"16:58\\",\\"15\\":\\"17:58\\",\\"16\\":\\"18:58\\",\\"17\\":\\"19:58\\",\\"18\\":\\"20:58\\",\\"19\\":\\"21:58\\",\\"20\\":\\"22:58\\",\\"21\\":\\"23:58\\",\\"22\\":\\"24:58\\",\\"23\\":\\"25:58\\",\\"24\\":\\"26:58\\"}\\n true\\n 952795****\\n 9527\\n 1\\n 30\\n 9\\n 1234\\n 基线名称\\n {\\"1\\":\\"03:28\\",\\"2\\":\\"04:28\\",\\"3\\":\\"05:28\\",\\"4\\":\\"06:28\\",\\"5\\":\\"07:28\\",\\"6\\":\\"08:28\\",\\"7\\":\\"09:28\\",\\"8\\":\\"10:28\\",\\"9\\":\\"11:28\\",\\"10\\":\\"12:28\\",\\"11\\":\\"13:28\\",\\"12\\":\\"14:28\\",\\"13\\":\\"15:28\\",\\"14\\":\\"16:28\\",\\"15\\":\\"17:28\\",\\"16\\":\\"18:28\\",\\"17\\":\\"19:28\\",\\"18\\":\\"20:28\\",\\"19\\":\\"21:28\\",\\"20\\":\\"22:28\\",\\"21\\":\\"23:28\\",\\"22\\":\\"24:28\\",\\"23\\":\\"25:28\\",\\"24\\":\\"26:28\\"}\\n true\\n 7\\n DAILY\\n 30\\n \\n \\n","errorExample":""}]', + 'title' => '获取基线列表', + 'summary' => '调用ListBaselineConfigs获取基线列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetBaselineKeyPath' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78230', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'Bizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期,需要使用yyyy-MM-dd\'T\'HH:mm:ssZ的UTC格式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-07-07T00:00:00+0800', + ], + ], + [ + 'name' => 'InGroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线实例周期号。天基线为1,小时基线的取值范围为\\[1,24\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '关键路径信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '9527952****', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'Node name', + ], + 'Bizdate' => [ + 'description' => '实例的业务日期时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123456', + ], + 'PrgType' => [ + 'description' => '节点类型,常用的节点类型包括数据集成(23)、MaxCompute SQL(10)、Shell(6)和虚节点(99)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'InGroupId' => [ + 'description' => '实例周期号,取值范围为\\[1,288\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Runs' => [ + 'description' => '实例的运行记录。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '实例的状态,包括NOT_RUN(未运行)、WAIT_TIME(等待时间)、WAIT_RESOURCE(等待资源)、RUNNING(运行中)、CHECKING(校检中)、CHECKING_CONDITION(条件检测中)、FAILURE(运行失败)和SUCCESS(运行成功)。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'AbsTime' => [ + 'description' => '实例的预计开始运行时间+历史平均运行时长得到的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531402000', + ], + 'BeginRunningTime' => [ + 'description' => '实例实际开始运行的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531401000', + ], + 'FinishTime' => [ + 'description' => '实例的实际运行结束时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531401000', + ], + 'BeginCast' => [ + 'description' => '实例预计开始运行的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531686000', + ], + 'EndCast' => [ + 'description' => '实例的预计运行结束时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531687000', + ], + 'BeginWaitResTime' => [ + 'description' => '实例开始进入等待资源状态的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531401000', + ], + 'BeginWaitTimeTime' => [ + 'description' => '实例开始进入等待时间状态的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531400000', + ], + ], + ], + ], + 'Topics' => [ + 'description' => '实例关联的事件信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TopicName' => [ + 'description' => '事件的名称。', + 'type' => 'string', + 'example' => '1234', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'TopicId' => [ + 'description' => '事件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'AddTime' => [ + 'description' => '事件发现时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531401000', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Wkbench.BaselineNoPermission', + 'errorMessage' => 'You are not authorized to access the baseline.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.BaselineStatusNotExist', + 'errorMessage' => 'The BaselineStatus does not exist.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Owner\\": \\"9527952****\\",\\n \\"NodeName\\": \\"Node name\\",\\n \\"Bizdate\\": 1553443200000,\\n \\"ProjectId\\": 1234,\\n \\"InstanceId\\": 123456,\\n \\"PrgType\\": 10,\\n \\"NodeId\\": 1234,\\n \\"InGroupId\\": 1,\\n \\"Runs\\": [\\n {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"AbsTime\\": 1553531402000,\\n \\"BeginRunningTime\\": 1553531401000,\\n \\"FinishTime\\": 1553531401000,\\n \\"BeginCast\\": 1553531686000,\\n \\"EndCast\\": 1553531687000,\\n \\"BeginWaitResTime\\": 1553531401000,\\n \\"BeginWaitTimeTime\\": 1553531400000\\n }\\n ],\\n \\"Topics\\": [\\n {\\n \\"TopicName\\": \\"1234\\",\\n \\"InstanceId\\": 1234,\\n \\"TopicId\\": 1234,\\n \\"AddTime\\": 1553531401000\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n 9527952****\\n 节点名称\\n 1553443200000\\n 1234\\n 12345\\n 10\\n 1234\\n 1\\n \\n SUCCESS\\n 1553531402000\\n 1553531401000\\n 1553443200000\\n 9527952****\\n 1553531401000\\n 1234\\n 1553531686000\\n 1234\\n 1553531687000\\n 1553531401000\\n 1\\n 节点名称\\n 1553443200000\\n 1553531400000\\n 1234\\n \\n \\n 1234\\n 1234\\n 1234\\n 1553531401000\\n \\n \\n","errorExample":""}]', + 'title' => '获取基线实例的关键路径', + 'summary' => '调用GetBaselineKeyPath获取基线实例的关键路径。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetBaselineStatus' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78231', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'Bizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期,需要使用UTC格式(yyyy-MM-dd\'T\'HH:mm:ssZ)。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-07-07T00:00:00+0800', + ], + ], + [ + 'name' => 'InGroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线实例的周期号。天基线为1,小时基线的取值范围为\\[1,24\\]。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '基线实例的详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '基线的状态,包括ERROR(异常)、SAFE(安全)、DANGROUS(预警)和OVER(破线)。', + 'type' => 'string', + 'example' => 'SAFE', + ], + 'Owner' => [ + 'description' => '基线责任人的阿里云UID。多个责任人之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'example' => '9527952795****', + ], + 'FinishTime' => [ + 'description' => '当FinishStatus(基线实例完成状态)为FINISH(已完成)时,返回基线实例的完成时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'ProjectId' => [ + 'description' => '基线所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'Priority' => [ + 'description' => '基线的优先级,取值范围为{1,2,5,7,8}。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'EndCast' => [ + 'description' => '基线实例的预计产出时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'InGroupId' => [ + 'description' => '基线实例的周期号。天基线为1,小时基线的取值范围为\\[1,24\\]。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => '基线名称', + ], + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'FinishStatus' => [ + 'description' => '基线实例是否完成,包括UNFINISH(未完成)和FINISH(已完成)。'."\n", + 'type' => 'string', + 'example' => 'UNFINISH', + ], + 'Bizdate' => [ + 'description' => '业务日期时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'Buffer' => [ + 'description' => '基线实例的余量,单位为秒。', + 'type' => 'number', + 'format' => 'float', + 'example' => '1200', + ], + 'SlaTime' => [ + 'description' => '基线实例的承诺时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'ExpTime' => [ + 'description' => '基线实例的预警时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'LastInstance' => [ + 'description' => '最晚实例信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '实例的状态,包括NOT_RUN(未运行)、WAIT_TIME(等待时间)、WAIT_RESOURCE(等待资源)、RUNNING(运行中)、CHECKING(校检中)、CHECKING_CONDITION(条件检测中)、FAILURE(运行失败)和SUCCESS(运行成功)。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '9527952795****', + ], + 'FinishTime' => [ + 'description' => '实例的实际完成时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => '节点名称', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'EndCast' => [ + 'description' => '实例的预计完成时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + 'BlockInstance' => [ + 'description' => '关键实例信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '实例的状态,包括NOT_RUN(未运行)、WAIT_TIME(等待时间)、WAIT_RESOURCE(等待资源)、RUNNING(运行中)、CHECKING(校检中)、CHECKING_CONDITION(条件检测中)、FAILURE(运行失败)和SUCCESS(运行成功)。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '9527952795****', + ], + 'FinishTime' => [ + 'description' => '实例的实际完成时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => '节点名称', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'EndCast' => [ + 'description' => '实例的预计完成时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Status\\": \\"SAFE\\",\\n \\"Owner\\": \\"9527952795****\\",\\n \\"FinishTime\\": 1553443200000,\\n \\"ProjectId\\": 1234,\\n \\"Priority\\": 1,\\n \\"EndCast\\": 1553443200000,\\n \\"InGroupId\\": 1,\\n \\"BaselineName\\": \\"基线名称\\",\\n \\"BaselineId\\": 1234,\\n \\"FinishStatus\\": \\"UNFINISH\\",\\n \\"Bizdate\\": 1553443200000,\\n \\"Buffer\\": 1200,\\n \\"SlaTime\\": 1553443200000,\\n \\"ExpTime\\": 1553443200000,\\n \\"LastInstance\\": {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"Owner\\": \\"9527952795****\\",\\n \\"FinishTime\\": 1553443200000,\\n \\"NodeName\\": \\"节点名称\\",\\n \\"ProjectId\\": 1234,\\n \\"InstanceId\\": 12345,\\n \\"EndCast\\": 1553443200000,\\n \\"NodeId\\": 1234\\n },\\n \\"BlockInstance\\": {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"Owner\\": \\"9527952795****\\",\\n \\"FinishTime\\": 1553443200000,\\n \\"NodeName\\": \\"节点名称\\",\\n \\"ProjectId\\": 1234,\\n \\"InstanceId\\": 12345,\\n \\"EndCast\\": 1553443200000,\\n \\"NodeId\\": 1234\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n SAFE\\n 9527952795****\\n 1553443200000\\n 1234\\n 1\\n 1553443200000\\n 1\\n 基线名称\\n 1234\\n UNFINISH\\n 1553443200000\\n 1200\\n 1553443200000\\n 1553443200000\\n \\n SUCCESS\\n 9527952795****\\n 1553443200000\\n 节点名称\\n 1234\\n 12345\\n 1553443200000\\n 1234\\n \\n \\n SUCCESS\\n 9527952795****\\n 1553443200000\\n 节点名称\\n 1234\\n 12345\\n 1553443200000\\n 1234\\n \\n \\n","errorExample":""}]', + 'title' => '获取基线实例的详情', + 'summary' => '调用GetBaselineStatus获取基线实例的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListBaselineStatuses' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78296', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页的页数。默认值为1,最小值为1,最大值为30。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认值为10,最大值为100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'Bizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期,需要使用UTC格式(yyyy-MM-dd\'T\'HH:mm:ssZ)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-07-07T00:00:00+0800', + ], + ], + [ + 'name' => 'Priority', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的优先级,取值范围为{1,3,5,7,8}。多个优先级之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => '1,3,5,7,8', + ], + ], + [ + 'name' => 'SearchText', + 'in' => 'formData', + 'schema' => [ + 'description' => '搜索关键字,支持基线名称和基线ID,如果输入小时基线ID,则会返回该小时基线所有实例。', + 'type' => 'string', + 'required' => false, + 'example' => '关键词', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线责任人的阿里云UID。', + 'type' => 'string', + 'required' => false, + 'example' => '9527952795****', + ], + ], + [ + 'name' => 'TopicId', + 'in' => 'formData', + 'schema' => [ + 'description' => '相关事件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1234', + ], + ], + [ + 'name' => 'FinishStatus', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线实例是否完成,包括UNFINISH(未完成)、FINISH(已完成)。多个状态之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'FINISH,UNFINISH', + ], + ], + [ + 'name' => 'Status', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的状态,包括ERROR(异常)、SAFE(安全)、DANGROUS(预警)和OVER(破线)。多个状态之间使用英文逗号(,)分隔。 ', + 'type' => 'string', + 'required' => false, + 'example' => 'SAFE,DANGROUS,OVER', + ], + ], + [ + 'name' => 'BaselineTypes', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的类型,包括DAILY(天基线)和HOURLY(小时基线)。多个类型之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'DAILY,HOURLY', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回的基线实例列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前的页数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页的大小。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '基线实例的总数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'BaselineStatuses' => [ + 'description' => '基线实例列表。', + 'type' => 'array', + 'items' => [ + 'description' => '基线实例列表信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '基线的状态,包括ERROR(异常)、SAFE(安全)、DANGEROUS(预警)和OVER(破线)。', + 'type' => 'string', + 'example' => 'SAFE', + ], + 'Owner' => [ + 'description' => '基线责任人的阿里云UID。多个责任人之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'example' => '9527952795****', + ], + 'FinishTime' => [ + 'description' => '当FinishStatus(基线实例完成状态)为FINISH(已完成)时,返回基线实例的完成时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531400000', + ], + 'ProjectId' => [ + 'description' => '基线所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'Priority' => [ + 'description' => '基线的优先级,取值范围为{1,3,5,7,8}。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'EndCast' => [ + 'description' => '基线实例的预计完成时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531400000', + ], + 'InGroupId' => [ + 'description' => '基线实例的周期号。天基线为1,小时基线的取值范围为\\[1,24]。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => '基线名称', + ], + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'FinishStatus' => [ + 'description' => '基线实例是否完成,包括UNFINISH(未完成)和FINISH(已完成)。', + 'type' => 'string', + 'example' => 'UNFINISH', + ], + 'Bizdate' => [ + 'description' => '业务日期时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553443200000', + ], + 'Buffer' => [ + 'description' => '基线实例的余量,单位为秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1800', + ], + 'SlaTime' => [ + 'description' => '基线实例的实际完成时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531400000', + ], + 'ExpTime' => [ + 'description' => '基线实例的预警时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553531400000', + ], + 'BaselineType' => [ + 'description' => '基线的类型,包括DAILY(天基线)和HOURLY(小时基线)。', + 'type' => 'string', + 'example' => '基线类型', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"BaselineStatuses\\": [\\n {\\n \\"Status\\": \\"SAFE\\",\\n \\"Owner\\": \\"9527952795****\\",\\n \\"FinishTime\\": 1553531400000,\\n \\"ProjectId\\": 1234,\\n \\"Priority\\": 1,\\n \\"EndCast\\": 1553531400000,\\n \\"InGroupId\\": 1,\\n \\"BaselineName\\": \\"基线名称\\",\\n \\"BaselineId\\": 1234,\\n \\"FinishStatus\\": \\"UNFINISH\\",\\n \\"Bizdate\\": 1553443200000,\\n \\"Buffer\\": 1800,\\n \\"SlaTime\\": 1553531400000,\\n \\"ExpTime\\": 1553531400000,\\n \\"BaselineType\\": \\"基线类型\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n 1\\n 10\\n 100\\n \\n SAFE\\n 9527952795****\\n 1553531400000\\n 1234\\n 1\\n 1553531400000\\n 1\\n 基线名称\\n 1234\\n UNFINISH\\n 1553443200000\\n 1800\\n 1553531400000\\n 1553531400000\\n \\n \\n","errorExample":""}]', + 'title' => '获取基线实例列表', + 'summary' => '调用ListBaselineStatuses获取基线实例列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteRemind' => [ + 'summary' => '调用DeleteRemind删除自定义监控报警规则。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78217', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'RemindId', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义监控报警规则的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否删除成功,包括true(删除成功)和false(删除失败)。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => '1031203110005', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\"\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\ntrue\\n1031203110005\\nThe specified parameters are invalid.\\ntrue","errorExample":""}]', + 'title' => '删除自定义监控报警规则', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateRemind' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78381', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'RemindId', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义规则的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'RemindName', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义规则的名称,不能超过128个字符。', + 'type' => 'string', + 'required' => false, + 'example' => 'update_remindname', + ], + ], + [ + 'name' => 'DndEnd', + 'in' => 'formData', + 'schema' => [ + 'description' => '免打扰的截止时间,即在设置的时间之前不会发送报警。格式为hh:mm。hh的取值范围为\\[0,23\\] ,mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'required' => false, + 'example' => '08:00', + ], + ], + [ + 'name' => 'RemindUnit', + 'in' => 'formData', + 'schema' => [ + 'description' => '监控对象的类型。取值如下:'."\n" + .'- NODE(节点)'."\n" + .'- BASELINE(基线)'."\n" + .'- PROJECT(工作空间)'."\n" + .'- BIZPROCESS(业务流程)', + 'type' => 'string', + 'required' => false, + 'example' => 'NODE', + 'enum' => [ + 'NODE', + 'BASELINE', + 'PROJECT', + 'BIZPROCESS', + ], + ], + ], + [ + 'name' => 'NodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '监控对象为节点时的节点ID。一个规则最多监控50个节点,多个节点ID之间使用英文逗号(,)分隔。'."\n" + .'当RemindUnit参数取值为NODE(节点)时,当前参数生效。', + 'type' => 'string', + 'required' => false, + 'example' => '1,2,3', + ], + ], + [ + 'name' => 'BaselineIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '监控对象为基线时的基线ID。一个规则最多监控5条基线,多个基线ID之间使用英文逗号(,)分隔。'."\n" + .'当RemindUnit参数取值为BASELINE(基线)时,当前参数生效。', + 'type' => 'string', + 'required' => false, + 'example' => '1,2,3', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '监控对象为工作空间时的工作空间ID。一个规则只能监控一个工作空间。'."\n" + .'当RemindUnit参数取值为PROJECT(工作空间)时,当前参数生效。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1234', + ], + ], + [ + 'name' => 'BizProcessIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '监控对象为业务流程时的业务流程ID。一个规则最多监控5个业务流程,多个业务流程ID之间使用英文逗号(,)分隔。'."\n" + .'当RemindUnit参数取值为BIZPROCESS(业务流程)时,当前参数生效。', + 'type' => 'string', + 'required' => false, + 'example' => '1,2,3', + ], + ], + [ + 'name' => 'RemindType', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发报警规则的条件。取值如下:'."\n" + .'- FINISHED(完成):表示从实例运行的起始时间点开始监控,在任务运行成功时系统发送报警。'."\n" + .'- UNFINISHED(未完成):表示从实例运行的起始时间点开始监控,到指定的目标时间点任务仍未结束运行,则系统发送报警。'."\n" + .'- ERROR(出错):表示从实例运行的起始时间点开始监控,当任务运行出错时,系统发送报警。'."\n" + .'- CYCLE_UNFINISHED(周期未完成):表示在指定的周期内,实例仍未结束运行,则系统发送报警。通常用于监控以小时为周期单位的实例任务。'."\n" + .'- TIMEOUT(运行超时):表示从实例运行的起始时间点开始监控,到指定的运行时长后,该任务仍未结束运行,则系统发送报警。通常用于监控实例任务的运行时间。'."\n" + ."\n" + .'更多触发报警规则的内容,详情请参见[自定义规则](~~138172~~)。', + 'type' => 'string', + 'required' => false, + 'example' => 'FINISHED', + 'enum' => [ + 'FINISHED', + 'UNFINISHED', + 'ERROR', + 'CYCLE_UNFINISHED', + 'TIMEOUT', + 'EXHAUSTED_ERROR', + ], + ], + ], + [ + 'name' => 'MaxAlertTimes', + 'in' => 'formData', + 'schema' => [ + 'description' => '最大报警次数。取值范围为\\[1,10\\],默认值为3。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '10', + 'minimum' => '1', + 'example' => '3', + 'default' => '3', + ], + ], + [ + 'name' => 'AlertInterval', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警间隔,单位为秒。最小值为1200,默认值为1800。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => false, + 'maximum' => '1800', + 'minimum' => '1200', + 'example' => '1800', + 'default' => '1800', + ], + ], + [ + 'name' => 'Detail', + 'in' => 'formData', + 'schema' => [ + 'description' => '不同触发条件的参数配置详情,具体如下:'."\n" + .'- 当RemindType(触发条件)取值为FINISHED(完成)时,当前参数配置为空。'."\n" + .'- 当RemindType(触发条件)取值为UNFINISHED(未完成)时,当前参数的配置格式示例为{"hour":23,"minu":59}。hour的取值范围为\\[0,47\\],minu的取值范围为\\[0,59\\]。'."\n" + .'- 当RemindType(触发条件)取值为ERROR(出错)时,当前参数配置为空。'."\n" + .'- 当RemindType(触发条件)取值为CYCLE_UNFINISHED(周期未完成)时,当前参数的配置格式示例为{"1":"05:50","2":"06:50","3":"07:50","4":"08:50","5":"09:50","6":"10:50","7":"11:50","8":"12:50","9":"13:50","10":"14:50","11":"15:50","12":"16:50","13":"17:50","14":"18:50","15":"19:50","16":"20:50","17":"21:50","18":"22:50","19":"23:50","20":"24:50","21":"25:50"}。'."\n" + .'JSON字符串的key为周期号,取值范围为\\[1,288\\];value为该周期对应的未完成时间,格式为hh:mm。hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。'."\n" + .'- 当RemindType(触发条件)取值为TIMEOUT(运行超时)时,当前参数的配置格式示例为1800,单位为秒。即从实例开始运行起,运行超过30分钟触发报警。', + 'type' => 'string', + 'required' => false, + 'example' => '{"hour":23,"minu":59}', + ], + ], + [ + 'name' => 'AlertUnit', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警的接收对象,包括OWNER(任务责任人)和OTHER(指定的用户)。', + 'type' => 'string', + 'required' => false, + 'example' => 'OWNER', + 'default' => '', + 'enum' => [ + 'OTHER', + 'OWNER', + ], + ], + ], + [ + 'name' => 'AlertMethods', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警的方式,取值如下:'."\n" + .'- MAIL(邮件)'."\n" + .'- SMS(短信)'."\n" + .'- PHONE(电话),仅DataWorks专业版及以上版本支持使用电话方式接收报警。'."\n" + .'- DINGROBOTS(钉钉机器人),仅当配置RobotUrls参数后,该报警方式才会生效。'."\n" + .'- Webhooks(企业微信或飞书机器人),仅当配置 Webhooks 参数后,该报警方式才会生效。'."\n" + ."\n" + .'多个报警方式之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'SMS,MAIL', + 'default' => '', + 'enum' => [], + ], + ], + [ + 'name' => 'AlertTargets', + 'in' => 'formData', + 'schema' => [ + 'description' => '不同报警接收人的配置详情:'."\n" + .'- 当AlertUnit(报警接收人)取值为OWNER(节点任务责任人)时,当前参数配置为空。'."\n" + .'- 当AlertUnit(报警接收人)取值为OTHER(指定的用户)时,当前参数配置为指定用户的阿里云UID。多个阿里云UID之间使用英文逗号(,)分隔,最多支持指定10个用户接收报警。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '9527952795279527', + ], + ], + [ + 'name' => 'UseFlag', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否启用报警规则,取值如下:'."\n" + .'- true(开启)'."\n" + .'- false(关闭)', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'RobotUrls', + 'in' => 'formData', + 'schema' => [ + 'description' => '钉钉群机器人的WebHook地址,多个WebHook地址之间使用英文逗号(,)分隔。'."\n" + .'当该参数配置为undefined时,系统会清空钉钉机器人的WebHook地址。', + 'type' => 'string', + 'required' => false, + 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=******************************', + ], + ], + [ + 'name' => 'Webhooks', + 'in' => 'formData', + 'schema' => [ + 'description' => '企业微信或飞书机器人的webhook地址,多个webhook地址之间使用英文逗号(,)分隔。alertMethods 中需要包含 WEBHOOKS 告警方式。当该参数配置为undefined时,系统会清空WebHook地址。'."\n" + ."\n" + .'仅DataWorks企业版支持。'."\n" + .'可用地域:华东2(上海)、西南1(成都)、华北3(张家口)、华北2(北京)、华东1(杭州)、华南1(深圳)、中国(香港)、欧洲中部 1(法兰克福)、亚太东南1(新加坡)。', + 'type' => 'string', + 'required' => false, + 'example' => 'https://open.feishu.cn/open-apis/bot/v2/hook/*******'."\n", + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '更新自定义监控规则的返回结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true(成功)'."\n" + .'- false(失败)'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.BaselineNoPermission', + 'errorMessage' => 'You are not authorized to access the baseline.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.RemindNoPermission', + 'errorMessage' => 'You are not authorized to modify the reminder.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.RemindNotExist', + 'errorMessage' => 'The reminder does not exist.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\"\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\ntrue\\n1031203110005\\nThe specified parameters are invalid.\\ntrue","errorExample":""}]', + 'title' => '更新自定义报警规则', + 'summary' => '调用UpdateRemind更新自定义监控规则。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateRemind' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78196', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'RemindName', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义规则的名称,不能超过128个字符。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test_error_remind', + ], + ], + [ + 'name' => 'DndEnd', + 'in' => 'formData', + 'schema' => [ + 'description' => '免打扰截止时间,格式为hh:mm。hh的取值范围为\\[0,23\\],mm的取值范围为\\[0,59\\]。 ', + 'type' => 'string', + 'required' => false, + 'example' => '08:00', + ], + ], + [ + 'name' => 'RemindUnit', + 'in' => 'formData', + 'schema' => [ + 'description' => '对象的类型,包括NODE(任务节点)、BASELINE(基线) 、PROJECT(工作空间)和BIZPROCESS(业务流程)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'NODE', + 'enum' => [ + 'NODE', + 'BASELINE', + 'PROJECT', + 'BIZPROCESS', + ], + ], + ], + [ + 'name' => 'NodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => 'RemindUnit(对象类型)为NODE(任务节点)时,监控的任务节点ID。多个ID之间使用英文逗号(,)分隔,一个规则最多监控50个节点。', + 'type' => 'string', + 'required' => false, + 'example' => '1,2,3', + ], + ], + [ + 'name' => 'BaselineIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '当RemindUnit(对象类型)为BASELINE(基线)时,监控的基线ID。多个ID之间使用英文逗号(,)分隔,一个规则最多监控5条基线。', + 'type' => 'string', + 'required' => false, + 'example' => '1,2,3', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '当RemindUnit(对象类型)为PROJECT(工作空间)时,监控的工作空间ID。一个规则只能监控一个工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '9527', + ], + ], + [ + 'name' => 'BizProcessIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '当RemindUnit(对象类型)为BIZPROCESS(业务流程)时,监控的业务流程ID。多个业务流程ID之间使用英文逗号(,)分隔,一个规则最多监控5个业务流程。', + 'type' => 'string', + 'required' => false, + 'example' => '1,2,3', + ], + ], + [ + 'name' => 'RemindType', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发条件,包括FINISHED(完成)、UNFINISHED(未完成)、ERROR(出错)、 CYCLE_UNFINISHED(周期未完成)和TIMEOUT(运行超时)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'FINISHED', + 'enum' => [ + 'FINISHED', + 'UNFINISHED', + 'ERROR', + 'CYCLE_UNFINISHED', + 'TIMEOUT', + 'EXHAUSTED_ERROR', + ], + ], + ], + [ + 'name' => 'MaxAlertTimes', + 'in' => 'formData', + 'schema' => [ + 'description' => '最大报警次数。最小值为1,最大值为10,默认值为3。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '10', + 'minimum' => '1', + 'example' => '2', + 'default' => '3', + ], + ], + [ + 'name' => 'AlertInterval', + 'in' => 'formData', + 'schema' => [ + 'description' => '最小报警间隔,单位为秒。最小值为1200,默认值为1800。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1200', + 'example' => '1800', + 'default' => '1800', + ], + ], + [ + 'name' => 'Detail', + 'in' => 'formData', + 'schema' => [ + 'description' => '不同触发条件的说明如下:'."\n" + ."\n" + .'- 当RemindType(触发条件)为FINISHED(完成)时,传空。'."\n" + ."\n" + .'- 当RemindType(触发条件)为UNFINISHED(未完成)时,传参格式为{"hour":23,"minu":59}。hour的取值范围为\\[0,47\\],minu的取值范围为\\[0,59\\]。'."\n" + ."\n" + .'- 当RemindType(触发条件)为ERROR(出错)时,传空。'."\n" + ."\n" + .'- 当RemindType(触发条件)为CYCLE_UNFINISHED(周期未完成)时,传参格式为{"1":"05:50","2":"06:50","3":"07:50","4":"08:50","5":"09:50","6":"10:50","7":"11:50","8":"12:50","9":"13:50","10":"14:50","11":"15:50","12":"16:50","13":"17:50","14":"18:50","15":"19:50","16":"20:50","17":"21:50","18":"22:50","19":"23:50","20":"24:50","21":"25:50"}。JSON字符串key为周期号,取值范围为\\[1,288\\]。value为该周期对应的未完成时间,格式为hh:mm。hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。'."\n" + ."\n" + .'- 当RemindType(触发条件)为TIMEOUT(运行超时)时,传参格式为1800,单位为秒。即从开始运行起,运行超过30分钟触发报警。', + 'type' => 'string', + 'required' => false, + 'example' => '{"hour":"23","minu":"59"}', + ], + ], + [ + 'name' => 'AlertUnit', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警接收对象的粒度,包括OWNER(任务责任人)和OTHER(指定的人)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'OWNER', + 'default' => '', + 'enum' => [ + 'OTHER', + 'OWNER', + ], + ], + ], + [ + 'name' => 'AlertMethods', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警方式,取值如下:'."\n" + .'- MAIL:邮件。'."\n" + .'- SMS:短信。'."\n" + .'可使用短信告警的地域为:新加坡、马来西亚(吉隆坡)、德国(法兰克福)。'."\n" + .'- PHONE:电话。仅DataWorks专业版及以上版本支持。'."\n" + .'- Webhooks(企业微信或飞书机器人),仅当配置 Webhooks 参数后,该报警方式才会生效。'."\n" + .'- DINGROBOTS:钉钉群机器人。'."\n" + ."\n" + .'多个报警方式之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'SMS,MAIL', + ], + ], + [ + 'name' => 'AlertTargets', + 'in' => 'formData', + 'schema' => [ + 'description' => '- 当AlertUnit(报警接收人)为OWNER(节点任务责任人)时,传空。'."\n" + ."\n" + .'- 当AlertUnit(报警接收人)为OTHER(指定的人)时,传入指定用户的阿里云UID。多个阿里云UID之间使用英文逗号(,)分隔,最多支持10个。', + 'type' => 'string', + 'required' => false, + 'example' => '9527952795279527', + ], + ], + [ + 'name' => 'RobotUrls', + 'in' => 'formData', + 'schema' => [ + 'description' => '钉钉群机器人的webhook地址,多个webhook地址之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=******************************', + ], + ], + [ + 'name' => 'Webhooks', + 'in' => 'formData', + 'schema' => [ + 'description' => '企业微信或飞书机器人的webhook地址,多个webhook地址之间使用英文逗号(,)分隔。alertMethods 中需要包含 WEBHOOKS 告警方式。'."\n" + ."\n" + .'仅DataWorks企业版支持。'."\n" + .'可用地域:华东2(上海)、西南1(成都)、华北3(张家口)、华北2(北京)、华东1(杭州)、华南1(深圳)、中国(香港)、欧洲中部 1(法兰克福)、亚太东南1(新加坡)。', + 'type' => 'string', + 'required' => false, + 'example' => 'https://open.feishu.cn/open-apis/bot/v2/hook/*******', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '请求返回结果', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '创建自定义监控规则成功后,返回的自定义规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.BaselineNoPermission', + 'errorMessage' => 'You are not authorized to access the baseline.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.NoProject', + 'errorMessage' => 'You have not joined any project.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.NodeNotExist', + 'errorMessage' => 'The node does not exist.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.BaselineNotExist', + 'errorMessage' => 'The baseline does not exist.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.RemindOverlimit', + 'errorMessage' => 'The maximum number of reminders is exceeded.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 1234,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 1234\\n The specified parameters are invalid.\\n 0000-ABCD-EFG****\\n true\\n 1031203110005\\n","errorExample":""}]', + 'title' => '创建自定义报警规则', + 'summary' => '调用CreateRemind创建自定义报警规则。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetRemind' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78286', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'RemindId', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义监控规则的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回的数据类型。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFGH-IJK****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '自定义监控规则的详情。', + 'type' => 'object', + 'properties' => [ + 'MaxAlertTimes' => [ + 'description' => '最大报警次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'RemindUnit' => [ + 'description' => '对象的类型,包括NODE(任务节点)、BASELINE(基线)、PROJECT(工作空间)和BIZPROCESS(业务流程)。', + 'type' => 'string', + 'example' => 'NODE', + ], + 'AlertInterval' => [ + 'description' => '最小报警间隔,单位为秒。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1800', + ], + 'Useflag' => [ + 'description' => '自定义监控规则是否开启,包括true(开启)和false(关闭)。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Founder' => [ + 'description' => '自定义监控规则创建人的阿里云UID。', + 'type' => 'string', + 'example' => '9527951795****', + ], + 'RemindId' => [ + 'description' => '自定义监控规则的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'DndEnd' => [ + 'description' => '免打扰截止时间,格式为hh:mm。hh的取值范围为\\[0,23\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '08:00', + ], + 'RemindType' => [ + 'description' => '触发条件,包括FINISHED(完成)、UNFINISHED(未完成)、ERROR(出错)、CYCLE_UNFINISHED(周期未完成)和TIMEOUT(运行超时)。', + 'type' => 'string', + 'example' => 'FINISHED', + ], + 'AlertUnit' => [ + 'description' => '报警接收对象类型,多类型告警接收人参考出参Receivers。'."\n" + .'- OWNER(任务责任人)'."\n" + .'- OTHER(指定的人)'."\n" + .'- SHIFT_SCHEDULE(值班表) ', + 'type' => 'string', + 'example' => 'OWNER', + ], + 'DndStart' => [ + 'description' => '免打扰起始时间,格式为hh:mm。hh的取值范围为\\[0,23\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '00:00', + ], + 'RemindName' => [ + 'description' => '规则的名称。', + 'type' => 'string', + 'example' => 'Rule name', + ], + 'Detail' => [ + 'description' => '- 当RemindType(触发条件)为FINISHED(完成)时,返回空。'."\n" + ."\n" + .'- 当RemindType(触发条件)为UNFINISHED(未完成)时,返回格式为{"hour":23,"minu":59}。hour的取值范围为\\[0,47\\],minu的取值范围为\\[0,59\\]。'."\n" + ."\n" + .'- 当RemindType(触发条件)为ERROR(出错)时,返回空。'."\n" + ."\n" + .'- 当RemindType(触发条件)为CYCLE_UNFINISHED(周期未完成)时,返回格式为{"1":"05:50","2":"06:50","3":"07:50","4":"08:50","5":"09:50","6":"10:50","7":"11:50","8":"12:50","9":"13:50","10":"14:50","11":"15:50","12":"16:50","13":"17:50","14":"18:50","15":"19:50","16":"20:50","17":"21:50","18":"22:50","19":"23:50","20":"24:50","21":"25:50"}。JSON字符串key为周期号,取值范围为\\[1,288\\]。value为该周期对应的未完成时间,格式为hh:mm。hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。'."\n" + ."\n" + .'- 当RemindType(触发条件)为TIMEOUT(运行超时)时,返回格式为1800,单位为秒。即从开始运行起,运行超过30分钟触发报警。', + 'type' => 'string', + 'example' => '{"hour":23,"minu":59}', + ], + 'Robots' => [ + 'description' => '钉钉群机器人的webhook地址列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的数据类型。', + 'type' => 'object', + 'properties' => [ + 'WebUrl' => [ + 'description' => '钉钉群机器人的webhook地址。', + 'type' => 'string', + 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=******************************', + ], + 'AtAll' => [ + 'description' => '是否@所有人,包括true(是)和false(否)。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'Nodes' => [ + 'description' => '当RemindUnit(对象类型)为NODE(任务节点)时,该规则监控的节点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的数据类型。', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '9527951795****', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'Node name', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + 'Baselines' => [ + 'description' => '当RemindUnit(对象类型)为BASELINE(基线)时,该规则监控的基线列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的数据类型。', + 'type' => 'object', + 'properties' => [ + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => 'Baseline name', + ], + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + 'Projects' => [ + 'description' => '当RemindUnit(对象类型)为PROJECT(工作空间)时,该规则监控的工作空间列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的数据类型。', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + 'BizProcesses' => [ + 'description' => '当RemindUnit(对象类型)为BIZPROCESS(业务流程)时,该规则监控的业务流程列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的数据类型。', + 'type' => 'object', + 'properties' => [ + 'BizProcessName' => [ + 'description' => '业务流程名称。', + 'type' => 'string', + 'example' => 'Business process name', + ], + 'BizId' => [ + 'description' => '业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + ], + ], + ], + 'AlertTargets' => [ + 'description' => '报警接收人说明。多类型告警接收人参考出参Receivers。', + 'type' => 'array', + 'items' => [ + 'description' => '- 当AlertUnit(报警接收人)为OWNER(节点任务责任人)时,返回空。'."\n" + .'- 当AlertUnit(报警接收人)为OTHER(指定的人)时,返回指定用户的阿里云UID。'."\n" + .'- 当AlertUnit(报警接收人)为SHIFT_SCHEDULE(值班表)时,返回值班表ID。', + 'type' => 'string', + 'example' => '9527952795279527', + ], + ], + 'AlertMethods' => [ + 'description' => '报警方式。', + 'type' => 'array', + 'items' => [ + 'description' => '报警的方式,取值如下:'."\n" + .'- MAIL(邮件)'."\n" + .'- SMS(短信)'."\n" + .'- 可使用短信告警的地域为:新加坡、马来西亚(吉隆坡)、德国(法兰克福)。PHONE(电话,仅DataWorks专业版及以上版本支持)。', + 'type' => 'string', + 'example' => 'SMS,MAIL', + ], + ], + 'Webhooks' => [ + 'description' => 'WebHook URL', + 'type' => 'array', + 'items' => [ + 'description' => '企业微信或飞书机器人的WebHook地址。AlertMethods中需要包含WebHook告警方式。'."\n" + .'自定义Webhook仅DataWorks企业版支持。', + 'type' => 'string', + 'example' => 'https://open.feishu.cn/open-apis/bot/v2/hook/*******', + ], + ], + 'Receivers' => [ + 'description' => '告警接收人信息。', + 'type' => 'array', + 'items' => [ + 'description' => '报警接收对象类型。', + 'type' => 'object', + 'properties' => [ + 'AlertUnit' => [ + 'description' => '报警接收对象类型,多类型告警接收人参考出参Receivers。'."\n" + .'- OWNER(任务责任人)'."\n" + .'- OTHER(指定的人)'."\n" + .'- SHIFT_SCHEDULE(值班表) ', + 'type' => 'string', + 'example' => 'OWNER', + ], + 'AlertTargets' => [ + 'description' => '告警接受对象。', + 'type' => 'array', + 'items' => [ + 'description' => '- 当AlertUnit(报警接收人)为OWNER(节点任务责任人)时,返回空。'."\n" + .'- 当AlertUnit(报警接收人)为OTHER(指定的人)时,返回指定用户的阿里云UID。'."\n" + .'- 当AlertUnit(报警接收人)为SHIFT_SCHEDULE(值班表)时,返回值班表ID。', + 'type' => 'string', + 'example' => '9527952795279527', + ], + ], + ], + ], + ], + 'AllowNodes' => [ + 'description' => '告警白名单。', + 'type' => 'array', + 'items' => [ + 'description' => '白名单中的任务ID,在监控时会被忽略。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFGH-IJK****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"MaxAlertTimes\\": 3,\\n \\"RemindUnit\\": \\"NODE\\",\\n \\"AlertInterval\\": 1800,\\n \\"Useflag\\": true,\\n \\"Founder\\": \\"9527951795****\\",\\n \\"RemindId\\": 1234,\\n \\"DndEnd\\": \\"08:00\\",\\n \\"RemindType\\": \\"FINISHED\\",\\n \\"AlertUnit\\": \\"OWNER\\",\\n \\"DndStart\\": \\"00:00\\",\\n \\"RemindName\\": \\"Rule name\\",\\n \\"Detail\\": \\"{\\\\\\"hour\\\\\\":23,\\\\\\"minu\\\\\\":59}\\",\\n \\"Robots\\": [\\n {\\n \\"WebUrl\\": \\"https://oapi.dingtalk.com/robot/send?access_token=******************************\\",\\n \\"AtAll\\": true\\n }\\n ],\\n \\"Nodes\\": [\\n {\\n \\"Owner\\": \\"9527951795****\\",\\n \\"NodeName\\": \\"Node name\\",\\n \\"NodeId\\": 1234,\\n \\"ProjectId\\": 1234\\n }\\n ],\\n \\"Baselines\\": [\\n {\\n \\"BaselineName\\": \\"Baseline name\\",\\n \\"BaselineId\\": 1234\\n }\\n ],\\n \\"Projects\\": [\\n {\\n \\"ProjectId\\": 1234\\n }\\n ],\\n \\"BizProcesses\\": [\\n {\\n \\"BizProcessName\\": \\"Business process name\\",\\n \\"BizId\\": 9527\\n }\\n ],\\n \\"AlertTargets\\": [\\n \\"9527952795279527\\"\\n ],\\n \\"AlertMethods\\": [\\n \\"SMS,MAIL\\"\\n ],\\n \\"Webhooks\\": [\\n \\"https://open.feishu.cn/open-apis/bot/v2/hook/*******\\"\\n ],\\n \\"Receivers\\": [\\n {\\n \\"AlertUnit\\": \\"OWNER\\",\\n \\"AlertTargets\\": [\\n \\"9527952795279527\\"\\n ]\\n }\\n ],\\n \\"AllowNodes\\": [\\n 123\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFGH-IJKLMNOPQ\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n 3\\n NODE\\n 1800\\n true\\n 9527951795****\\n 1234\\n 08:00\\n FINISHED\\n OWNER\\n 00:00\\n 规则名称\\n {\\"hour\\":23,\\"minu\\":59}\\n \\n https://oapi.dingtalk.com/robot/send?access_token=******************************\\n true\\n \\n \\n 9527951795****\\n 节点名称\\n 1234\\n 1234\\n \\n \\n 基线名称\\n 1234\\n \\n \\n 1234\\n \\n \\n 业务流程名称\\n 9527\\n \\n 9527952795279527\\n SMS,MAIL\\n https://open.feishu.cn/open-apis/bot/v2/hook/*******\\n \\n","errorExample":""}]', + 'title' => '获取自定义监控报警规则详情', + 'summary' => '调用GetRemind接口,获取自定义监控报警规则的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListReminds' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78333', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页的页数。默认值为1,最小值为1,最大值为30。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'Founder', + 'in' => 'formData', + 'schema' => [ + 'description' => '创建人的阿里云UID。', + 'type' => 'string', + 'required' => false, + 'example' => '9527952795****', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则的对象,任务节点ID。您可以根据任务节点ID搜索覆盖该任务节点的自定义监控规则。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1234', + ], + ], + [ + 'name' => 'RemindTypes', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发条件,包括FINISHED(完成)、UNFINISHED(未完成)、ERROR(出错)、CYCLE_UNFINISHED(周期未完成)和TIMEOUT(运行超时)。多个触发条件之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'FINISHED,ERROR', + ], + ], + [ + 'name' => 'AlertTarget', + 'in' => 'formData', + 'schema' => [ + 'description' => '报警接收人的阿里云UID。', + 'type' => 'string', + 'required' => false, + 'example' => '9527952795****', + ], + ], + [ + 'name' => 'SearchText', + 'in' => 'formData', + 'schema' => [ + 'description' => '搜索规则名称。', + 'type' => 'string', + 'required' => false, + 'example' => '模糊搜索规则名称', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回的自定义监控规则列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前的页数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页的大小。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '自定义监控规则的总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Reminds' => [ + 'description' => '自定义监控规则列表。', + 'type' => 'array', + 'items' => [ + 'description' => '自定义监控规则列表。', + 'type' => 'object', + 'properties' => [ + 'Founder' => [ + 'description' => '规则创建人的阿里云UID。', + 'type' => 'string', + 'example' => '952795****', + ], + 'RemindId' => [ + 'description' => '自定义监控规则的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'AlertUnit' => [ + 'description' => '报警接收对象的粒度,包括OWNER(任务责任人)和OTHER(指定的人)。', + 'type' => 'string', + 'example' => 'OWNER', + ], + 'RemindType' => [ + 'description' => '触发条件,包括FINISHED(完成)、UNFINISHED(未完成)、ERROR(出错)、CYCLE_UNFINISHED(周期未完成)和TIMEOUT(运行超时)。', + 'type' => 'string', + 'example' => 'FINISHED', + ], + 'DndEnd' => [ + 'description' => '免打扰截止时间,格式为hh:mm。hh的取值范围为\\[0,23\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '08:00', + ], + 'DndStart' => [ + 'description' => '免打扰起始时间,格式为hh:mm。hh的取值范围为\\[0,23\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '00:00', + ], + 'RemindUnit' => [ + 'description' => '对象的类型,包括NODE(任务节点)、BASELINE(基线)、PROJECT(工作空间)和BIZPROCESS(业务流程)。', + 'type' => 'string', + 'example' => 'NODE', + ], + 'Useflag' => [ + 'description' => '规则是否开启,包括true(开启)和false(关闭)。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RemindName' => [ + 'description' => '自定义监控规则的名称。', + 'type' => 'string', + 'example' => '规则名称', + ], + 'AlertTargets' => [ + 'description' => '报警接收人的阿里云UID列表。', + 'type' => 'array', + 'items' => [ + 'description' => '报警接收人的阿里云UID列表。', + 'type' => 'string', + 'example' => '952795****', + ], + ], + 'NodeIds' => [ + 'description' => '当RemindUnit(对象类型)为NODE(任务节点)时,监控的节点ID列表。', + 'type' => 'array', + 'items' => [ + 'description' => '当RemindUnit(对象类型)为NODE(任务节点)时,监控的节点ID列表。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + 'BizProcessIds' => [ + 'description' => '当RemindUnit(对象类型)为BIZPROCESS(业务流程)时,监控的基线ID列表。', + 'type' => 'array', + 'items' => [ + 'description' => '当RemindUnit(对象类型)为BIZPROCESS(业务流程)时,监控的基线ID列表。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + ], + 'ProjectIds' => [ + 'description' => '当RemindUnit(对象类型)为PROJECT(工作空间)时,监控的节点ID列表。', + 'type' => 'array', + 'items' => [ + 'description' => '当RemindUnit(对象类型)为PROJECT(工作空间)时,监控的节点ID列表。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + 'BaselineIds' => [ + 'description' => '当RemindUnit(对象类型)为BASELINE(基线)时,监控的基线ID列表。', + 'type' => 'array', + 'items' => [ + 'description' => '当RemindUnit(对象类型)为BASELINE(基线)时,监控的基线ID列表。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + ], + 'AlertMethods' => [ + 'description' => '报警的方式,包括MAIL(邮件)、SMS(短信)和PHONE(电话,仅DataWorks专业版及以上版本支持)。', + 'type' => 'array', + 'items' => [ + 'description' => '报警的方式,包括MAIL(邮件)、SMS(短信)和PHONE(电话,仅DataWorks专业版及以上版本支持)。', + 'type' => 'string', + 'example' => 'SMS', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Reminds\\": [\\n {\\n \\"Founder\\": \\"952795****\\",\\n \\"RemindId\\": 1234,\\n \\"AlertUnit\\": \\"OWNER\\",\\n \\"RemindType\\": \\"FINISHED\\",\\n \\"DndEnd\\": \\"08:00\\",\\n \\"DndStart\\": \\"00:00\\",\\n \\"RemindUnit\\": \\"NODE\\",\\n \\"Useflag\\": true,\\n \\"RemindName\\": \\"规则名称\\",\\n \\"AlertTargets\\": [\\n \\"952795****\\"\\n ],\\n \\"NodeIds\\": [\\n 1234\\n ],\\n \\"BizProcessIds\\": [\\n 9527\\n ],\\n \\"ProjectIds\\": [\\n 1234\\n ],\\n \\"BaselineIds\\": [\\n 9527\\n ],\\n \\"AlertMethods\\": [\\n \\"SMS\\"\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n 1\\n 10\\n 100\\n \\n 952795****\\n 1234\\n OWNER\\n FINISHED\\n 08:00\\n 00:00\\n NODE\\n true\\n 规则名称\\n 952795****\\n 1234\\n 9527\\n 1234\\n 9527\\n SMS\\n \\n \\n","errorExample":""}]', + 'title' => '获取自定义监控规则列表', + 'summary' => '获取或搜索自定义监控规则列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListTopics' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78338', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BeginTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '起始发现时间,需要使用UTC格式(yyyy-MM-dd\'T\'HH:mm:ssZ)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2019-03-24T00:00:00+0800', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '截止发现时间,需要使用UTC格式(yyyy-MM-dd\'T\'HH:mm:ssZ)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2019-03-25T23:00:00+0800', + ], + ], + [ + 'name' => 'TopicTypes', + 'in' => 'formData', + 'schema' => [ + 'description' => '事件的类型,包括SLOW(变慢)和ERROR(出错)。多个事件类型之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'ERROR,SLOW', + ], + ], + [ + 'name' => 'TopicStatuses', + 'in' => 'formData', + 'schema' => [ + 'description' => '事件的状态,包括IGNORE(已忽略)、NEW(新发现)、FIXING(处理中)和RECOVER(已恢复)。多个事件状态之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'IGNORE,NEW,FIXING,RECOVER', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '事件关联的任务节点ID,与参数InstanceId互斥。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1234', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '事件关联的实例ID,与参数NodeId互斥。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '事件责任人的阿里云UID。', + 'type' => 'string', + 'required' => false, + 'example' => '952795****', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页的页数。默认值为1,最小值为1,最大值为30。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '30', + 'minimum' => '1', + 'example' => '1', + 'default' => '', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '10', + 'default' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回的事件列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前的页数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页的大小。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '事件的总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Topics' => [ + 'description' => '事件列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TopicName' => [ + 'description' => '事件的名称。', + 'type' => 'string', + 'example' => '1234出错', + ], + 'ProjectId' => [ + 'description' => '任务节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'NodeOwner' => [ + 'description' => '任务节点责任人的阿里云UID', + 'type' => 'string', + 'example' => '952795****', + ], + 'InstanceId' => [ + 'description' => '事件关联的实例ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'FixTime' => [ + 'description' => '事件恢复的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553508465000', + ], + 'TopicType' => [ + 'description' => '事件的类型,包括SLOW(变慢)和ERROR(出错)。', + 'type' => 'string', + 'example' => 'ERROR', + ], + 'TopicStatus' => [ + 'description' => '事件的状态,包括IGNORE(已忽略)、NEW(新发现)、FIXING(处理中)和RECOVER(已恢复)。', + 'type' => 'string', + 'example' => 'NEW', + ], + 'HappenTime' => [ + 'description' => '事件发生的时间戳,事件发生和被发现存在一定的时间差。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553508465000', + ], + 'NodeName' => [ + 'description' => '任务节点的名称。', + 'type' => 'string', + 'example' => '节点名称', + ], + 'TopicId' => [ + 'description' => '事件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'AddTime' => [ + 'description' => '事件发现的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553524393000', + ], + 'NodeId' => [ + 'description' => '事件关联的任务节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Topics\\": [\\n {\\n \\"TopicName\\": \\"1234出错\\",\\n \\"ProjectId\\": 1234,\\n \\"NodeOwner\\": \\"952795****\\",\\n \\"InstanceId\\": 12345,\\n \\"FixTime\\": 1553508465000,\\n \\"TopicType\\": \\"ERROR\\",\\n \\"TopicStatus\\": \\"NEW\\",\\n \\"HappenTime\\": 1553508465000,\\n \\"NodeName\\": \\"节点名称\\",\\n \\"TopicId\\": 1234,\\n \\"AddTime\\": 1553524393000,\\n \\"NodeId\\": 1234\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n 1\\n 10\\n 100\\n \\n 1234出错\\n 1234\\n 952795****\\n 12345\\n 1553508465000\\n ERROR\\n NEW\\n 1553508465000\\n 节点名称\\n 1234\\n 1553524393000\\n 1234\\n \\n \\n","errorExample":""}]', + 'title' => '获取或搜索事件列表', + 'summary' => '调用ListTopics获取或搜索事件列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetTopic' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78289', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'TopicId', + 'in' => 'formData', + 'schema' => [ + 'description' => '事件的ID。您可以调用[listTopics](~~173973~~)获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFGH-IJKLMNOPQ', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '事件的详情。', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '事件责任人的阿里云UID。', + 'type' => 'string', + 'example' => '952795****', + ], + 'TopicName' => [ + 'description' => '事件的名称。', + 'type' => 'string', + 'example' => '1234 error', + ], + 'BaselineStatus' => [ + 'description' => '基线的状态,包括ERROR(异常)、SAFE(安全)、DANGROUS(预警)和OVER(破线)。', + 'type' => 'string', + 'example' => 'SAFE', + ], + 'ProjectId' => [ + 'description' => '事件关联任务节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123456', + ], + 'NextAlertTime' => [ + 'description' => '下次报警时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553524393000', + ], + 'InstanceId' => [ + 'description' => '事件关联的实例ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'FixTime' => [ + 'description' => '事件恢复时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553524393000', + ], + 'BaselineInGroupId' => [ + 'description' => '最差基线实例的周期号。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BaselineBuffer' => [ + 'description' => '最差基线实例余量,单位为秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3600', + ], + 'TopicType' => [ + 'description' => '事件的类型,包括SLOW(变慢)和ERROR(出错)。', + 'type' => 'string', + 'example' => 'ERROR', + ], + 'TopicStatus' => [ + 'description' => '事件的状态,包括IGNORE(已忽略)、NEW(新发现)、FIXING(处理中)和RECOVER(已恢复)。', + 'type' => 'string', + 'example' => 'FIXING', + ], + 'HappenTime' => [ + 'description' => '事件发生的时间戳。事件发生和被发现可能存在时间差。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553524393000', + ], + 'DealTime' => [ + 'description' => '最后处理时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553524393000', + ], + 'DealUser' => [ + 'description' => '最后处理人的阿里云UID。', + 'type' => 'string', + 'example' => '952795****', + ], + 'BaselineName' => [ + 'description' => '最差基线实例的基线名称。', + 'type' => 'string', + 'example' => 'Baseline name', + ], + 'BaselineId' => [ + 'description' => '最差基线实例的基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'NodeName' => [ + 'description' => '事件关联的任务节点名称。', + 'type' => 'string', + 'example' => 'Node name', + ], + 'AlertTime' => [ + 'description' => '首次报警时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553524393000', + ], + 'Buffer' => [ + 'description' => '事件的余量,单位为秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1200', + ], + 'Assigner' => [ + 'description' => '指派人的阿里云UID。', + 'type' => 'string', + 'example' => '952795****', + ], + 'TopicId' => [ + 'description' => '事件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'AddTime' => [ + 'description' => '事件发现时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553524393000', + ], + 'NodeId' => [ + 'description' => '事件关联的任务节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Wkbench.ServiceError', + 'errorMessage' => 'An internal error occurred.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.TopicNotExist', + 'errorMessage' => 'The topic does not exist.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFGH-IJKLMNOPQ\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Owner\\": \\"952795****\\",\\n \\"TopicName\\": \\"1234 error\\",\\n \\"BaselineStatus\\": \\"SAFE\\",\\n \\"ProjectId\\": 123456,\\n \\"NextAlertTime\\": 1553524393000,\\n \\"InstanceId\\": 12345,\\n \\"FixTime\\": 1553524393000,\\n \\"BaselineInGroupId\\": 1,\\n \\"BaselineBuffer\\": 3600,\\n \\"TopicType\\": \\"ERROR\\",\\n \\"TopicStatus\\": \\"FIXING\\",\\n \\"HappenTime\\": 1553524393000,\\n \\"DealTime\\": 1553524393000,\\n \\"DealUser\\": \\"952795****\\",\\n \\"BaselineName\\": \\"Baseline name\\",\\n \\"BaselineId\\": 1234,\\n \\"NodeName\\": \\"Node name\\",\\n \\"AlertTime\\": 1553524393000,\\n \\"Buffer\\": 1200,\\n \\"Assigner\\": \\"952795****\\",\\n \\"TopicId\\": 1234,\\n \\"AddTime\\": 1553524393000,\\n \\"NodeId\\": 1234\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n200\\n\\n 1234\\n 1200\\n 1553524393000\\n 952795****\\n 12345\\n 节点名称\\n SAFE\\n 1234\\n FIXING\\n 1553524393000\\n 1553524393000\\n 1553524393000\\n 1\\n 1234出错\\n ERROR\\n 9527952795279528\\n 9527952795279528\\n 1553524393000\\n 基线名称\\n 1234\\n 1234\\n 3600\\n 1553524393000\\n\\n1031203110005\\nThe specified parameters are invalid.\\ntrue","errorExample":""}]', + 'title' => '获取事件的详情', + 'summary' => '调用GetTopic获取事件的详情。', + 'description' => '****', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetTopicInfluence' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78290', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'TopicId', + 'in' => 'formData', + 'schema' => [ + 'description' => '事件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '事件影响的基线实例列表。', + 'type' => 'object', + 'properties' => [ + 'TopicId' => [ + 'description' => '事件的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'Influences' => [ + 'description' => '影响的基线实例列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '基线的状态,包括ERROR(异常)、SAFE(安全)、DANGROUS(预警)和OVER(破线)。', + 'type' => 'string', + 'example' => 'SAFE', + ], + 'Owner' => [ + 'description' => '基线责任人的阿里云UID。多个责任人之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'example' => '952795****', + ], + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => 'Baseline name', + ], + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'Bizdate' => [ + 'description' => '基线实例的业务日期时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1553356800000', + ], + 'Buffer' => [ + 'description' => '基线实例的余量,单位为秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '360', + ], + 'ProjectId' => [ + 'description' => '基线所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'Priority' => [ + 'description' => '基线的优先级,取值范围为{1,2,5,7,8}。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'InGroupId' => [ + 'description' => '基线实例的周期号。天基线为1,小时基线的取值范围为\\[1,24\\]。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Wkbench.ServiceError', + 'errorMessage' => 'An internal error occurred.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.TopicNotExist', + 'errorMessage' => 'The topic does not exist.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TopicId\\": 1234,\\n \\"Influences\\": [\\n {\\n \\"Status\\": \\"SAFE\\",\\n \\"Owner\\": \\"952795****\\",\\n \\"BaselineName\\": \\"Baseline name\\",\\n \\"BaselineId\\": 12345,\\n \\"Bizdate\\": 1553356800000,\\n \\"Buffer\\": 360,\\n \\"ProjectId\\": 1234,\\n \\"Priority\\": 1,\\n \\"InGroupId\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n 1031203110005\\n true\\n \\n 1234\\n \\n SAFE\\n 952795****\\n 基线名称\\n 1234\\n 1553356800000\\n 360\\n 1234\\n 1\\n 1\\n \\n \\n","errorExample":""}]', + 'title' => '获取事件影响的基线实例列表', + 'summary' => '调用GetTopicInfluence获取事件影响的基线实例列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetNode' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78272', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + 'FEATUREdideVFMENL', + ], + ], + 'parameters' => [ + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID。您可以调用[ListNodes](~~173979~~)接口查看NodeId的相关信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '1234', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'PROD', + 'isFileTransferUrl' => false, + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID,用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '节点的详情。', + 'type' => 'object', + 'properties' => [ + 'SchedulerType' => [ + 'description' => '调度的类型,取值如下:'."\n" + .'- NORMAL:正常调度任务。'."\n" + .'- MANUAL:手动任务,不会被日常调度。'."\n" + .'- PAUSE:暂停任务。'."\n" + .'- SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'RepeatInterval' => [ + 'description' => '出错后重新调度频率。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '60', + ], + 'Repeatability' => [ + 'description' => '是否可以重复运行。', + 'type' => 'string', + 'example' => 'true', + ], + 'RepeatMode' => [ + 'description' => '重跑的模式,0表示只有失败的情况下可以重跑,1表示所有情况均可重跑,2表示所有情况下均不可重跑。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ProgramType' => [ + 'description' => '节点的类型。', + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + 'Priority' => [ + 'description' => '任务优先级,1/3/5/7/8。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'OwnerId' => [ + 'description' => '负责人的ID。', + 'type' => 'string', + 'example' => '17366294****', + ], + 'Connection' => [ + 'description' => '连接串。', + 'type' => 'string', + 'example' => 'odps_source_dev', + ], + 'ParamValues' => [ + 'description' => '额外的参数。', + 'type' => 'string', + 'example' => 'a=b', + ], + 'RelatedFlowId' => [ + 'description' => '关联业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'DqcType' => [ + 'description' => ' DQC类型,0表示没有关联dqc,1表示有关联dqc。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BaselineId' => [ + 'description' => '基线ID。返回作为叶子节点所设置的基线ID,若未设置,则返回一个空间默认值。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123456', + ], + 'Description' => [ + 'description' => '节点的描述信息。', + 'type' => 'string', + 'example' => 'test', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'sql节点', + ], + 'ResGroupName' => [ + 'description' => '资源组的名称。', + 'type' => 'string', + 'example' => '默认资源组', + ], + 'BusinessId' => [ + 'description' => '业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'DqcDescription' => [ + 'description' => 'DQC分区规则串。', + 'type' => 'string', + 'example' => '[{"projectName":"test_0923001","tableName":"test_table_001","partition":"ds\\u003d$[yyyymmdd]"},{"projectName":"test_0923001","tableName":"test_table_002","partition":"NOTAPARTITIONTABLE"}]', + ], + 'CronExpress' => [ + 'description' => 'cron表达式。', + 'type' => 'string', + 'example' => '00 00 00 * * ?', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ResGroupIdentifier' => [ + 'description' => '资源组唯一标示。', + 'type' => 'string', + 'example' => 'group_123', + ], + 'FileType' => [ + 'description' => '文件类型。不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'FileId' => [ + 'description' => '文件ID。字段已弃用', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'FileVersion' => [ + 'description' => '文件版本。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'DeployDate' => [ + 'description' => '部署日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1727280000000', + ], + 'CreateTime' => [ + 'description' => '创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1727280000000', + ], + 'ModifyTime' => [ + 'description' => '修改时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1727280000000', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"SchedulerType\\": \\"NORMAL\\",\\n \\"RepeatInterval\\": 60,\\n \\"Repeatability\\": \\"true\\",\\n \\"RepeatMode\\": 1,\\n \\"ProjectId\\": 1234,\\n \\"ProgramType\\": \\"ODPS_SQL\\",\\n \\"Priority\\": 1,\\n \\"OwnerId\\": \\"17366294****\\",\\n \\"Connection\\": \\"odps_source_dev\\",\\n \\"ParamValues\\": \\"a=b\\",\\n \\"RelatedFlowId\\": 123,\\n \\"DqcType\\": 1,\\n \\"BaselineId\\": 123456,\\n \\"Description\\": \\"test\\",\\n \\"NodeName\\": \\"sql节点\\",\\n \\"ResGroupName\\": \\"默认资源组\\",\\n \\"BusinessId\\": 123,\\n \\"DqcDescription\\": \\"[{\\\\\\"projectName\\\\\\":\\\\\\"test_0923001\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"test_table_001\\\\\\",\\\\\\"partition\\\\\\":\\\\\\"ds\\\\\\\\u003d$[yyyymmdd]\\\\\\"},{\\\\\\"projectName\\\\\\":\\\\\\"test_0923001\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"test_table_002\\\\\\",\\\\\\"partition\\\\\\":\\\\\\"NOTAPARTITIONTABLE\\\\\\"}]\\",\\n \\"CronExpress\\": \\"00 00 00 * * ?\\",\\n \\"NodeId\\": 1234,\\n \\"ResGroupIdentifier\\": \\"group_123\\",\\n \\"FileType\\": 10,\\n \\"FileId\\": 123,\\n \\"FileVersion\\": 1,\\n \\"DeployDate\\": 1727280000000,\\n \\"CreateTime\\": 1727280000000,\\n \\"ModifyTime\\": 1727280000000\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n E6F0DBDD-5AD****\\n The connection does not exist.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n NORMAL\\n 60\\n true\\n 1234\\n ODPS_SQL\\n 1\\n 17366294****\\n odps_source_dev\\n a=b\\n 123\\n 1\\n 123456\\n test\\n sql节点\\n 默认资源组\\n 123\\n [{\\"projectName\\":\\"test_0923001\\",\\"tableName\\":\\"test_table_001\\",\\"partition\\":\\"ds\\\\u003d$[yyyymmdd]\\"},{\\"projectName\\":\\"test_0923001\\",\\"tableName\\":\\"test_table_002\\",\\"partition\\":\\"NOTAPARTITIONTABLE\\"}]\\n 00 00 00 * * ?\\n 1234\\n group_123\\n 10\\n \\n","errorExample":""}]', + 'title' => '获取节点详情', + 'summary' => '获取节点的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListNodeInputOrOutput' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78318', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID。您可以调用[ListNodes](~~173979~~)接口查看NodeId的相关信息。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '12314567', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括DEV(开发环境)和PROD(生产环境)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'isFileTransferUrl' => false, + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'IoType', + 'in' => 'formData', + 'schema' => [ + 'description' => '用于指定查询节点为上游节点还是下游节点。取值如下:'."\n" + .'- input,上游节点。'."\n" + .'- output,下游节点。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'output', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID,用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The project does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ProjectNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '输入输出列表。', + 'type' => 'array', + 'items' => [ + 'description' => '输入输出信息。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '该参数暂不生效,目前无法获取。', + 'type' => 'string', + 'example' => 'dwd_xxx_table', + ], + 'Data' => [ + 'description' => '输入输出节点名称。', + 'type' => 'string', + 'example' => 'xxxx.123141254_out', + ], + 'NodeId' => [ + 'description' => '节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12314567', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorMessage\\": \\"The project does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ProjectNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"TableName\\": \\"dwd_xxx_table\\",\\n \\"Data\\": \\"xxxx.123141254_out\\",\\n \\"NodeId\\": 12314567\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n E6F0DBDD-5AD****\\n The project does not exist.\\n Invalid.Tenant.ProjectNotExists\\n true\\n \\n dwd_xxx_table\\n xxxx.123141254_out\\n 1234667\\n \\n","errorExample":""}]', + 'title' => '查询节点输入输出信息', + 'summary' => '查询当前节点的输入输出信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListNodes' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78320', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '负责人的ID。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '193379****', + ], + ], + [ + 'name' => 'BizName', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'test_bizName', + ], + ], + [ + 'name' => 'ProgramType', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的类型。您可以调用[ListFileType](~~212428~~)查看节点类型。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'ODPS_SQL', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码数。最小值1,最大值100', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括DEV和PROD。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'NodeName', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'liux_test_n****', + ], + ], + [ + 'name' => 'SchedulerType', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度的类型,取值如下:'."\n" + .'- NORMAL:正常调度任务。'."\n" + .'- PAUSE:暂停任务。'."\n" + .'- SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'required' => false, + 'example' => 'NORMAL', + 'enum' => [ + 'NORMAL', + 'MANUAL', + 'PAUSE', + 'SKIP', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '节点的列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '符合条件的节点总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '66', + ], + 'Nodes' => [ + 'description' => '节点的信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'SchedulerType' => [ + 'description' => '调度的类型,取值如下:'."\n" + .'- NORMAL:正常调度任务。'."\n" + .'- PAUSE:暂停任务。'."\n" + .'- SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'RepeatInterval' => [ + 'description' => '出错后重新调度频率。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '60', + ], + 'Repeatability' => [ + 'description' => '是否可以重复运行。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RepeatMode' => [ + 'description' => '重跑的模式,0 表示只有失败的情况下可以重跑,1 表示所有情况均可重跑,2 表示所有情况下均不可重跑。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '33671', + ], + 'ProgramType' => [ + 'description' => '节点的类型。', + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + 'Priority' => [ + 'description' => '优先级,1/3/5/7/8', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'OwnerId' => [ + 'description' => '负责人的ID。', + 'type' => 'string', + 'example' => '19337906836551', + ], + 'Connection' => [ + 'description' => '连接串。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'ParamValues' => [ + 'description' => '额外的参数。', + 'type' => 'string', + 'example' => 'a=b', + ], + 'RelatedFlowId' => [ + 'description' => '关联业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1231123', + ], + 'DqcType' => [ + 'description' => 'DQC类型,0表示没有关联dqc,1表示有关联dqc。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BaselineId' => [ + 'description' => '基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123456', + ], + 'Description' => [ + 'description' => '节点的描述信息。', + 'type' => 'string', + 'example' => 'test', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'liux_test_n****', + ], + 'ResGroupName' => [ + 'description' => '资源组的名称。', + 'type' => 'string', + 'example' => '默认资源组', + ], + 'BusinessId' => [ + 'description' => '业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'DqcDescription' => [ + 'description' => 'DQC分区规则串。', + 'type' => 'string', + 'example' => '[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\\u003d$[yyyy-mm-dd-1]"}]', + ], + 'CronExpress' => [ + 'description' => 'cron表达式。', + 'type' => 'string', + 'example' => '00 00 00 * * ?', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ResGroupIdentifier' => [ + 'description' => '资源组标识。', + 'type' => 'string', + 'example' => 'group_123', + ], + 'FileType' => [ + 'description' => '不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。'."\n" + .'您也可以调用[ListFileType](~~212428~~)接口,查询文件的代码类型。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'FileId' => [ + 'description' => '文件的ID。您可以调用ListFiles接口查询对应文件的ID。字段已弃用', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '20', + ], + 'FileVersion' => [ + 'description' => '文件的版本。为当前已经提交的最新版本号。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'DeployDate' => [ + 'description' => '提交发布日期的时间戳,单位为毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1734537600000', + ], + 'CreateTime' => [ + 'description' => '节点创建的时间戳,单位为毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593879116000', + ], + 'ModifyTime' => [ + 'description' => '节点修改的时间戳,单位为毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593879116000', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 66,\\n \\"Nodes\\": [\\n {\\n \\"SchedulerType\\": \\"NORMAL\\",\\n \\"RepeatInterval\\": 60,\\n \\"Repeatability\\": true,\\n \\"RepeatMode\\": 1,\\n \\"ProjectId\\": 33671,\\n \\"ProgramType\\": \\"ODPS_SQL\\",\\n \\"Priority\\": 1,\\n \\"OwnerId\\": \\"19337906836551\\",\\n \\"Connection\\": \\"odps_source\\",\\n \\"ParamValues\\": \\"a=b\\",\\n \\"RelatedFlowId\\": 1231123,\\n \\"DqcType\\": 1,\\n \\"BaselineId\\": 123456,\\n \\"Description\\": \\"test\\",\\n \\"NodeName\\": \\"liux_test_n****\\",\\n \\"ResGroupName\\": \\"默认资源组\\",\\n \\"BusinessId\\": 123,\\n \\"DqcDescription\\": \\"[{\\\\\\"projectName\\\\\\":\\\\\\"ztjy_dim\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"dim_user_agent_manage_area_a\\\\\\",\\\\\\"partition\\\\\\":\\\\\\"ds\\\\\\\\u003d$[yyyy-mm-dd-1]\\\\\\"}]\\",\\n \\"CronExpress\\": \\"00 00 00 * * ?\\",\\n \\"NodeId\\": 1234,\\n \\"ResGroupIdentifier\\": \\"group_123\\",\\n \\"FileType\\": 10,\\n \\"FileId\\": 20,\\n \\"FileVersion\\": 3,\\n \\"DeployDate\\": 1734537600000,\\n \\"CreateTime\\": 1593879116000,\\n \\"ModifyTime\\": 1593879116000\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n E6F0DBDD-5AD****\\n The connection does not exist.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n 1\\n 10\\n 66\\n \\n NORMAL\\n 60\\n true\\n 33671\\n ODPS_SQL\\n 1\\n 19337906836551\\n odps_source\\n a=b\\n 1231123\\n 1\\n 123456\\n test\\n liux_test_n****\\n 默认资源组\\n 123\\n [{\\"projectName\\":\\"ztjy_dim\\",\\"tableName\\":\\"dim_user_agent_manage_area_a\\",\\"partition\\":\\"ds\\\\u003d$[yyyy-mm-dd-1]\\"}]\\n 00 00 00 * * ?\\n 1234\\n group_123\\n 10\\n \\n \\n","errorExample":""}]', + 'title' => '获取节点的列表', + 'summary' => '调用ListNodes获取节点的列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetNodeCode' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78274', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + 'FEATUREdideVFMENL', + ], + ], + 'parameters' => [ + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '1234', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'isFileTransferUrl' => false, + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '节点的代码。', + 'type' => 'string', + 'example' => 'select a;', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"select a;\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n select a;\\n The connection does not exist.\\n E6F0DBDD-5AD****\\n true\\n Invalid.Tenant.ConnectionNotExists\\n","errorExample":""}]', + 'title' => '获取节点的代码', + 'summary' => '调用GetNodeCode获取节点的代码。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetInstance' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78249', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的ID。您可以调用[ListInstances](~~173982~~)获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD(生产环境)和DEV(开发环境)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorMessage' => [ + 'description' => '调度实例失败时的异常信息。', + 'type' => 'string', + 'example' => 'test', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '0', + ], + 'Data' => [ + 'description' => '实例的详细信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '任务的状态,取值如下:'."\n" + ."\n" + .'- NOT_RUN(1):未运行'."\n" + .'- WAIT_TIME(2): 等待时间。等待定时时间到来'."\n" + .'- WAIT_RESOURCE(3):等待资源。已经下发到执行引擎,在等待资源排队调度执行'."\n" + .'- RUNNING(4):运行中'."\n" + .'- CHECKING(7):校验中。执行完毕,下发给数据质量进行数据校检'."\n" + .'- CHECKING_CONDITION(8): 条件检测中。执行完毕,正在做分支条件校验'."\n" + .'- WAIT_TRIGGER(9):等待触发。触发式节点会在等待时间后变成等待触发'."\n" + .'- FAILURE(5):运行失败'."\n" + .'- SUCCESS(6):运行成功', + 'type' => 'string', + 'example' => 'NOT_RUN', + ], + 'CycTime' => [ + 'description' => '实例的定时时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590422400000', + ], + 'BeginRunningTime' => [ + 'description' => '实例开始运行的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'FinishTime' => [ + 'description' => '实例运行的结束时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'CreateTime' => [ + 'description' => '实例的创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'DagId' => [ + 'description' => '工作流的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '338450167', + ], + 'Priority' => [ + 'description' => '实例运行优先级,取值分为1、3、5、7和8。取值越大,优先级越高。默认优先级为1。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TaskType' => [ + 'description' => '实例的调度类型,取值如下:'."\n" + .'- NORMAL(0):正常调度任务。该任务被日常调度。'."\n" + .'- MANUAL(1):手动任务。该任务不会被日常调度。'."\n" + .'- PAUSE(2):冻结任务。该任务被日常调度,但启动调度时直接被置为失败状态。'."\n" + .'- SKIP(3):空跑任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- SKIP_UNCHOOSE(4):临时工作流中未选择的任务,仅存在于临时工作流中,启动调度时直接被置为成功状态。'."\n" + .'- SKIP_CYCLE(5):未到运行周期的周或月任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- CONDITION_UNCHOOSE(6):上游实例中有分支(IF)节点,但是该下游节点未被分支节点选中,直接置为空跑任务。'."\n" + .'- REALTIME_DEPRECATED(7):实时生成的已经过期的周期实例,该类型的任务直接被置为成功状态。', + 'type' => 'string', + 'example' => 'NORMAL(0)', + ], + 'ParamValues' => [ + 'description' => '参数信息。', + 'type' => 'string', + 'example' => 'bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif', + ], + 'Connection' => [ + 'description' => '连接串。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'BaselineId' => [ + 'description' => '基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123123', + ], + 'DqcType' => [ + 'description' => '数据质量DQC类型,取值如下:'."\n" + .'- 0表示有关联dqc。'."\n" + .'- 1表示没有关联dqc。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'DagType' => [ + 'description' => '工作流的类型,取值如下:'."\n" + ."\n" + .'- DAILY(0):日常调度工作流'."\n" + .'- MANUAL(1):手动任务工作流'."\n" + .'- SMOKE_TEST(2):冒烟测试工作流'."\n" + .'- SUPPLY_DATA(3):补数据工作流'."\n" + .'- MANUAL_FLOW(4):手动运行的dataflow pai 业务流程等(如IDE上点击运行业务流程)'."\n" + .'- BUSINESS_PROCESS_DAG(5):手动业务流程工作流', + 'type' => 'string', + 'example' => 'DAILY', + ], + 'BusinessId' => [ + 'description' => '业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'TaskRerunTime' => [ + 'description' => '实例还可以运行的次数。取值可以为空、以及大于等于0的整数。'."\n" + .'- 取值为空,表示该实例对应的节点没有设置自动重跑次数。'."\n" + .'- 取值为0,表示该实例不能再重跑。'."\n" + .'- 取值为大于0的整数(假设为n),表示该实例可重跑次数为n。例如,该参数取值为1,则剩余重跑次数为1,取值为2,则剩余重跑次数为2,以此类推。初始值为对应节点定义的自动重跑次数+1。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'PeriodNumber' => [ + 'description' => '周期序号。表示任务实例处于当天的第几轮周期。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ModifyTime' => [ + 'description' => '实例的最新修改时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'Repeatability' => [ + 'description' => '实例是否可以重复执行。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RepeatInterval' => [ + 'description' => '调度任务运行出错后,重新调整调度频率,单位为毫秒(ms)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '60000', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11713307578', + ], + 'BeginWaitResTime' => [ + 'description' => '实例开始等待资源的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'RelatedFlowId' => [ + 'description' => '关联的业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123123', + ], + 'Bizdate' => [ + 'description' => '业务日期。通常为该任务运行时间的前一天。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590336000000', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'kzh', + ], + 'BeginWaitTimeTime' => [ + 'description' => '实例开始等待调度的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'DqcDescription' => [ + 'description' => 'DQC分区规则串。', + 'type' => 'string', + 'example' => '[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\\u003d$[yyyy-mm-dd-1]"}]', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '33115', + ], + 'CreateUser' => [ + 'description' => '实例创建人。', + 'type' => 'string', + 'example' => '111', + ], + 'Owner' => [ + 'description' => '实例责任人。', + 'type' => 'string', + 'example' => '111', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorMessage\\": \\"test\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"Status\\": \\"NOT_RUN\\",\\n \\"CycTime\\": 1590422400000,\\n \\"BeginRunningTime\\": 1590416703313,\\n \\"FinishTime\\": 1590416703313,\\n \\"CreateTime\\": 1590416703313,\\n \\"DagId\\": 338450167,\\n \\"Priority\\": 1,\\n \\"TaskType\\": \\"NORMAL(0)\\",\\n \\"ParamValues\\": \\"bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif\\",\\n \\"Connection\\": \\"odps_source\\",\\n \\"BaselineId\\": 123123,\\n \\"DqcType\\": 1,\\n \\"DagType\\": \\"DAILY\\",\\n \\"BusinessId\\": 123,\\n \\"TaskRerunTime\\": 0,\\n \\"PeriodNumber\\": 1,\\n \\"ModifyTime\\": 1590416703313,\\n \\"Repeatability\\": true,\\n \\"RepeatInterval\\": 60000,\\n \\"InstanceId\\": 11713307578,\\n \\"BeginWaitResTime\\": 1590416703313,\\n \\"RelatedFlowId\\": 123123,\\n \\"Bizdate\\": 1590336000000,\\n \\"NodeName\\": \\"kzh\\",\\n \\"BeginWaitTimeTime\\": 1590416703313,\\n \\"DqcDescription\\": \\"[{\\\\\\"projectName\\\\\\":\\\\\\"ztjy_dim\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"dim_user_agent_manage_area_a\\\\\\",\\\\\\"partition\\\\\\":\\\\\\"ds\\\\\\\\u003d$[yyyy-mm-dd-1]\\\\\\"}]\\",\\n \\"NodeId\\": 33115,\\n \\"CreateUser\\": \\"111\\",\\n \\"Owner\\": \\"111\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n E6F0DBDD-5AD****\\n test\\n true\\n 0\\n \\n NOT_RUN\\n 1590422400000\\n 1590416703313\\n 1590416703313\\n 1590416703313\\n 338450167\\n 1\\n NORMAL(0)\\n bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif\\n odps_source\\n 123123\\n 1\\n DAILY\\n 123\\n 0\\n 1590416703313\\n true\\n 60000\\n 11713307578\\n 1590416703313\\n 123123\\n 1590336000000\\n kzh\\n 1590416703313\\n [{\\"projectName\\":\\"ztjy_dim\\",\\"tableName\\":\\"dim_user_agent_manage_area_a\\",\\"partition\\":\\"ds\\\\u003d$[yyyy-mm-dd-1]\\"}]\\n 33115\\n 111\\n \\n","errorExample":""}]', + 'title' => '获取实例的详情', + 'summary' => '调用GetInstance接口,获取实例的详细信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListInstances' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78315', + 'abilityTreeNodes' => [ + 'FEATUREdide4QKMAF', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括PROD(生产环境)和DEV(开发环境)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID。您可以调用[ListNodes](~~173979~~)查看节点ID信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '100000000000', + ], + ], + [ + 'name' => 'NodeName', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的名称。您可以调用[ListNodes](~~173979~~)查看节点名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'openmr_8****', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '负责人的ID,即工作空间管理员的账号UID。您可登录阿里云控制台后,在账号管理的安全管理中查看账号UID。', + 'type' => 'string', + 'required' => false, + 'example' => '193379****', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。您可以调用[ListProjects](~~178393~~)查看空间ID信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'BizName', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的名称。您可以调用[ListBusiness](~~173945~~)查看业务流程信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'test_bizName', + ], + ], + [ + 'name' => 'ProgramType', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的类型。您可以调用[ListNodes](~~173979~~)查看节点类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'ODPS_SQL', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码数,用于翻页。最小值为1,最大值为100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'DagId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DagId可以是执行补数据[RunCycleDagNodes](~~212961~~),冒烟测试[RunSmokeTest](~~212949~~),手动业务流程[RunManualDagNodes](~~212830~~)等接口返回的DagId。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '11111', + ], + ], + [ + 'name' => 'Bizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '获取实例列表的日期,格式为yyyy-MM-dd HH:mm:ss。', + 'type' => 'string', + 'required' => false, + 'example' => '2020-02-02 00:00:00', + ], + ], + [ + 'name' => 'BeginBizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '获取实例列表的开始日期,格式为yyyy-MM-dd HH:mm:ss。', + 'type' => 'string', + 'required' => false, + 'example' => '2020-02-02 00:00:00', + ], + ], + [ + 'name' => 'EndBizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '获取实例列表的结束日期,格式为yyyy-MM-dd HH:mm:ss。', + 'type' => 'string', + 'required' => false, + 'example' => '2020-02-03 00:00:00', + ], + ], + [ + 'name' => 'Status', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务的状态,取值如下:'."\n" + ."\n" + .'- NOT_RUN(未运行)'."\n" + ."\n" + .'- WAIT_TIME(等待定时间DueTime或CycTime到来)'."\n" + ."\n" + .'- WAIT_RESOURCE(等待资源)'."\n" + ."\n" + .'- RUNNING(运行中)'."\n" + .'- CHECKING(下发给数据质量进行数据校验)'."\n" + .'- CHECKING_CONDITION(正在进行分支条件校验)'."\n" + .'- FAILURE(执行失败)'."\n" + .'- SUCCESS(执行成功)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'NOT_RUN', + 'enum' => [ + 'SUCCESS', + 'FAILURE', + 'WAIT_TRIGGER', + 'CHECKING', + 'RUNNING', + 'WAIT_RESOURCE', + 'WAIT_TIME', + 'NOT_RUN', + ], + ], + ], + [ + 'name' => 'OrderBy', + 'in' => 'formData', + 'schema' => [ + 'description' => '返回值的排序规则。取值如下:'."\n" + .'- CREATE_TIME_DESC:按照创建时间降序返回'."\n" + .'- INSTANCE_ID_DESC:默认值,按照实例ID降序返回。 ', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'INSTANCE_ID_DESC', + 'enum' => [ + 'INSTANCE_ID_DESC', + 'CREATE_TIME_DESC', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The project does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ProjectNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '实例的列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '实例的总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '66', + ], + 'Instances' => [ + 'description' => '实例的信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '任务的状态,取值如下:'."\n" + ."\n" + .'- NOT_RUN(1):未运行'."\n" + .'- WAIT_TIME(2): 等待时间。等待定时时间到来'."\n" + .'- WAIT_RESOURCE(3):等待资源。已经下发到执行引擎,在等待资源排队调度执行'."\n" + .'- RUNNING(4):运行中'."\n" + .'- CHECKING(7):校验中。执行完毕,下发给数据质量进行数据校检'."\n" + .'- CHECKING_CONDITION(8): 条件检测中。执行完毕,正在做分支条件校验'."\n" + .'- WAIT_TRIGGER(9):等待触发。触发式节点会在等待时间后变成等待触发'."\n" + .'- FAILURE(5):运行失败'."\n" + .'- SUCCESS(6):运行成功', + 'type' => 'string', + 'example' => 'NOT_RUN', + ], + 'CycTime' => [ + 'description' => '调度任务的运行时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590422400000', + ], + 'BeginRunningTime' => [ + 'description' => '实例开始运行的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'FinishTime' => [ + 'description' => '调度任务的结束时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'ErrorMessage' => [ + 'description' => '实例运行的报错信息。'."\n" + ."\n" + .'该字段已废弃,您可以调用[GetInstanceLog](~~173983~~)接口获取执行任务的相关报错信息。', + 'type' => 'string', + 'example' => 'error message', + ], + 'CreateTime' => [ + 'description' => '实例的创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'DagId' => [ + 'description' => '工作流的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '33845', + ], + 'Priority' => [ + 'description' => '实例运行优先级,取值分为1、3、5、7和8。'."\n" + ."\n" + .'取值越大,优先级越高。默认优先级为1。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TaskType' => [ + 'description' => '任务实例的调度类型,取值如下:'."\n" + .'- NORMAL(0):正常调度任务。该任务被日常调度。'."\n" + .'- MANUAL(1):手动任务。该任务不会被日常调度。'."\n" + .'- PAUSE(2):冻结任务。该任务被日常调度,但启动调度时直接被置为失败状态。'."\n" + .'- SKIP(3):空跑任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- SKIP_UNCHOOSE(4):临时工作流中未选择的任务,仅存在于临时工作流中,启动调度时直接被置为成功状态。'."\n" + .'- SKIP_CYCLE(5):未到运行周期的周或月任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- CONDITION_UNCHOOSE(6):上游实例中有分支(IF)节点,但是该下游节点未被分支节点选中,直接置为空跑任务。'."\n" + .' REALTIME_DEPRECATED(7):实时生成的已经过期的周期实例,该类型的任务直接被置为成功状态。', + 'type' => 'string', + 'example' => 'NORMAL(0)', + ], + 'ParamValues' => [ + 'description' => '参数的信息。', + 'type' => 'string', + 'example' => 'bizdate=$bizdate tbods=$tbods', + ], + 'Connection' => [ + 'description' => '连接串。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'BaselineId' => [ + 'description' => '基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123123', + ], + 'DqcType' => [ + 'description' => 'DQC类型,取值如下:'."\n" + .'- 0表示有关联dqc。'."\n" + .'- 1表示没有关联dqc。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'DagType' => [ + 'description' => '工作流的类型,取值如下:'."\n" + ."\n" + .'- DAILY(0):日常调度工作流'."\n" + .'- MANUAL(1):手动任务工作流'."\n" + .'- SMOKE_TEST(2):冒烟测试工作流'."\n" + .'- SUPPLY_DATA(3):补数据工作流'."\n" + .'- MANUAL_FLOW(4):手动运行的dataflow pai 业务流程等(如IDE上点击运行业务流程)'."\n" + .'- BUSINESS_PROCESS_DAG(5):手动业务流程工作流', + 'type' => 'string', + 'example' => 'DAILY', + ], + 'BusinessId' => [ + 'description' => '业务流程ID', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'TaskRerunTime' => [ + 'description' => '实例还可以运行的次数。取值可以为空、以及大于等于0的整数。'."\n" + .'- 取值为空,表示该实例对应的节点没有设置自动重跑次数。'."\n" + .'- 取值为0,表示该实例不能再重跑。'."\n" + .'- 取值为大于0的整数(假设为n),表示该实例可重跑次数为n。例如,该参数取值为1,则剩余重跑次数为1,取值为2,则剩余重跑次数为2,以此类推。初始值为对应节点定义的自动重跑次数+1。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ModifyTime' => [ + 'description' => '调度任务的最新修改时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'Repeatability' => [ + 'description' => '实例任务是否可以重复执行。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RepeatInterval' => [ + 'description' => '调度任务运行出错后,重新调整调度频率,单位为毫秒(ms)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '60000', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'BeginWaitResTime' => [ + 'description' => '实例任务开始等待资源的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'RelatedFlowId' => [ + 'description' => '关联的业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123456', + ], + 'Bizdate' => [ + 'description' => '执行调度任务的日期。通常为该任务运行时间的前一天。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590336000000', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'kzh', + ], + 'BeginWaitTimeTime' => [ + 'description' => '实例任务开始等待调度的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'DqcDescription' => [ + 'description' => 'DQC分区规则串。', + 'type' => 'string', + 'example' => '[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\\u003d$[yyyy-mm-dd-1]"}]', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '33115', + ], + 'CreateUser' => [ + 'description' => '触发实例运行的用户。例如,用户Test触发补数据实例运行,则CreateUser为Test。', + 'type' => 'string', + 'example' => 'Test', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorMessage\\": \\"The project does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ProjectNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 66,\\n \\"Instances\\": [\\n {\\n \\"Status\\": \\"NOT_RUN\\",\\n \\"CycTime\\": 1590422400000,\\n \\"BeginRunningTime\\": 1590416703313,\\n \\"FinishTime\\": 1590416703313,\\n \\"ErrorMessage\\": \\"error message\\",\\n \\"CreateTime\\": 1590416703313,\\n \\"DagId\\": 33845,\\n \\"Priority\\": 1,\\n \\"TaskType\\": \\"NORMAL(0)\\",\\n \\"ParamValues\\": \\"bizdate=$bizdate tbods=$tbods\\",\\n \\"Connection\\": \\"odps_source\\",\\n \\"BaselineId\\": 123123,\\n \\"DqcType\\": 1,\\n \\"DagType\\": \\"DAILY\\",\\n \\"BusinessId\\": 123,\\n \\"TaskRerunTime\\": 0,\\n \\"ModifyTime\\": 1590416703313,\\n \\"Repeatability\\": true,\\n \\"RepeatInterval\\": 60000,\\n \\"InstanceId\\": 1234,\\n \\"BeginWaitResTime\\": 1590416703313,\\n \\"RelatedFlowId\\": 123456,\\n \\"Bizdate\\": 1590336000000,\\n \\"NodeName\\": \\"kzh\\",\\n \\"BeginWaitTimeTime\\": 1590416703313,\\n \\"DqcDescription\\": \\"[{\\\\\\"projectName\\\\\\":\\\\\\"ztjy_dim\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"dim_user_agent_manage_area_a\\\\\\",\\\\\\"partition\\\\\\":\\\\\\"ds\\\\\\\\u003d$[yyyy-mm-dd-1]\\\\\\"}]\\",\\n \\"NodeId\\": 33115,\\n \\"CreateUser\\": \\"Test\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n E6F0DBDD-5AD****\\n The project does not exist.\\n Invalid.Tenant.ProjectNotExists\\n true\\n \\n 1\\n 10\\n 66\\n \\n NOT_RUN\\n 1590422400000\\n 1590416703313\\n 1590416703313\\n error message\\n 1590416703313\\n 33845\\n 1\\n NORMAL(0)\\n bizdate=$bizdate tbods=$tbods\\n odps_source\\n 123123\\n 1\\n DAILY\\n 123\\n 0\\n 1590416703313\\n true\\n 60000\\n 1234\\n 1590416703313\\n 123456\\n 1590336000000\\n kzh\\n 1590416703313\\n [{\\"projectName\\":\\"ztjy_dim\\",\\"tableName\\":\\"dim_user_agent_manage_area_a\\",\\"partition\\":\\"ds\\\\u003d$[yyyy-mm-dd-1]\\"}]\\n 33115\\n Test\\n \\n \\n","errorExample":""}]', + 'title' => '获取实例的列表', + 'summary' => '调用ListInstances获取实例的列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetInstanceLog' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78253', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'InstanceHistoryId', + 'in' => 'formData', + 'schema' => [ + 'description' => '可以从ListInstanceHistory获取InstanceHistoryId', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '日志的内容。', + 'type' => 'string', + 'example' => 'log_content', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"log_content\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n log_content\\n The connection does not exist.\\n E6F0DBDD-5AD****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '获取实例的日志', + 'summary' => '调用GetInstanceLog获取实例的日志。', + 'description' => '超过7天的实例可能查不到日志数据。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'StopInstance' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78359', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的ID。您可以调用[ListInstances](~~173982~~)获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '调用停止实例接口后,返回的结果详情。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n E6F0DBDD-5AD****\\n 200\\n true\\n Invalid.Tenant.ConnectionNotExists\\n The connection does not exist.\\n true\\n","errorExample":""}]', + 'title' => '终止实例', + 'summary' => '调用StopInstance终止实例。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'RestartInstance' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78342', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '调用重启实例接口后,返回的结果详情。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'q32ety****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"q32ety****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"q32ety****\\n200\\ntrue\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '重启实例', + 'summary' => '调用RestartInstance重启实例。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'SetSuccessInstance' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78355', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '调用SetSuccessInstance接口后,是否返回结果详情。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n The connection does not exist.\\n E6F0DBDD-5AD****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '重置失败状态的实例为成功', + 'summary' => '调用SetSuccessInstance,重置失败状态的实例为成功。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'SuspendInstance' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78361', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '调用SuspendInstance接口后,返回的结果详情。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0baf87f0159376****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ProjectNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0baf87f0159376****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ProjectNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0baf87f0159376****\\n200\\ntrue\\nInvalid.Tenant.ProjectNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '暂停实例', + 'summary' => '调用SuspendInstance暂停实例。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ResumeInstance' => [ + 'summary' => '调用ResumeInstance恢复暂停状态的实例。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78343', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '调用ResumeInstance接口后,返回的结果详情。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n The connection does not exist.\\n E6F0DBDD-5AD****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '恢复暂停状态的实例', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'RunCycleDagNodes' => [ + 'summary' => '调用RunCycleDagNodes创建补数据工作流。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78346', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,PROD表示生产环境,DEV表示开发环境。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'StartBizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '补数据的起始业务日期。格式为yyyy-MM-dd 00:00:00。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-05-20 00:00:00', + ], + ], + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作流的名称。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'xm_test', + 'maxLength' => 128, + ], + ], + [ + 'name' => 'RootNodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '补数据的起始节点ID。您可以通过调用[ListNodes](~~173979~~)接口获取节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ExcludeNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '无需补数据的节点ID列表,在这个列表中的节点会生成空跑实例,空跑实例被调度后会直接运行成功,不会执行脚本内容。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '1234,123465', + ], + ], + [ + 'name' => 'BizBeginTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务的开始时间。仅小时调度任务需要设置该参数,格式为HH:mm:ss,取值范围为 00:00:00~23:59:59。'."\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '00:00:00', + ], + ], + [ + 'name' => 'BizEndTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务的结束时间。仅小时调度任务需要设置该参数,格式为HH:mm:ss,取值范围为 00:00:00~23:59:59。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '01:00:00', + ], + ], + [ + 'name' => 'Parallelism', + 'in' => 'formData', + 'schema' => [ + 'description' => '多个业务日期的任务是否可以并行运行。', + 'type' => 'boolean', + 'required' => true, + 'docRequired' => true, + 'example' => 'false', + ], + ], + [ + 'name' => 'EndBizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '补数据的结束业务日期。格式为yyyy-MM-dd 00:00:00。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-05-21 00:00:00', + ], + ], + [ + 'name' => 'NodeParams', + 'in' => 'formData', + 'schema' => [ + 'description' => '配置为一个JSON字符串,Key为节点ID,Value为参数的实际取值。'."\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '{"74324":"a=123 b=456"}', + ], + ], + [ + 'name' => 'IncludeNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '补数据的节点ID。对多个节点补数据时,多个节点ID使用逗号(,)分隔。您可以通过调用[ListNodes](~~173979~~)接口获取节点ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '74324,74325', + ], + ], + [ + 'name' => 'StartFutureInstanceImmediately', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否立刻运行未来调度时间的实例,如果设置为true,则大于当前时间的实例会立刻运行,否则会等待调度时间', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + 'default' => 'false', + ], + ], + [ + 'name' => 'ConcurrentRuns', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务并行数。取值范围2~10。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '10', + 'minimum' => '2', + 'example' => '5', + ], + ], + [ + 'name' => 'AlertType', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警类型。取值范围:'."\n" + .'- SUCCESS:成功告警。'."\n" + .'- FAILURE:失败告警。'."\n" + .'- SUCCESS_FAILURE:成功或失败皆告警。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'FAILURE', + 'enum' => [ + 'SUCCESS', + 'FAILURE', + 'SUCCESS_FAILURE', + ], + ], + ], + [ + 'name' => 'AlertNoticeType', + 'in' => 'formData', + 'schema' => [ + 'description' => '告警通知方式。取值范围:'."\n" + .'- SMS:短信。'."\n" + .'- MAIL:邮件。'."\n" + .'- SMS_MAIL:短信与邮件。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'SMS', + 'enum' => [ + 'SMS', + 'MAIL', + 'SMS_MAIL', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => '>E6F0DBDD-5AD****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '周期任务补数据返回的DagId,可以通过该DagId查到对应的实例。', + 'type' => 'array', + 'items' => [ + 'description' => '工作流ID的列表。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '111', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\">E6F0DBDD-5AD****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": [\\n 111\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n >E6F0DBDD-5AD****\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n 111\\n","errorExample":""}]', + 'title' => '创建补数据工作流', + 'description' => '补数据相关内容,详情请参见[补数据](~~137937~~)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'RunSmokeTest' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78348', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD(生产环境)和DEV(开发环境)。'."\n" + .'简单模式的工作空间无开发环境,详情请参见[简单模式和标准模式的工作空间](~~85772~~)。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'Bizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-05-26 00:00:00', + ], + ], + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作流的名称。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'xm_create_test', + 'maxLength' => 128, + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID。您可以调用[ListNodes](~~173979~~)接口获取节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'NodeParams', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的参数。配置为一个JSON字符串,Key为节点 ID,Value为参数实际取值。'."\n", + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'bizdate=$bizdate tbods=$tbods', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '工作流的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3333333', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'false', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 3333333,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": false\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 3333333\\n The connection does not exist.\\n E6F0DBDD-5AD****\\n Invalid.Tenant.ConnectionNotExists\\n false\\n","errorExample":""}]', + 'title' => '运行冒烟测试', + 'summary' => '创建冒烟测试工作流。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListSuccessInstanceAmount' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78335', + 'abilityTreeNodes' => [ + 'FEATUREdideXLVI81', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99999999999', + 'minimum' => '2', + 'example' => '9527', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '952795279527ab****', + ], + 'InstanceStatusTrend' => [ + 'description' => '在业务日期的不同时刻,运行成功的实例数量统计趋势数据。'."\n", + 'type' => 'object', + 'properties' => [ + 'TodayTrend' => [ + 'description' => '业务日期当天的趋势。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构', + 'type' => 'object', + 'properties' => [ + 'TimePoint' => [ + 'description' => '时间点。取值范围为00:00~23:00中的整点小时时间,例如00:00、01:00、02:00等等。', + 'type' => 'string', + 'example' => '01:00', + ], + 'Count' => [ + 'description' => '运行成功的实例数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + 'YesterdayTrend' => [ + 'description' => '业务日期前一天的趋势。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'TimePoint' => [ + 'description' => '时间点。取值范围为00:00~23:00中的整点小时时间,例如00:00、01:00、02:00等等。', + 'type' => 'string', + 'example' => '01:00', + ], + 'Count' => [ + 'description' => '运行成功的实例数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + 'AvgTrend' => [ + 'description' => '历史平均趋势。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'TimePoint' => [ + 'description' => '时间点。取值范围为00:00~23:00中的整点小时时间,例如00:00、01:00、02:00等等。', + 'type' => 'string', + 'example' => '01:00', + ], + 'Count' => [ + 'description' => '运行成功的实例数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"952795279527ab****\\",\\n \\"InstanceStatusTrend\\": {\\n \\"TodayTrend\\": [\\n {\\n \\"TimePoint\\": \\"01:00\\",\\n \\"Count\\": 10\\n }\\n ],\\n \\"YesterdayTrend\\": [\\n {\\n \\"TimePoint\\": \\"01:00\\",\\n \\"Count\\": 10\\n }\\n ],\\n \\"AvgTrend\\": [\\n {\\n \\"TimePoint\\": \\"01:00\\",\\n \\"Count\\": 10\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 952795279527ab****\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n","errorExample":""}]', + 'title' => '获取运行成功的实例数量', + 'summary' => '获取业务日期当天生成的周期实例任务,在业务日期的不同整点时刻,运行成功的实例数量统计趋势。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListInstanceAmount' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78314', + 'abilityTreeNodes' => [ + 'FEATUREdideXLVI81', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99999999999', + 'minimum' => '2', + 'example' => '10000', + ], + ], + [ + 'name' => 'BeginDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '开始业务日期,精确到天。该参数需要配置为yyyy-MM-dd\'T\'HH:mm:ssZ的UTC格式。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2021-06-13T00:00:00+0800', + ], + ], + [ + 'name' => 'EndDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '结束业务日期,精确到天。该参数需要配置为yyyy-MM-dd\'T\'HH:mm:ssZ的UTC格式。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2021-06-16T00:00:00+0800', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '95279527adhfj****', + ], + 'InstanceCounts' => [ + 'description' => '周期实例数量在指定时间段的趋势数据。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'Date' => [ + 'description' => '获取周期实例数量的业务日期,此处显示业务日期对应的时间戳。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1623772800000', + ], + 'Count' => [ + 'description' => '周期实例的数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '9527', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.NoProject', + 'errorMessage' => 'You have not joined any project.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"95279527adhfj****\\",\\n \\"InstanceCounts\\": [\\n {\\n \\"Date\\": 1623772800000,\\n \\"Count\\": 9527\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 95279527adhfj****\\n \\n 1623772800000\\n 9527\\n \\n","errorExample":""}]', + 'title' => '获取指定时间段周期实例数量趋势', + 'summary' => '获取指定时间段周期实例数量的趋势。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'TopTenElapsedTimeInstance' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78364', + 'abilityTreeNodes' => [ + 'FEATUREdideXLVI81', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99999999999', + 'minimum' => '2', + 'example' => '1000001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '请求返回结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。'."\n", + 'type' => 'string', + 'example' => '6347364dadsfadf****', + ], + 'InstanceConsumeTimeRank' => [ + 'description' => '实例运行时长的排行记录。'."\n", + 'type' => 'object', + 'properties' => [ + 'UpdateTime' => [ + 'description' => '实例运行时长排行更新时间戳。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600963200000', + ], + 'ConsumeTimeRank' => [ + 'description' => '实例运行时长的排行数据。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '请求返回结果', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。'."\n", + 'type' => 'string', + 'example' => '952795279527', + ], + 'NodeName' => [ + 'description' => '节点的名称。'."\n", + 'type' => 'string', + 'example' => 'Node name', + ], + 'BusinessDate' => [ + 'description' => '实例运行的业务日期。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600963200000', + ], + 'ProgramType' => [ + 'description' => '任务的类型。'."\n" + .'常见的类型如下:'."\n" + .'6(Shell)、10(ODPS SQL)、11(ODPS MR)、23(数据集成)、24(ODPS Script)、99(虚拟节点)、221(PyODPS 2)、225(ODPS Spark)、227(EMR Hive)、228(EMR Spark)、229(EMR Spark SQL)、230(EMR MR)、239(OSS对象检查)、257(EMR Shell)、258(EMR Spark Shell)、259(EMR Presto)、260(EMR Impala)、900(实时同步)、1089(跨租户节点)、1091(Hologres开发)、1093(Hologres SQL)、1100(赋值节点)、1221(PyODPS 3)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'InstanceId' => [ + 'description' => '实例ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '95279527', + ], + 'NodeId' => [ + 'description' => '任务节点的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + 'Consumed' => [ + 'description' => '实例运行时长,单位为s。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6347364dadsfadf****\\",\\n \\"InstanceConsumeTimeRank\\": {\\n \\"UpdateTime\\": 1600963200000,\\n \\"ConsumeTimeRank\\": [\\n {\\n \\"Owner\\": \\"952795279527\\",\\n \\"NodeName\\": \\"Node name\\",\\n \\"BusinessDate\\": 1600963200000,\\n \\"ProgramType\\": 10,\\n \\"InstanceId\\": 95279527,\\n \\"NodeId\\": 9527,\\n \\"Consumed\\": 1000\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 6347364dadsfadf****\\n \\n 1600963200000\\n \\n 952795279527\\n 节点名称\\n 1600963200000\\n 10\\n 95279527\\n 9527\\n 1000\\n \\n \\n","errorExample":""}]', + 'title' => '获取昨天耗时最长的任务排行', + 'summary' => '获取实例运行时长排行。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'TopTenErrorTimesInstance' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78365', + 'abilityTreeNodes' => [ + 'FEATUREdideXLVI81', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99999999999', + 'minimum' => '2', + 'example' => '10000001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。'."\n", + 'type' => 'string', + 'example' => '952795279527****', + ], + 'InstanceErrorRank' => [ + 'description' => '节点出错的排行数据。'."\n", + 'type' => 'object', + 'properties' => [ + 'UpdateTime' => [ + 'description' => '出错排行更新的时间戳。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600963200000', + ], + 'ErrorRank' => [ + 'description' => '节点近一个月出错排行数据。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构', + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。'."\n", + 'type' => 'string', + 'example' => '952795279527', + ], + 'NodeName' => [ + 'description' => '节点的名称。'."\n", + 'type' => 'string', + 'example' => 'Node name', + ], + 'ProjectId' => [ + 'description' => 'DataWorks工作空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + 'ProgramType' => [ + 'description' => '节点任务的类型。'."\n" + .'常用的类型如下:'."\n" + .'6(Shell)、10(ODPS SQL)、11(ODPS MR)、23(数据集成)、24(ODPS Script)、99(虚拟节点)、221(PyODPS 2)、225(ODPS Spark)、227(EMR Hive)、228(EMR Spark)、229(EMR Spark SQL)、230(EMR MR)、239(OSS对象检查)、257(EMR Shell)、258(EMR Spark Shell)、259(EMR Presto)、260(EMR Impala)、900(实时同步)、1089(跨租户节点)、1091(Hologres开发)、1093(Hologres SQL)、1100(赋值节点)、1221(PyODPS 3)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + 'Count' => [ + 'description' => '节点出错的次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"952795279527****\\",\\n \\"InstanceErrorRank\\": {\\n \\"UpdateTime\\": 1600963200000,\\n \\"ErrorRank\\": [\\n {\\n \\"Owner\\": \\"952795279527\\",\\n \\"NodeName\\": \\"Node name\\",\\n \\"ProjectId\\": 9527,\\n \\"ProgramType\\": 10,\\n \\"NodeId\\": 9527,\\n \\"Count\\": 5\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 952795279527****\\n \\n 1600963200000\\n \\n 952795279527\\n 节点名称\\n 9527\\n 10\\n 9527\\n 5\\n \\n \\n","errorExample":""}]', + 'title' => '获取近一个月节点的出错排行', + 'summary' => '获取近一个月节点的出错排行。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetFileTypeStatistic' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78246', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '123465', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括DEV(开发环境)和PROD(生产环境)。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'isFileTransferUrl' => false, + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求的ID,用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF', + ], + 'ProgramTypeAndCounts' => [ + 'description' => '节点的类型和数量。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Count' => [ + 'description' => '节点的数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProgramType' => [ + 'description' => '节点的类型。'."\n" + .'常用的类型如下:'."\n" + .'6(Shell)、10(ODPS SQL)、11(ODPS MR)、23(数据集成)、24(ODPS Script)、99(虚拟节点)、221(PyODPS 2)、225(ODPS Spark)、227(EMR Hive)、228(EMR Spark)、229(EMR Spark SQL)、230(EMR MR)、239(OSS对象检查)、257(EMR Shell)、258(EMR Spark Shell)、259(EMR Presto)、260(EMR Impala)、900(实时同步)、1089(跨租户节点)、1091(Hologres开发)、1093(Hologres SQL)、1100(赋值节点)、1221(PyODPS 3)。'."\n", + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF\\",\\n \\"ProgramTypeAndCounts\\": [\\n {\\n \\"Count\\": 1,\\n \\"ProgramType\\": \\"ODPS_SQL\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF\\n\\n 1\\n ODPS_SQL\\n","errorExample":""}]', + 'title' => '获取节点任务类型分布情况', + 'summary' => '获取节点任务类型的分布情况。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetInstanceStatusStatistic' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78255', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '1234', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括PROD(生产环境)和DEV(开发环境)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'PROD', + 'isFileTransferUrl' => false, + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'BizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '获取不同实例状态数量的业务日期。格式为yyyy-MM-dd。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-01-01', + 'maxLength' => 10, + 'minLength' => 10, + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'SchedulerType', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度的类型,取值如下:'."\n" + .'- NORMAL:周期调度'."\n" + .'- MANUAL:手动调度'."\n" + .'- PAUSE:暂停调度'."\n" + .'- SKIP:空跑', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'NORMAL', + 'enum' => [ + 'NORMAL', + 'MANUAL', + 'PAUSE', + 'SKIP', + ], + ], + ], + [ + 'name' => 'DagType', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Dag Type的类型:'."\n" + .'- MANUAL:手动任务工作流'."\n" + .'- SMOKE_TEST:冒烟测试工作流'."\n" + .'- SUPPLY_DATA:补数据'."\n" + .'- BUSINESS_PROCESS_DAG:一次性业务流程工作流', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'MANUAL', + 'enum' => [ + 'DAILY', + 'MANUAL', + 'SMOKE_TEST', + 'SUPPLY_DATA', + 'BUSINESS_PROCESS_DAG', + ], + ], + ], + [ + 'name' => 'SchedulerPeriod', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度周期。'."\n" + .'- MINUTE:分钟。'."\n" + .'- HOUR:小时。'."\n" + .'- DAY:天。'."\n" + .'- WEEK:周。'."\n" + .'- MONTH:月。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'DAY', + 'enum' => [ + 'MINUTE', + 'HOUR', + 'DAY', + 'WEEK', + 'MONTH', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'StatusCount' => [ + 'description' => '实例状态的数量统计。'."\n", + 'type' => 'object', + 'properties' => [ + 'FailureCount' => [ + 'description' => '运行失败的实例数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'WaitTimeCount' => [ + 'description' => '等待运行的实例数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'RunningCount' => [ + 'description' => '运行中的实例数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'SuccessCount' => [ + 'description' => '运行成功的实例数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TotalCount' => [ + 'description' => '实例的总数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'NotRunCount' => [ + 'description' => '未运行的实例数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'WaitResCount' => [ + 'description' => '等待资源的实例数量。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"StatusCount\\": {\\n \\"FailureCount\\": 1,\\n \\"WaitTimeCount\\": 1,\\n \\"RunningCount\\": 1,\\n \\"SuccessCount\\": 1,\\n \\"TotalCount\\": 1,\\n \\"NotRunCount\\": 1,\\n \\"WaitResCount\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\n \\n 1\\n 1\\n 1\\n 1\\n 1\\n 1\\n 1\\n \\n","errorExample":""}]', + 'title' => '获取实例运行状态统计数据', + 'summary' => '用GetInstanceStatusCount获取实例任务不同运行状态的数量统计。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListFileType' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。该参数与ProjectIdentifier参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间名称。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间名称。'."\n" + .'该参数与ProjectId参数,二者必须设置其一,用来确定本次API调用操作的DataWorks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求数据的页码数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的数据条数,最大值为100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '50', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点类型的名称。您可以登录DataWorks控制台,进入数据开发界面,在左侧导航栏查看某类型节点的名称。配置说明如下:'."\n" + .'- 支持查看中英文名称,但该参数查看的名称语言需要与Locale参数的语言类型一致。'."\n" + .'- 支持模糊搜索。'."\n" + .'- 如果不配置该参数,则会返回所有节点类型的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'ODPS SQL', + ], + ], + [ + 'name' => 'Locale', + 'in' => 'formData', + 'schema' => [ + 'description' => '选择查询的语言,支持查询zh-CN和en-US语言的节点类型信息。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'zh-CN', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'NodeTypeInfoList' => [ + 'description' => '返回的节点类型信息列表。'."\n", + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前数据页的页码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '当前数据页显示的数据条数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '50', + ], + 'TotalCount' => [ + 'description' => '满足查询条件的数据总条数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '127', + ], + 'NodeTypeInfo' => [ + 'description' => '单个节点类型的信息。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'NodeTypeName' => [ + 'description' => '节点类型的名称。'."\n" + .'常用的代码及名称类型对应关系如下:'."\n" + .'6(Shell)、10(ODPS SQL)、11(ODPS MR)、23(数据集成)、24(ODPS Script)、99(虚拟节点)、221(PyODPS 2)、225(ODPS Spark)、227(EMR Hive)、228(EMR Spark)、229(EMR Spark SQL)、230(EMR MR)、239(OSS对象检查)、257(EMR Shell)、258(EMR Spark Shell)、259(EMR Presto)、260(EMR Impala)、900(实时同步)、1089(跨租户节点)、1091(Hologres开发)、1093(Hologres SQL)、1100(赋值节点)、1221(PyODPS 3)。', + 'type' => 'string', + 'example' => 'ODPS SQL', + ], + 'NodeType' => [ + 'description' => '节点类型的Code信息。'."\n" + .'常用的代码及名称类型对应关系如下:'."\n" + .'6(Shell)、10(ODPS SQL)、11(ODPS MR)、23(数据集成)、24(ODPS Script)、99(虚拟节点)、221(PyODPS 2)、225(ODPS Spark)、227(EMR Hive)、228(EMR Spark)、229(EMR Spark SQL)、230(EMR MR)、239(OSS对象检查)、257(EMR Shell)、258(EMR Spark Shell)、259(EMR Presto)、260(EMR Impala)、900(实时同步)、1089(跨租户节点)、1091(Hologres开发)、1093(Hologres SQL)、1100(赋值节点)、1221(PyODPS 3)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"NodeTypeInfoList\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 50,\\n \\"TotalCount\\": 127,\\n \\"NodeTypeInfo\\": [\\n {\\n \\"NodeTypeName\\": \\"ODPS SQL\\",\\n \\"NodeType\\": 10\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\n \\n 1\\n 50\\n 127\\n \\n ODPS SQL\\n 10\\n \\n \\n","errorExample":""}]', + 'title' => '查询任务节点类型', + 'summary' => '查询任务节点的类型信息,包括类型Code和类型名称。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'RunManualDagNodes' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78347', + 'abilityTreeNodes' => [ + 'FEATUREdideD0YY7B', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度运维中心的环境标识。PROD表示生产环境,DEV表示开发环境。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'PROD or DEV', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '手动业务流程所属的工作空间英文名称。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test_workspace', + 'pattern' => '^([^\\x00-\\xff]|[\\w.,;/@\\n-])+$', + ], + ], + [ + 'name' => 'FlowName', + 'in' => 'formData', + 'schema' => [ + 'description' => '手动业务流程的名称。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test_workflow', + 'pattern' => '^([^\\x00-\\xff]|[\\w.,;/@\\n-])+$', + ], + ], + [ + 'name' => 'BizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期的值为小于等于当前日期-1天。例如,今天是2020年11月11日,则业务日期需要是2020年11月10日的00:00:00或者该日期之前的日期。业务日期的时分秒信息均填写00。'."\n" + .'StartBizDate与EndBizDate参数配合使用,当前参数与StartBizDate和EndBizDate参数只能配置一个。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '2020-11-11 00:00:00', + ], + ], + [ + 'name' => 'NodeParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '传递手动业务流程执行时的节点参数信息,对应手动业务流程里的节点**属性**配置的**调度参数**。'."\n" + ."\n" + .'一个JSON格式: { "<手动业务流程内部的某个节点ID>": "节点的调度参数信息,和数据开发调度配置里面的参数格式保持一致", "<手动业务流程内部的某个节点ID>": "节点的调度参数信息,和数据开发调度配置里面的参数格式保持一致" }', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '{"20000123121": "key1=val2 key2=val2", "20000123124": "kkkk=vvvvv aaaa=bbbb"}', + ], + ], + [ + 'name' => 'DagParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '该参数会同步至本次Dag的所有实例中。如果内部节点([支持的节点类型](~~147245~~))的调度参数引用了DagParameters中的业务流程参数,则节点的对应参数值会被替换为DagParameter中的业务流程参数。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '{"kaaaa": "vaaaaa", "kbbbb": "vbbbbb"}', + ], + ], + [ + 'name' => 'IncludeNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '如果需要运行手动业务流程里的部分节点,可输入相应节点ID。多个节点ID使用逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => '74324,74325', + ], + ], + [ + 'name' => 'ExcludeNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '如果不需要运行业务流程里的部分节点,可输入相应节点ID。此处输入的节点运行时会生成空跑实例,空跑实例被调度后会直接运行成功,不会执行脚本内容。多个节点ID使用逗号(,)分隔。'."\n" + .'ExcludeNodeIds参数需要与IncludeNodeIds参数同时使用,ExcludeNodeIds参数的配置才会生效。', + 'type' => 'string', + 'required' => false, + 'example' => '123,456', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '项目ID', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '123', + ], + ], + [ + 'name' => 'StartBizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '获取业务开始日期,格式为yyyy-MM-dd HH:mm:ss。'."\n" + .'StartBizDate与EndBizDate参数配合使用,并且当前参数与BizDate参数只能配置一个。', + 'type' => 'string', + 'required' => false, + 'example' => '2020-02-02 00:00:00', + ], + ], + [ + 'name' => 'EndBizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '获取业务结束日期,格式为yyyy-MM-dd HH:mm:ss。'."\n" + .'StartBizDate与EndBizDate参数配合使用,并且当前参数与BizDate参数只能配置一个。', + 'type' => 'string', + 'required' => false, + 'example' => '2020-02-03 00:00:00', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'DagId' => [ + 'description' => '手动业务流程运行Dag的实例ID。您可以通过接口和该DagId查询此次手动业务流程运行的内部节点实例的详细信息和状态。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '700000123123141', + ], + 'RequestId' => [ + 'description' => '请求唯一标识。'."\n", + 'type' => 'string', + 'example' => 'AASFDFSDFG-DFSDF-DFSDFD-SDFSDF', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"DagId\\": 700000123123141,\\n \\"RequestId\\": \\"AASFDFSDFG-DFSDF-DFSDFD-SDFSDF\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 700000123123141\\n AASFDFSDFG-DFSDF-DFSDFD-SDFSDF\\n","errorExample":""}]', + 'title' => '执行手动业务流程', + 'summary' => '手动业务流程必须已在环境界面提交发布,之后运维中心才会显示对应手动业务流程,您才可以使用该接口,触发手动业务流程运行。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListManualDagInstances' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '78316', + 'abilityTreeNodes' => [ + 'FEATUREdideVFMENL', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运维中心的调度环境标识,包括PROD(生产环境)和DEV(开发环境)。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'RPOD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '手动业务流程所属的工作空间名称。您可以进入[DataWorks控制台](https://workbench.data.aliyun.com/console),在工作空间配置页面获取。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test_workspace', + ], + ], + [ + 'name' => 'DagId', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发手动业务流程运行的Dag实例ID。您可以调用[RunManualDagNodes](~~212830~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '7000001231241', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => 'SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF', + ], + 'Instances' => [ + 'description' => '手动业务流程的内部实例列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '实例任务的状态,取值如下:'."\n" + ."\n" + .'- NOT_RUN(未运行)'."\n" + .'- WAIT_TIME(等待定时时间DueTime或CycleTime到来)'."\n" + .'- WAIT_RESOURCE(等待资源)'."\n" + .'- RUNNING(运行中)'."\n" + .'- CHECKING(下发给数据质量进行数据校检)'."\n" + .'- CHECKING_CONDITION(正在进行分支条件校检)'."\n" + .'- FAILURE(执行失败)'."\n" + .'- SUCCESS(执行成功)', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'BeginRunningTime' => [ + 'description' => ' 实例任务开始运行的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'BizDate' => [ + 'description' => '业务日期。通常为该任务运行时间的前一天。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'CycTime' => [ + 'description' => '实例任务的定时时间。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'FinishTime' => [ + 'description' => '实例任务运行的结束时间。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'CreateTime' => [ + 'description' => '实例任务的创建时间。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'DagId' => [ + 'description' => '手动业务流程实例的DagId。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '350850491', + ], + 'InstanceId' => [ + 'description' => '内部实例ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11726873619', + ], + 'BeginWaitResTime' => [ + 'description' => '实例任务开始等待资源的时间。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'TaskType' => [ + 'description' => '实例任务的调度类型,取值如下:'."\n" + ."\n" + .'- NORMAL(0):正常调度任务。该任务被日常调度。'."\n" + .'- MANUAL(1):手动任务。该任务不会被日常调度。'."\n" + .'- PAUSE(2):冻结任务。该任务被日常调度,但启动调度时直接被置为失败状态。'."\n" + .'- SKIP(3):空跑任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- SKIP_UNCHOOSE(4):临时工作流中未选择的任务,仅存在于临时工作流中,启动调度时直接被置为成功状态。'."\n" + .'- SKIP_CYCLE(5):未到运行周期的周或月任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- CONDITION_UNCHOOSE(6):上游实例中有分支(IF)节点,但是该下游节点未被分支节点选中,直接置为空跑任务。'."\n" + .'- REALTIME_DEPRECATED(7):实时生成的已经过期的周期实例,该类型的任务直接被置为成功状态。', + 'type' => 'string', + 'example' => 'MANUAL', + ], + 'ParamValues' => [ + 'description' => '实例的参数信息。'."\n", + 'type' => 'string', + 'example' => 'xxx=yyy', + ], + 'DagType' => [ + 'description' => '手动业务流程的标识。'."\n", + 'type' => 'string', + 'example' => '5', + ], + 'NodeName' => [ + 'description' => '节点的名称。'."\n", + 'type' => 'string', + 'example' => 'test2', + ], + 'BeginWaitTimeTime' => [ + 'description' => '实例任务开始等待调度的时间。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'NodeId' => [ + 'description' => '业务流程的内部节点ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '37851', + ], + 'ModifyTime' => [ + 'description' => '最近一次修改实例任务的时间。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'CreateUser' => [ + 'description' => '触发实例运行的用户。例如,用户Test触发运行手动执行的业务流程实例,则CreateUser为Test。', + 'type' => 'string', + 'example' => 'Test', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF\\",\\n \\"Instances\\": [\\n {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"BeginRunningTime\\": 1605178414676,\\n \\"BizDate\\": 1605178414676,\\n \\"CycTime\\": 1605178414676,\\n \\"FinishTime\\": 1605178414676,\\n \\"CreateTime\\": 1605178414676,\\n \\"DagId\\": 350850491,\\n \\"InstanceId\\": 11726873619,\\n \\"BeginWaitResTime\\": 1605178414676,\\n \\"TaskType\\": \\"MANUAL\\",\\n \\"ParamValues\\": \\"xxx=yyy\\",\\n \\"DagType\\": \\"5\\",\\n \\"NodeName\\": \\"test2\\",\\n \\"BeginWaitTimeTime\\": 1605178414676,\\n \\"NodeId\\": 37851,\\n \\"ModifyTime\\": 1605178414676,\\n \\"CreateUser\\": \\"Test\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF\\n \\n SUCCESS\\n 1605178414676\\n 1605178414676\\n 1605178414676\\n 1605178414676\\n 1605178414676\\n 350850491\\n 11726873619\\n 1605178414676\\n MANUAL\\n xxx=yyy\\n 5\\n test2\\n 1605178414676\\n 37851\\n 1605178414676\\n Test\\n \\n","errorExample":""}]', + 'title' => '获取手动执行的业务流程实例的信息', + 'summary' => '获取手动执行的业务流程实例的信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetDag' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78234', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'DagId', + 'in' => 'formData', + 'schema' => [ + 'description' => '根据DagId获取Dag详情。可通过如下方式获取DagId:'."\n" + .'- 调用[RunCycleDagNodes](~~2780209~~)接口,获取返回值**Data**。'."\n" + .'- 调用[RunSmokeTest](~~2780210~~)接口,获取返回值**Data**。'."\n" + .'- 调用[RunManualDagNodes](~~2780218~~)接口,获取返回值**DagId**。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '123141452344525', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度运维环境的标识:PROD表示生产环境,DEV表示开发环境。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '7782a299-b291-4fee-8424-cf8058efa8e8', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => 'Dag的详情信息。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => 'DAG的类型,包括MANUAL(手动任务工作流)、SMOKE_TEST(冒烟测试工作流)、SUPPLY_DATA(补数据)和BUSINESS_PROCESS_DAG(一次性业务流程工作流)。', + 'type' => 'string', + 'example' => 'MANUAL_FLOW', + ], + 'Status' => [ + 'description' => 'DAG的状态,包括CREATED(已创建)、RUNNING(运行中)、FAILURE(运行失败)和SUCCESS(运行成功)。'."\n" + .' ', + 'type' => 'string', + 'example' => 'FAILURE', + ], + 'FinishTime' => [ + 'description' => '结束时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'CreateTime' => [ + 'description' => '创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '112345', + ], + 'DagId' => [ + 'description' => 'DagId。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '351249682', + ], + 'Gmtdate' => [ + 'description' => 'Gmtdate。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'StartTime' => [ + 'description' => '开始时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'CreateUser' => [ + 'description' => '创建人。', + 'type' => 'string', + 'example' => '1736629400048545', + ], + 'Bizdate' => [ + 'description' => '业务日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'Name' => [ + 'description' => 'Dag的名称。', + 'type' => 'string', + 'example' => 'test_dag', + ], + 'ModifyTime' => [ + 'description' => '修改时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'OpSeq' => [ + 'description' => '操作的标识码。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"7782a299-b291-4fee-8424-cf8058efa8e8\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Type\\": \\"MANUAL_FLOW\\",\\n \\"Status\\": \\"FAILURE\\",\\n \\"FinishTime\\": 1605052800000,\\n \\"CreateTime\\": 1605052800000,\\n \\"ProjectId\\": 112345,\\n \\"DagId\\": 351249682,\\n \\"Gmtdate\\": 1605052800000,\\n \\"StartTime\\": 1605052800000,\\n \\"CreateUser\\": \\"1736629400048545\\",\\n \\"Bizdate\\": 1605052800000,\\n \\"Name\\": \\"test_dag\\",\\n \\"ModifyTime\\": 1605052800000,\\n \\"OpSeq\\": 123\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 7782a299-b291-4fee-8424-cf8058efa8e8\\n The connection does not exist.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n MANUAL_FLOW\\n FAILURE\\n 1605052800000\\n 1605052800000\\n 112345\\n 351249682\\n 1605052800000\\n 1605052800000\\n 1736629400048545\\n 1605052800000\\n test_dag\\n 1605052800000\\n 123\\n \\n","errorExample":""}]', + 'title' => '根据DagId获取Dag详情', + 'summary' => '支持查询手动业务流程、手动任务、补数据的Dag详情信息,不支持查询日常调度Dag详情。', + 'description' => 'Dag Type的类型:'."\n" + ."\n" + .'- MANUAL:手动任务工作流'."\n" + .' '."\n" + .'- SMOKE_TEST:冒烟测试工作流'."\n" + ."\n" + .'- SUPPLY_DATA:补数据'."\n" + ."\n" + .'- BUSINESS_PROCESS_DAG:一次性业务流程工作流'."\n" + ."\n" + .'Dag Status的类型:'."\n" + ."\n" + .'- CREATED:已创建'."\n" + .'- RUNNING:运行中'."\n" + .'- FAILURE:运行失败'."\n" + .'- SUCCESS:运行成功', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListDags' => [ + 'summary' => '根据OpSeq(补数据唯一标识)获取单次补数据的所有Dag详情。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '99773', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'OpSeq', + 'in' => 'formData', + 'schema' => [ + 'description' => '补数据唯一标识。您可通过调用[GetDag](~~189753~~)接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'minimum' => '2', + 'example' => '123', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度运维环境的标识:PROD表示生产环境,DEV表示开发环境。', + 'type' => 'string', + 'required' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '7782a299-b291-4fee-8424-cf8058efa8e8', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => 'Dag的详情信息。', + 'type' => 'object', + 'properties' => [ + 'Dags' => [ + 'description' => '返回的实体。', + 'type' => 'array', + 'items' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => 'DAG的类型。取值如下:'."\n" + .'- MANUAL(手动任务工作流)'."\n" + .'- SMOKE_TEST(冒烟测试工作流)'."\n" + .'- SUPPLY_DATA(补数据)'."\n" + .'- BUSINESS_PROCESS_DAG(一次性业务流程工作流)', + 'type' => 'string', + 'example' => 'MANUAL_FLOW', + ], + 'Status' => [ + 'description' => 'DAG的状态。取值如下:'."\n" + .'- CREATED(已创建)'."\n" + .'- RUNNING(运行中)'."\n" + .'- FAILURE(运行失败)'."\n" + .'- SUCCESS(运行成功)', + 'type' => 'string', + 'example' => 'FAILURE', + ], + 'FinishTime' => [ + 'description' => '结束时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'CreateTime' => [ + 'description' => '创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '112345', + ], + 'DagId' => [ + 'description' => 'DagId。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '351249682', + ], + 'Gmtdate' => [ + 'description' => 'Gmtdate。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'StartTime' => [ + 'description' => '开始时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'CreateUser' => [ + 'description' => '创建人。', + 'type' => 'string', + 'example' => '1736629400048545', + ], + 'Bizdate' => [ + 'description' => '业务日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'Name' => [ + 'description' => 'Dag的名称。', + 'type' => 'string', + 'example' => 'test_dag', + ], + 'ModifyTime' => [ + 'description' => '修改时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605052800000', + ], + 'OpSeq' => [ + 'description' => '操作的标识码。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"7782a299-b291-4fee-8424-cf8058efa8e8\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Dags\\": [\\n {\\n \\"Type\\": \\"MANUAL_FLOW\\",\\n \\"Status\\": \\"FAILURE\\",\\n \\"FinishTime\\": 1605052800000,\\n \\"CreateTime\\": 1605052800000,\\n \\"ProjectId\\": 112345,\\n \\"DagId\\": 351249682,\\n \\"Gmtdate\\": 1605052800000,\\n \\"StartTime\\": 1605052800000,\\n \\"CreateUser\\": \\"1736629400048545\\",\\n \\"Bizdate\\": 1605052800000,\\n \\"Name\\": \\"test_dag\\",\\n \\"ModifyTime\\": 1605052800000,\\n \\"OpSeq\\": 123\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 7782a299-b291-4fee-8424-cf8058efa8e8\\n The connection does not exist.\\n Invalid.Tenant.ConnectionNotExists\\n true\\n \\n \\n MANUAL_FLOW\\n FAILURE\\n 1605052800000\\n 1605052800000\\n 112345\\n 351249682\\n 1605052800000\\n 1605052800000\\n 1736629400048545\\n 1605052800000\\n test_dag\\n 1605052800000\\n 123\\n \\n \\n","errorExample":""}]', + 'title' => '获取单次补数据的所有Dag详情', + 'description' => 'Dag Type的类型:'."\n" + ."\n" + .'- MANUAL:手动任务工作流'."\n" + .'- SMOKE_TEST:冒烟测试工作流'."\n" + .'- SUPPLY_DATA:补数据'."\n" + .'- BUSINESS_PROCESS_DAG:一次性业务流程工作流'."\n" + ."\n" + .'Dag Status的类型:'."\n" + ."\n" + .'- CREATED:已创建'."\n" + .'- RUNNING:运行中'."\n" + .'- FAILURE:运行失败'."\n" + .'- SUCCESS:运行成功', + ], + 'ListNodesByOutput' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78322', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度运维中心的环境标识,PROD表示生产环境,DEV表示开发环境。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'Outputs', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的输出名称。支持配置多个输出名称,配置多个名称时请使用英文逗号(,)分隔。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'aaaaa.1231412_out,bbbb.12313123_out', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。'."\n", + 'type' => 'string', + 'example' => 'SDFSDFSDF-asdfDFSDF-SDFSDf-SDfSFD', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回的目标节点信息列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Output' => [ + 'description' => '当前节点的输出名称。', + 'type' => 'string', + 'example' => 'test_0709_1.630003556_out', + ], + 'NodeList' => [ + 'description' => 'input和output对应的节点信息列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'SchedulerType' => [ + 'description' => '节点任务的调度类型,取值如下:'."\n" + .'- NORMAL:正常调度任务。该任务被日常调度。'."\n" + .'- MANUAL:手动任务。该任务不会被日常调度。'."\n" + .'- PAUSE:冻结任务。该任务被日常调度,但启动调度时直接被置为失败状态。'."\n" + .'- SKIP:空跑任务。该任务被日常调度,但启动调度时直接被置为成功状态。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'RepeatInterval' => [ + 'description' => '节点运行出错后重新调度的频率。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '60', + ], + 'Repeatability' => [ + 'description' => '是否可以重复运行。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'FileType' => [ + 'description' => '文件类型。不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。', + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '33671', + ], + 'ProgramType' => [ + 'description' => '节点的类型。该参数已废弃,节点类型请参考FileType。'."\n", + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + 'Priority' => [ + 'description' => '节点运行的优先级,取值分为1、3、5、7和8。取值越大,优先级越高。默认优先级为1。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'OwnerId' => [ + 'description' => '负责人的ID。'."\n", + 'type' => 'string', + 'example' => '19337906836551', + ], + 'Connection' => [ + 'description' => '数据源名称。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'ParamValues' => [ + 'description' => '节点的调度参数。'."\n", + 'type' => 'string', + 'example' => 'a=b', + ], + 'RelatedFlowId' => [ + 'description' => '关联的业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1235655464', + ], + 'DqcType' => [ + 'description' => 'DQC类型,0表示有关联dqc,1表示没有关联dqc。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BaselineId' => [ + 'description' => '基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1235667', + ], + 'Description' => [ + 'description' => '节点的描述信息。'."\n", + 'type' => 'string', + 'example' => 'test', + ], + 'NodeName' => [ + 'description' => '节点的名称。'."\n", + 'type' => 'string', + 'example' => 'liux_test_n****', + ], + 'ResGroupName' => [ + 'description' => '资源组的名称。'."\n", + 'type' => 'string', + 'example' => 'Default Resource Group', + ], + 'DqcDescription' => [ + 'description' => 'DQC分区规则串。', + 'type' => 'string', + 'example' => '[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\\u003d$[yyyy-mm-dd-1]"}]', + ], + 'CronExpress' => [ + 'description' => 'cron表达式。'."\n", + 'type' => 'string', + 'example' => '00 00 00 * * ?', + ], + 'NodeId' => [ + 'description' => '节点的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '125677', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"SDFSDFSDF-asdfDFSDF-SDFSDf-SDfSFD\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Output\\": \\"test_0709_1.630003556_out\\",\\n \\"NodeList\\": [\\n {\\n \\"SchedulerType\\": \\"NORMAL\\",\\n \\"RepeatInterval\\": 60,\\n \\"Repeatability\\": true,\\n \\"FileType\\": \\"ODPS_SQL\\",\\n \\"ProjectId\\": 33671,\\n \\"ProgramType\\": \\"ODPS_SQL\\",\\n \\"Priority\\": 1,\\n \\"OwnerId\\": \\"19337906836551\\",\\n \\"Connection\\": \\"odps_source\\",\\n \\"ParamValues\\": \\"a=b\\",\\n \\"RelatedFlowId\\": 1235655464,\\n \\"DqcType\\": 1,\\n \\"BaselineId\\": 1235667,\\n \\"Description\\": \\"test\\",\\n \\"NodeName\\": \\"liux_test_n****\\",\\n \\"ResGroupName\\": \\"Default Resource Group\\",\\n \\"DqcDescription\\": \\"[{\\\\\\"projectName\\\\\\":\\\\\\"ztjy_dim\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"dim_user_agent_manage_area_a\\\\\\",\\\\\\"partition\\\\\\":\\\\\\"ds\\\\\\\\u003d$[yyyy-mm-dd-1]\\\\\\"}]\\",\\n \\"CronExpress\\": \\"00 00 00 * * ?\\",\\n \\"NodeId\\": 125677\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n SDFSDFSDF-asdfDFSDF-SDFSDf-SDfSFD\\n 200\\n \\n test_0709_1.630003556_out\\n \\n 1235667\\n 默认资源组\\n test\\n liux_test_n****\\n 1\\n 1\\n a=b\\n odps_source\\n 33671\\n 1235655464\\n NORMAL\\n 00 00 00 * * ?\\n true\\n 19337906836551\\n ODPS_SQL\\n [{\\"projectName\\":\\"ztjy_dim\\",\\"tableName\\":\\"dim_user_agent_manage_area_a\\",\\"partition\\":\\"ds\\\\u003d$[yyyy-mm-dd-1]\\"}]\\n 125677\\n ODPS_SQL\\n 60\\n \\n \\n Invalid.Tenant.ConnectionNotExists\\n The connection does not exist.\\n true\\n","errorExample":""}]', + 'title' => '根据节点的输出结果精确查询目标节点', + 'summary' => '根据节点的输出结果精确查询目标节点。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'RunTriggerNode' => [ + 'methods' => [ + 'post', + 'get', + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '78349', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + 'FEATUREdideVFMENL', + ], + ], + 'parameters' => [ + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发式节点的节点ID。您可参见[ListNodes](~~173979~~)获取节点ID信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '-9223372036854775808', + 'example' => '10000011', + ], + ], + [ + 'name' => 'CycleTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发式节点对应节点任务的13位的毫秒级定时时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '-9223372036854775808', + 'example' => '1606200230105', + ], + ], + [ + 'name' => 'BizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发式节点实例所在的业务日期时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '-9223372036854775808', + 'example' => '1606200230105', + ], + ], + [ + 'name' => 'AppId', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发式节点所属的DataWorks工作空间ID。工作空间ID可参见[ListProjects](~~178393~~)查询。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '-9223372036854775808', + 'example' => '10001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + ."\n" + .'- true:调用成功'."\n" + ."\n" + .'- false:调用失败', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '一次请求的唯一标识。', + 'type' => 'string', + 'example' => '9BA675F1-F848-4752-A6E3-92ABA0616005', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"9BA675F1-F848-4752-A6E3-92ABA0616005\\"\\n}","errorExample":""},{"type":"xml","example":"9BA675F1-F848-4752-A6E3-92ABA0616005\\ntrue","errorExample":""}]', + 'title' => '运行一个触发式节点', + 'summary' => '调用RunTriggerNode运行一个触发式节点。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetNodeParents' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78276', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + 'FEATUREdideVFMENL', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度运维中心的环境标识。PROD表示生产环境,DEV表示开发环境。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点ID。您可以进入管控台的运维中心界面,查看节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345456211234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => 'asfsdfas-adfasdf-asfas-dfasdf-asdf', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'err', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1060010000000', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回的节点信息列表。'."\n", + 'type' => 'object', + 'properties' => [ + 'Nodes' => [ + 'description' => '节点列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'SchedulerType' => [ + 'description' => '调度类型。取值如下:'."\n" + .'- NORMAL,正常调度任务。'."\n" + .'- MANUAL,手动任务,不会被日常调度。'."\n" + .'- PAUSE,暂停任务,被日常调度,但启动调度时直接被置为失败。'."\n" + .'- SKIP,空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'BaselineId' => [ + 'description' => '基线ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1244564565', + ], + 'Repeatability' => [ + 'description' => '节点任务运行失败是否可重跑。'."\n" + .'- true,重跑。'."\n" + .'- false,不重跑。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'NodeName' => [ + 'description' => '节点名称。'."\n", + 'type' => 'string', + 'example' => 'test_Node', + ], + 'ProjectId' => [ + 'description' => '节点所在项目空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12315412412', + ], + 'ProgramType' => [ + 'description' => '节点类型。', + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + 'Priority' => [ + 'description' => '优先级。取值为1~8,数值越大,优先级越高。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'OwnerId' => [ + 'description' => '节点Owner的DataWorks UID。'."\n", + 'type' => 'string', + 'example' => '123124561341251321', + ], + 'CronExpress' => [ + 'description' => '定时表达式。用于定时调度执行节点任务。'."\n", + 'type' => 'string', + 'example' => '00 00 * * * *', + ], + 'NodeId' => [ + 'description' => '节点ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1244564565', + ], + 'StepType' => [ + 'description' => '调度依赖类型。'."\n" + .'- **0**:同周期依赖'."\n" + .'- **3**:跨周期依赖', + 'type' => 'string', + 'example' => '0', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"asfsdfas-adfasdf-asfas-dfasdf-asdf\\",\\n \\"ErrorMessage\\": \\"err\\",\\n \\"ErrorCode\\": \\"1060010000000\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Nodes\\": [\\n {\\n \\"SchedulerType\\": \\"NORMAL\\",\\n \\"BaselineId\\": 1244564565,\\n \\"Repeatability\\": true,\\n \\"NodeName\\": \\"test_Node\\",\\n \\"ProjectId\\": 12315412412,\\n \\"ProgramType\\": \\"ODPS_SQL\\",\\n \\"Priority\\": 3,\\n \\"OwnerId\\": \\"123124561341251321\\",\\n \\"CronExpress\\": \\"00 00 * * * *\\",\\n \\"NodeId\\": 1244564565,\\n \\"StepType\\": \\"0\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n asdfasdfas-adfasdf-asfas-dfasdf-asdf\\n err\\n 1060010000000\\n true\\n \\n \\n NORMAL\\n 1244564565\\n true\\n test_Node\\n 12315412412\\n ODPS_SQL\\n 3\\n 123124561341251321\\n 00 00 * * * *\\n 1244564565\\n \\n \\n","errorExample":""}]', + 'title' => '获取节点上游列表', + 'summary' => '调用GetNodeParents获取节点上游列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetNodeChildren' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78273', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + 'FEATUREdideVFMENL', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度运维中心的环境标识。PROD表示生产环境,DEV表示开发环境。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点ID。您可以进入管控台的运维中心界面,查看节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '123456878', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => 'adsfasdf-adf-asdf-asdf-asdfadfasdd', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'err', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1060010000000', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回的节点信息列表。', + 'type' => 'object', + 'properties' => [ + 'Nodes' => [ + 'description' => '节点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'SchedulerType' => [ + 'description' => '调度类型。取值如下:'."\n" + .'- NORMAL,正常调度任务。'."\n" + .'- MANUAL,手动任务,不会被日常调度。'."\n" + .'- PAUSE,暂停任务,被日常调度,但启动调度时直接被置为失败。'."\n" + .'- SKIP,空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'BaselineId' => [ + 'description' => '基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345656', + ], + 'Repeatability' => [ + 'description' => '节点任务运行失败是否可重跑。'."\n" + .'- true,重跑。'."\n" + .'- false,不重跑。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'NodeName' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => 'test_Node', + ], + 'ProjectId' => [ + 'description' => '节点所在项目空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12315412412', + ], + 'ProgramType' => [ + 'description' => '节点类型。', + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + 'Priority' => [ + 'description' => '优先级。取值为1~8,数值越大,优先级越高。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'OwnerId' => [ + 'description' => '节点Owner的DataWorks UID。', + 'type' => 'string', + 'example' => '123124561341251321', + ], + 'CronExpress' => [ + 'description' => '定时表达式。用于定时调度执行节点任务。', + 'type' => 'string', + 'example' => '00 00 * * * * ', + ], + 'NodeId' => [ + 'description' => '节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1244564565', + ], + 'StepType' => [ + 'description' => '调度依赖类型。'."\n" + .'- **0**:同周期依赖'."\n" + .'- **3**:跨周期依赖', + 'type' => 'string', + 'example' => '0', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"adsfasdf-adf-asdf-asdf-asdfadfasdd\\",\\n \\"ErrorMessage\\": \\"err\\",\\n \\"ErrorCode\\": \\"1060010000000\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Nodes\\": [\\n {\\n \\"SchedulerType\\": \\"NORMAL\\",\\n \\"BaselineId\\": 12345656,\\n \\"Repeatability\\": true,\\n \\"NodeName\\": \\"test_Node\\",\\n \\"ProjectId\\": 12315412412,\\n \\"ProgramType\\": \\"ODPS_SQL\\",\\n \\"Priority\\": 3,\\n \\"OwnerId\\": \\"123124561341251321\\",\\n \\"CronExpress\\": \\"00 00 * * * * \\",\\n \\"NodeId\\": 1244564565,\\n \\"StepType\\": \\"0\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n adsfasdf-adf-asdf-asdf-asdfadfasdd\\n err\\n 1060010000000\\n true\\n \\n \\n NORMAL\\n 12345656\\n true\\n test_Node\\n 12315412412\\n ODPS_SQL\\n 3\\n 123124561341251321\\n 00 00 * * * * \\n 1244564565\\n \\n \\n","errorExample":""}]', + 'title' => '获取节点下游列表', + 'summary' => '调用GetNodeChildren获取节点下游列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateNodeRunMode' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78378', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括开发环境(DEV)和生产环境(PRD)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID,您可以调用[ListNodes](~~173979~~)接口获取节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'SchedulerType', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要对目标节点执行的操作。取值如下:'."\n" + .'- 0:表示解冻目标节点。'."\n" + .'- 2:表示冻结目标节点。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '0', + 'enum' => [ + '0', + '2', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '返回值。取值如下:'."\n" + .'- true:表示调用成功。'."\n" + .'- false:表示调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E6F0DBDD-5AD****\\n","errorExample":""}]', + 'title' => '冻结或解冻目标节点', + 'summary' => '调用UpdateNodeRunMode冻结或解冻目标节点。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateNodeOwner' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78377', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括开发环境(DEV)和生产环境(PRD)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID,您可以调用[ListNodes](~~173979~~)接口获取节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点负责人的阿里云账号ID。您可以登录DataWorks控制台,鼠标悬停至顶部菜单栏右侧的用户头像,查看账号ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '19337906836551', + 'maxLength' => 64, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '返回值。取值如下:'."\n" + .'- true:表示调用成功。'."\n" + .'- false:表示调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E6F0DBDD-5AD****\\n","errorExample":""}]', + 'title' => '修改目标节点负责人', + 'summary' => '修改目标节点的负责人。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateWorkbenchEventResult' => [ + 'summary' => '所属扩展程序的运维中心回调API,当运维中心的流程被扩展程序卡住后,调用UpdateWorkbenchEventResult返回扩展程序的处理结果。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '103198', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'MessageId', + 'in' => 'query', + 'schema' => [ + 'description' => '订阅OpenEvent后接收到扩展事件的messageId', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '03400b03-b721-4c34-8727-2****1', + ], + ], + [ + 'name' => 'ExtensionCode', + 'in' => 'query', + 'schema' => [ + 'description' => '扩展程序的编码', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '58e95e2acd6f408e8707f1bf2591f9e9', + ], + ], + [ + 'name' => 'CheckResult', + 'in' => 'query', + 'schema' => [ + 'description' => '回调结果,OK代表检查成功,FAIL代表检查失败', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'FAIL', + 'enum' => [ + 'OK', + 'FAIL', + 'WARN', + ], + ], + ], + [ + 'name' => 'CheckResultTip', + 'in' => 'query', + 'schema' => [ + 'description' => '检查失败的原因', + 'type' => 'string', + 'required' => false, + 'example' => 'SQL is too long', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '0bc1ec92159376****', + ], + 'Success' => [ + 'title' => '成功标识', + 'description' => '成功标识', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0bc1ec92159376****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 0bc1ec92159376****\\n true\\n","errorExample":""}]', + 'title' => '更新扩展程序的处理结果', + ], + 'ListShiftPersonnels' => [ + 'summary' => '获取值班表的值班人员列表。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '140337', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ShiftScheduleIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => '值班表唯一标识。', + 'type' => 'string', + 'required' => true, + 'example' => '2ab6456ada634b2f938ee******9b45b', + ], + ], + [ + 'name' => 'UserType', + 'in' => 'formData', + 'schema' => [ + 'description' => '值班人查询条件:ALL(全部值班人)、PRIMARY(主值班人)、BACKUP(备值班人)、DESIGNATED_USER(指定人)', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'ALL', + 'default' => 'ALL', + 'enum' => [ + 'ALL', + 'PRIMARY', + 'BACKUP', + 'DESIGNATED_USER', + ], + ], + ], + [ + 'name' => 'ShiftPersonUID', + 'in' => 'formData', + 'schema' => [ + 'description' => '阿里云账号ID。您可以登录DataWorks控制台,鼠标悬停至顶部菜单栏右侧的用户头像,查看账号ID。', + 'type' => 'string', + 'required' => false, + 'example' => '1933790****551', + ], + ], + [ + 'name' => 'BeginTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '值班人开始时间,时间戳', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1593950832000', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '值班人结束时间,时间戳', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1593950832000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'API返回结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG', + ], + 'Paging' => [ + 'description' => '分页结果', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码数,用于翻页。最小值为1,最大值为100,默认为1。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '满足条件的数据总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'ShiftPersons' => [ + 'description' => '值班人列表', + 'type' => 'array', + 'items' => [ + 'description' => '值班人', + 'type' => 'object', + 'properties' => [ + 'ShiftPersonUID' => [ + 'description' => '值班人UID', + 'type' => 'string', + 'example' => '3726346****', + ], + 'ShiftPersonName' => [ + 'description' => '值班人名称', + 'type' => 'string', + 'example' => 'Zhang San', + ], + 'BeginTime' => [ + 'description' => '值班周期开始时间', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593950832000', + ], + 'EndTime' => [ + 'description' => '值班周期结束时间', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593950832000', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG\\",\\n \\"Paging\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"ShiftPersons\\": [\\n {\\n \\"ShiftPersonUID\\": \\"3726346****\\",\\n \\"ShiftPersonName\\": \\"Zhang San\\",\\n \\"BeginTime\\": 1593950832000,\\n \\"EndTime\\": 1593950832000\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG\\n \\n 1\\n 10\\n 100\\n \\n 3726346****\\n 张三\\n 1593950832000\\n 1593950832000\\n \\n \\n","errorExample":""}]', + 'title' => '获取值班表的值班人员列表', + ], + 'ListShiftSchedules' => [ + 'summary' => '获取运维中心值班表列表。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '140315', + 'abilityTreeNodes' => [ + 'FEATUREdideRJGWWC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ShiftScheduleName', + 'in' => 'formData', + 'schema' => [ + 'description' => '根据关键字模糊查询', + 'type' => 'string', + 'required' => false, + 'example' => 'Duty table name keyword', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '阿里云账号ID。您可以登录DataWorks控制台,鼠标悬停至顶部菜单栏右侧的用户头像,查看账号ID。', + 'type' => 'string', + 'required' => false, + 'example' => '1933790683*****', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '10', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码数,用于翻页。最小值为1,最大值为100,默认为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'API返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'Paging' => [ + 'description' => '分页详情。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码数,用于翻页。最小值为1,最大值为100。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '数据量总数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'ShiftSchedules' => [ + 'description' => '值班表列表数据', + 'type' => 'array', + 'items' => [ + 'description' => '值班表', + 'type' => 'object', + 'properties' => [ + 'ShiftScheduleIdentifier' => [ + 'description' => '值班表唯一标识,可用来查询值班表值班人员列表', + 'type' => 'string', + 'example' => '2ab6456ada634b2f938ee******9b45b', + ], + 'ShiftScheduleName' => [ + 'description' => '值班表的名称。', + 'type' => 'string', + 'example' => 'Duty table name', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"Paging\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"ShiftSchedules\\": [\\n {\\n \\"ShiftScheduleIdentifier\\": \\"2ab6456ada634b2f938ee******9b45b\\",\\n \\"ShiftScheduleName\\": \\"Duty table name\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E6F0DBDD-5AD****\\n \\n 1\\n 10\\n 100\\n \\n 2ab6456ada634b2f938ee******9b45b\\n 值班表名称\\n \\n \\n","errorExample":""}]', + 'title' => '获取运维中心值班表列表', + ], + 'ListInstanceHistory' => [ + 'summary' => '调用ListInstanceHistory,获取所有实例历史记录,任务重跑一次就会生成一条历史记录。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '146270', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的ID。您可以调用ListInstances获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD(生产环境)和DEV(开发环境),默认获取PROD(生产环境)的实例数据。', + 'type' => 'string', + 'required' => false, + 'example' => 'PROD', + 'default' => 'PROD', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Instances' => [ + 'description' => '实例列表', + 'type' => 'array', + 'items' => [ + 'description' => '实例详情', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '任务的状态,取值如下:'."\n" + ."\n" + .'- NOT_RUN(未运行)'."\n" + .'- WAIT_TIME(等待定时时间DueTime或CycTime到来)'."\n" + .'- WAIT_RESOURCE(等待资源)'."\n" + .'- RUNNING(运行中)'."\n" + .'- CHECKING(下发给数据质量进行数据校检)'."\n" + .'- CHECKING_CONDITION(正在进行分支条件校检)'."\n" + .'- FAILURE(执行失败)'."\n" + .'- SUCCESS(执行成功)', + 'type' => 'string', + 'example' => 'NOT_RUN', + ], + 'CycTime' => [ + 'description' => '调度任务的运行时间,返回时间戳格式。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590422400000', + ], + 'BeginRunningTime' => [ + 'description' => '实例开始运行的时间,返回时间戳格式。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'FinishTime' => [ + 'description' => '调度任务的结束时间,返回时间戳格式。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'ErrorMessage' => [ + 'description' => '实例运行的报错信息。该字段已废弃,您可以调用GetInstanceLog接口获取执行任务的相关报错信息。', + 'type' => 'string', + 'example' => 'error message', + ], + 'CreateTime' => [ + 'description' => '实例的创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'DagId' => [ + 'description' => '工作流的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '33845', + ], + 'TaskType' => [ + 'description' => '任务实例的调度类型,取值如下:'."\n" + ."\n" + .'- NORMAL(0):正常调度任务。该任务被日常调度。'."\n" + .'- MANUAL(1):手动任务。该任务不会被日常调度。'."\n" + .'- PAUSE(2):冻结任务。该任务被日常调度,但启动调度时直接被置为失败状态。'."\n" + .'- SKIP(3):空跑任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- SKIP_UNCHOOSE(4):临时工作流中未选择的任务,仅存在于临时工作流中,启动调度时直接被置为成功状态。'."\n" + .'- SKIP_CYCLE(5):未到运行周期的周或月任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- CONDITION_UNCHOOSE(6):上游实例中有分支(IF)节点,但是该下游节点未被分支节点选中,直接置为空跑任务。'."\n" + .'- REALTIME_DEPRECATED(7):实时生成的已经过期的周期实例,该类型的任务直接被置为成功状态。', + 'type' => 'string', + 'example' => 'NORMAL(0)', + ], + 'DagType' => [ + 'description' => 'DQC类型,取值如下:'."\n" + ."\n" + .'- 0表示有关联dqc。'."\n" + .'- 1表示没有关联dqc。', + 'type' => 'string', + 'example' => '1', + ], + 'ModifyTime' => [ + 'description' => '调度任务的最新修改时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'InstanceId' => [ + 'description' => '实例的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'BeginWaitResTime' => [ + 'description' => '实例任务开始等待资源的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'Bizdate' => [ + 'description' => '执行调度任务的日期。通常为该任务运行时间的前一天。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590336000000', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'kzh', + ], + 'BeginWaitTimeTime' => [ + 'description' => '实例任务开始等待调度的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1590416703313', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '33115', + ], + 'InstanceHistoryId' => [ + 'description' => '实例的历史档案编号。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"Success\\": true,\\n \\"Instances\\": [\\n {\\n \\"Status\\": \\"NOT_RUN\\",\\n \\"CycTime\\": 1590422400000,\\n \\"BeginRunningTime\\": 1590416703313,\\n \\"FinishTime\\": 1590416703313,\\n \\"ErrorMessage\\": \\"error message\\",\\n \\"CreateTime\\": 1590416703313,\\n \\"DagId\\": 33845,\\n \\"TaskType\\": \\"NORMAL(0)\\",\\n \\"DagType\\": \\"1\\",\\n \\"ModifyTime\\": 1590416703313,\\n \\"InstanceId\\": 1234,\\n \\"BeginWaitResTime\\": 1590416703313,\\n \\"Bizdate\\": 1590336000000,\\n \\"NodeName\\": \\"kzh\\",\\n \\"BeginWaitTimeTime\\": 1590416703313,\\n \\"NodeId\\": 33115,\\n \\"InstanceHistoryId\\": 1\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n E6F0DBDD-5AD****\\n true\\n \\n NOT_RUN\\n 1590422400000\\n 1590416703313\\n 1590416703313\\n error message\\n 1590416703313\\n 33845\\n NORMAL(0)\\n 1\\n 1590416703313\\n 1234\\n 1590416703313\\n 1590336000000\\n kzh\\n 1590416703313\\n 33115\\n 1\\n \\n","errorExample":""}]', + 'title' => '获取所有实例历史记录', + ], + 'ListInnerNodes' => [ + 'summary' => '调用ListInnerNodes获取内部节点详情,例如查询组合节点、循环节点等节点类型的内部节点,不支持PAI节点的内部节点查询。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '146118', + 'abilityTreeNodes' => [ + 'FEATUREdide7WF1GB', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProgramType', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的代码类型。'."\n" + ."\n" + .'常用的代码及其对应的文件类型包括6(Shell)、10(ODPS SQL)、11(ODPS MR)、23(数据集成)、24(ODPS Script)、97(PAI)、98(组合节点)、99(虚拟节点)、221(PyODPS 2)、225(ODPS Spark)、227(EMR Hive)、228(EMR Spark)、229(EMR Spark SQL)、230(EMR MR)、239(OSS对象检查)、257(EMR Shell)、258(EMR Spark Shell)、259(EMR Presto)、260(EMR Impala)、900(实时同步)、1002(PAI内部节点)、1089(跨租户节点)、1091(Hologres开发)、1093(Hologres SQL)、1100(赋值节点)、1106(遍历节点(foreach))、1221(PyODPS 3),您可以调用ListNodes查看节点类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'ODPS_SQL', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码数。最小值1,最大值100', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '10', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括DEV和PROD,默认PROD。', + 'type' => 'string', + 'required' => false, + 'example' => 'PROD', + 'default' => 'PROD', + ], + ], + [ + 'name' => 'NodeName', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'liux_test_n****', + ], + ], + [ + 'name' => 'OuterNodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '内部节点所属的组合节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Paging' => [ + 'description' => '分页信息', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '符合条件的节点总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Nodes' => [ + 'description' => '内部节点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '节点详情。', + 'type' => 'object', + 'properties' => [ + 'SchedulerType' => [ + 'description' => '调度的类型,取值如下:'."\n" + ."\n" + .'- NORMAL:正常调度任务。'."\n" + .'- MANUAL:手动任务,不会被日常调度。'."\n" + .'- PAUSE:暂停任务。'."\n" + .'- SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。', + 'type' => 'string', + 'example' => 'NORMAL', + ], + 'RepeatInterval' => [ + 'description' => '出错后重新调度频率。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '60', + ], + 'Repeatability' => [ + 'description' => '是否可以重复运行。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'ProgramType' => [ + 'description' => '节点的类型。', + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + 'Priority' => [ + 'description' => '优先级,1/3/5/7/8', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'OwnerId' => [ + 'description' => '负责人的ID。', + 'type' => 'string', + 'example' => '1933****36551', + ], + 'Connection' => [ + 'description' => '连接串。', + 'type' => 'string', + 'example' => 'odps_source', + ], + 'ParamValues' => [ + 'description' => '额外的参数。', + 'type' => 'string', + 'example' => 'a=b', + ], + 'DqcType' => [ + 'description' => 'DQC类型,0表示有关联dqc,1表示没有关联dqc。', + 'type' => 'string', + 'example' => '1', + ], + 'BaselineId' => [ + 'description' => '基线ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'Description' => [ + 'description' => '节点的描述信息。', + 'type' => 'string', + 'example' => 'test', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => 'liux_test_n****', + ], + 'ResGroupName' => [ + 'description' => '资源组的名称。', + 'type' => 'string', + 'example' => 'Default Resource Group', + ], + 'BusinessId' => [ + 'description' => '业务流程ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'DqcDescription' => [ + 'description' => 'DQC分区规则串。', + 'type' => 'string', + 'example' => '[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\\u003d$[yyyy-mm-dd-1]"}]', + ], + 'CronExpress' => [ + 'description' => 'cron表达式。', + 'type' => 'string', + 'example' => '00 00 00 * * ?', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"Success\\": true,\\n \\"Paging\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Nodes\\": [\\n {\\n \\"SchedulerType\\": \\"NORMAL\\",\\n \\"RepeatInterval\\": 60,\\n \\"Repeatability\\": true,\\n \\"ProjectId\\": 123,\\n \\"ProgramType\\": \\"ODPS_SQL\\",\\n \\"Priority\\": 1,\\n \\"OwnerId\\": \\"1933****36551\\",\\n \\"Connection\\": \\"odps_source\\",\\n \\"ParamValues\\": \\"a=b\\",\\n \\"DqcType\\": \\"1\\",\\n \\"BaselineId\\": 1234,\\n \\"Description\\": \\"test\\",\\n \\"NodeName\\": \\"liux_test_n****\\",\\n \\"ResGroupName\\": \\"Default Resource Group\\",\\n \\"BusinessId\\": 123,\\n \\"DqcDescription\\": \\"[{\\\\\\"projectName\\\\\\":\\\\\\"ztjy_dim\\\\\\",\\\\\\"tableName\\\\\\":\\\\\\"dim_user_agent_manage_area_a\\\\\\",\\\\\\"partition\\\\\\":\\\\\\"ds\\\\\\\\u003d$[yyyy-mm-dd-1]\\\\\\"}]\\",\\n \\"CronExpress\\": \\"00 00 00 * * ?\\",\\n \\"NodeId\\": 12\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E6F0DBDD-5AD****\\n true\\n \\n 1\\n 10\\n 100\\n \\n NORMAL\\n 60\\n true\\n 123\\n ODPS_SQL\\n 1\\n 19337906836551\\n odps_source\\n a=b\\n 1\\n 1234\\n test\\n liux_test_n****\\n 默认资源组\\n 123\\n [{\\"projectName\\":\\"ztjy_dim\\",\\"tableName\\":\\"dim_user_agent_manage_area_a\\",\\"partition\\":\\"ds\\\\u003d$[yyyy-mm-dd-1]\\"}]\\n 00 00 00 * * ?\\n 12\\n \\n \\n","errorExample":""}]', + 'title' => '获取内部节点列表', + ], + 'OfflineNode' => [ + 'summary' => '调用OfflineNode下线节点。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID。您可以调用[ListNodes](~~173979~~)接口查看NodeId的相关信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间ID。您可以通过[ListProjects](~~178393~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '9527', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'string', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"Success\\": \\"true\\"\\n}","errorExample":""},{"type":"xml","example":"\\n E6F0DBDD-5AD****\\n true\\n","errorExample":""}]', + 'title' => '下线节点', + ], + 'GetBaseline' => [ + 'summary' => '根据基线ID获取基线配置。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '158223', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的ID,可以通过 [ListBaselines](~~2261507~~) 获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '123456', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线所监控的项目空间ID,可从 [ListBaselines](~~2261507~~) 获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功,true - 成功,false - 失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回值。', + 'type' => 'object', + 'properties' => [ + 'BaselineId' => [ + 'title' => '基线id', + 'description' => '基线的id。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1001', + ], + 'BaselineName' => [ + 'title' => '基线名', + 'description' => '基线名。', + 'type' => 'string', + 'example' => 'Test baseline', + ], + 'ProjectId' => [ + 'title' => '项目id', + 'description' => '项目id。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'Owner' => [ + 'title' => '责任人', + 'description' => '责任人。', + 'type' => 'string', + 'example' => '9527952****', + ], + 'Priority' => [ + 'title' => '优先级', + 'description' => '基线的优先级,取值集合为{1,3,5,7,8}。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BaselineType' => [ + 'title' => '基线类型 (DAILY, HOURLY)', + 'description' => '基线类型。'."\n" + ."\n" + .'- DAILY - 日基线'."\n" + .'- HOURLY - 小时基线', + 'type' => 'string', + 'example' => 'DAILY', + ], + 'OverTimeSettings' => [ + 'title' => '基线承诺时间设置', + 'description' => '基线承诺时间设置。', + 'type' => 'array', + 'items' => [ + 'description' => '监控周期。', + 'type' => 'object', + 'properties' => [ + 'Cycle' => [ + 'title' => '周期,取值范围 [1,24]', + 'description' => '承诺时间对应的周期,天基线是1,小时基线可以配置最多24个周期。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Time' => [ + 'title' => '承诺时间,hh:mm格式,hh的取值范围为[0,47],mm的取值范围为[0,59]', + 'description' => '承诺时间,hh:mm格式,hh的取值范围为[0,47],mm的取值范围为[0,59]。', + 'type' => 'string', + 'example' => '00:00', + ], + ], + ], + ], + 'Enabled' => [ + 'title' => '是否开启基线', + 'description' => '是否开启基线。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'NodeIds' => [ + 'title' => '基线节点列表', + 'description' => '基线上游节点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '700003****', + ], + ], + 'AlertEnabled' => [ + 'title' => '是否开启告警', + 'description' => '是否开启告警。'."\n" + ."\n" + .'- true - 是'."\n" + .'- false - 否', + 'type' => 'boolean', + 'example' => 'true', + ], + 'AlertMarginThreshold' => [ + 'title' => '预警余量,单位为分钟', + 'description' => '预警余量,单位为分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '60', + ], + 'AlertSettings' => [ + 'title' => '告警设置', + 'description' => '告警设置。', + 'type' => 'array', + 'items' => [ + 'description' => '基线的告警配置。', + 'type' => 'object', + 'properties' => [ + 'AlertType' => [ + 'title' => '告警类型,BASELINE / TOPIC', + 'description' => '告警类型'."\n" + .'- BASELINE - 基线'."\n" + .'- TOPIC - 事件'."\n", + 'type' => 'string', + 'example' => 'BASELINE', + ], + 'AlertMethods' => [ + 'title' => '告警方式', + 'description' => '告警方式列表', + 'type' => 'array', + 'items' => [ + 'description' => '告警方式。取值如下:'."\n" + .'- MAIL - 邮件'."\n" + .'- SMS - 短信'."\n" + .'- PHONE - 语音 '."\n" + .'- DINGROBOTS - 钉钉机器人'."\n" + .'- WEBHOOKS - Webhook', + 'type' => 'string', + 'example' => 'MAIL', + ], + ], + 'SilenceStartTime' => [ + 'title' => '静默开始时间', + 'description' => '静默开始时间,格式为 HH:mm:ss 。', + 'type' => 'string', + 'example' => '00:00:00', + ], + 'SilenceEndTime' => [ + 'title' => '静默结束时间', + 'description' => '静默结束时间,格式为 HH:mm:ss 。', + 'type' => 'string', + 'example' => '00:00:00', + ], + 'AlertInterval' => [ + 'title' => '事件告警间隔', + 'description' => '事件告警间隔,单位为秒。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '900', + ], + 'AlertMaximum' => [ + 'title' => '事件告警最大次数', + 'description' => '事件告警最大次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'DingRobots' => [ + 'title' => '钉钉机器人列表', + 'description' => '钉钉机器人列表。', + 'type' => 'array', + 'items' => [ + 'description' => '钉钉机器人配置。', + 'type' => 'object', + 'properties' => [ + 'WebUrl' => [ + 'description' => '钉钉机器人地址。', + 'type' => 'string', + 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=xxx', + ], + 'AtAll' => [ + 'description' => '是否 @所有人。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'Webhooks' => [ + 'title' => 'webhook 列表', + 'description' => 'webhook 列表。', + 'type' => 'array', + 'items' => [ + 'description' => '企业微信或飞书机器人的webhook地址,多个webhook地址之间使用英文逗号(,)分隔。alertMethods 中需要包含 WEBHOOKS 告警方式。仅DataWorks企业版支持。'."\n" + ."\n" + .'可用地域:华东2(上海)、西南1(成都)、华北3(张家口)、华北2(北京)、华东1(杭州)、华南1(深圳)、中国(香港)、欧洲中部 1(法兰克福)、亚太东南1(新加坡)。', + 'type' => 'string', + 'example' => 'https://open.feishu.cn/open-apis/bot/v2/hook/xxx', + ], + ], + 'TopicTypes' => [ + 'title' => '事件告警类型,事件特有配置', + 'description' => '事件告警类型列表,事件特有配置。', + 'type' => 'array', + 'items' => [ + 'description' => '事件告警类型。'."\n" + ."\n" + .'- SLOW - 变慢'."\n" + .'- ERROR - 出错', + 'type' => 'string', + 'example' => 'SLOW', + ], + ], + 'BaselineAlertEnabled' => [ + 'title' => '基线告警开关,基线特有配置', + 'description' => '基线告警开关,基线特有配置。'."\n" + ."\n" + .'- true - 开启'."\n" + .'- false - 关闭', + 'type' => 'boolean', + 'example' => 'false', + ], + 'AlertRecipientType' => [ + 'title' => '告警接收人类型', + 'description' => '告警接收人类型。'."\n" + ."\n" + .'- OWNER - 任务责任人'."\n" + .'- OTHER - 指定的人'."\n" + .'- SHIFT_SCHEDULE - 值班表 ', + 'type' => 'string', + 'example' => 'OWNER', + ], + 'AlertRecipient' => [ + 'title' => '告警接收人详情', + 'description' => '告警接收人详情。'."\n" + ."\n" + .'- AlertRecipientType 为 OWNER:空'."\n" + .'- AlertRecipientType 为 SHIFT_SCHEDULE:值班表uid'."\n" + .'- AlertRecipientType 为 OTHER: uid列表,多个uid使用英文 , 分割', + 'type' => 'string', + 'example' => '123123', + ], + ], + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'ecb967ec-c137-48a5-860****', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"BaselineId\\": 1001,\\n \\"BaselineName\\": \\"Test baseline\\",\\n \\"ProjectId\\": 10000,\\n \\"Owner\\": \\"9527952****\\",\\n \\"Priority\\": 1,\\n \\"BaselineType\\": \\"DAILY\\",\\n \\"OverTimeSettings\\": [\\n {\\n \\"Cycle\\": 1,\\n \\"Time\\": \\"00:00\\"\\n }\\n ],\\n \\"Enabled\\": true,\\n \\"NodeIds\\": [\\n 0\\n ],\\n \\"AlertEnabled\\": true,\\n \\"AlertMarginThreshold\\": 60,\\n \\"AlertSettings\\": [\\n {\\n \\"AlertType\\": \\"BASELINE\\",\\n \\"AlertMethods\\": [\\n \\"MAIL\\"\\n ],\\n \\"SilenceStartTime\\": \\"00:00:00\\",\\n \\"SilenceEndTime\\": \\"00:00:00\\",\\n \\"AlertInterval\\": 900,\\n \\"AlertMaximum\\": 1,\\n \\"DingRobots\\": [\\n {\\n \\"WebUrl\\": \\"https://oapi.dingtalk.com/robot/send?access_token=xxx\\",\\n \\"AtAll\\": true\\n }\\n ],\\n \\"Webhooks\\": [\\n \\"https://open.feishu.cn/open-apis/bot/v2/hook/xxx\\"\\n ],\\n \\"TopicTypes\\": [\\n \\"SLOW\\"\\n ],\\n \\"BaselineAlertEnabled\\": false,\\n \\"AlertRecipientType\\": \\"OWNER\\",\\n \\"AlertRecipient\\": \\"123123\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"ecb967ec-c137-48a5-860****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1031203110005\\n The specified parameters are invalid\\n 200\\n \\n 1001\\n 测试基线\\n 10000\\n 9527952****\\n 1\\n DAILY\\n \\n 1\\n \\n \\n true\\n 123123\\n true\\n 60\\n \\n BASELINE\\n MAIL\\n 00:00:00\\n 00:00:00\\n 900\\n 1\\n \\n https://oapi.dingtalk.com/robot/send?access_token=xxx\\n true\\n \\n https://open.feishu.cn/open-apis/bot/v2/hook/xxx\\n SLOW\\n false\\n OWNER\\n 123123\\n \\n \\n ecb967ec-c137-48a5-860****\\n","errorExample":""}]', + 'title' => '获取基线配置', + ], + 'DeleteBaseline' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '158727', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线Id', + 'description' => '基线的ID,可以通过 [ListBaselines](~~2261507~~) 获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'title' => '项目空间ID', + 'description' => '基线所监控的项目空间ID,可从 ListBaselines 获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + ."\n" + .'- true:调用成功'."\n" + ."\n" + .'- false:调用失败', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110000', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Baseline deletion failed with nodes dependent on baseline', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否成功删除。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110000\\",\\n \\"ErrorMessage\\": \\"Baseline deletion failed with nodes dependent on baseline\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0000-ABCD-EF****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1031203110000\\n Baseline deletion failed with nodes dependent on baseline\\n 200\\n true\\n 0000-ABCD-EF****\\n","errorExample":""}]', + 'title' => '删除基线配置', + 'summary' => '根据基线ID删除基线配置,只有基线上游没有任何节点的情况下才允许删除。可通过调用UpdateBaseline接口修改基线上游节点。', + ], + 'ListBaselines' => [ + 'summary' => '该接口用于获取基线列表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '158237', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'title' => '责任人', + 'description' => '责任人', + 'type' => 'string', + 'required' => false, + 'example' => '3726346****', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'title' => '项目空间id', + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '123456', + ], + ], + [ + 'name' => 'Priority', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的优先级,取值范围为{1,3,5,7,8}。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'Enable', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否开启基线', + 'description' => '是否开启基线,包括true(可用)和false(不可用)。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'BaselineTypes', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线类型', + 'description' => '基线的类型,包括DAILY(天基线)和HOURLY(小时基线)。多个类型之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'DAILY', + ], + ], + [ + 'name' => 'SearchText', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线名模糊查询', + 'description' => '基线名称的搜索关键字。', + 'type' => 'string', + 'required' => false, + 'example' => 'baselineName', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页查询页码。大于等于1的正整数,默认为1,最大为30。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '103630001', + ], + 'ErrorMessage' => [ + 'description' => '调用失败时,返回的错误信息。', + 'type' => 'string', + 'example' => 'The user does not exist. 276571706358178756', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回的基线列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前的页数。', + 'type' => 'string', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页的大小。', + 'type' => 'string', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '基线的总数。', + 'type' => 'string', + 'example' => '100', + ], + 'Baselines' => [ + 'description' => '基线列表。', + 'type' => 'array', + 'items' => [ + 'description' => '基线配置。', + 'type' => 'object', + 'properties' => [ + 'BaselineId' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ProjectId' => [ + 'description' => '基线所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + 'BaselineType' => [ + 'description' => '基线类型,包括DAILY(天基线)和HOURLY(小时基线)。 '."\n", + 'type' => 'string', + 'example' => 'DAILY', + ], + 'Priority' => [ + 'description' => '基线的优先级,取值范围为{1,2,5,7,8}。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Owner' => [ + 'description' => '基线责任人的阿里云UID。有多个责任人时,使用英文逗号(,)分隔。'."\n", + 'type' => 'string', + 'example' => '952795****', + ], + 'BaselineName' => [ + 'description' => '基线的名称。', + 'type' => 'string', + 'example' => 'BaselineName', + ], + 'Enabled' => [ + 'description' => '基线是否开启,包括true(可用)和false(不可用)。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'AlertEnabled' => [ + 'description' => '是否开启告警,包括true(开启)和false(关闭)。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'AlertMarginThreshold' => [ + 'description' => '基线实例的预警阈值,单位为分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + ], + 'OverTimeSettings' => [ + 'description' => '基线承诺时间设置。', + 'type' => 'array', + 'items' => [ + 'description' => '周期配置。', + 'type' => 'object', + 'properties' => [ + 'Cycle' => [ + 'description' => '承诺时间对应的周期,天基线为1,小时基线可以配置最多24个周期。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Time' => [ + 'description' => '承诺时间,hh:mm格式,hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'example' => '00:00', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '本次调用的唯一id。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '952795279527ab****', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"103630001\\",\\n \\"ErrorMessage\\": \\"The user does not exist. 276571706358178756\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"10\\",\\n \\"TotalCount\\": \\"100\\",\\n \\"Baselines\\": [\\n {\\n \\"BaselineId\\": 1234,\\n \\"ProjectId\\": 9527,\\n \\"BaselineType\\": \\"DAILY\\",\\n \\"Priority\\": 1,\\n \\"Owner\\": \\"952795****\\",\\n \\"BaselineName\\": \\"BaselineName\\",\\n \\"Enabled\\": true,\\n \\"AlertEnabled\\": true,\\n \\"AlertMarginThreshold\\": 30,\\n \\"OverTimeSettings\\": [\\n {\\n \\"Cycle\\": 1,\\n \\"Time\\": \\"00:00\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"RequestId\\": \\"952795279527ab****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 103630001\\n The user does not exist. 276571706358178756\\n 200\\n \\n 1\\n 10\\n 100\\n \\n 1234\\n 9527\\n DAILY\\n 1\\n 952795****\\n BaselineName\\n true\\n true\\n 30\\n \\n 1\\n \\n \\n \\n \\n 952795279527ab****\\n","errorExample":""}]', + 'title' => '获取基线列表', + ], + 'CreateBaseline' => [ + 'summary' => '该接口用于创建基线。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '158238', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BaselineName', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线名', + 'description' => '基线名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'BaselineName', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'title' => '项目id', + 'description' => 'DataWorks工作空间的ID,您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面查看ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'title' => '责任人', + 'description' => '基线责任人的阿里云uid。', + 'type' => 'string', + 'required' => true, + 'example' => '1000000000001', + ], + ], + [ + 'name' => 'Priority', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线优先级', + 'description' => '基线的优先级,取值范围为{1,3,5,7,8}。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1,3,5,7,8', + ], + ], + [ + 'name' => 'NodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线上游节点列表。', + 'type' => 'string', + 'required' => false, + 'example' => '210001233239,210001236482', + ], + ], + [ + 'name' => 'OvertimeSettings', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'title' => '基线承诺时间', + 'description' => '基线承诺时间配置。', + 'type' => 'array', + 'items' => [ + 'description' => '周期。', + 'type' => 'object', + 'properties' => [ + 'Cycle' => [ + 'title' => '周期,取值范围 [1,24]', + 'description' => '承诺时间对应的周期,天基线需要配置为1,小时基线可以配置最多24个周期。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + 'Time' => [ + 'title' => '承诺时间,hh:mm格式,hh的取值范围为[0,47],mm的取值范围为[0,59]', + 'description' => '承诺时间,hh:mm格式,hh的取值范围为\\[0,47\\],mm的取值范围为\\[0,59\\]。', + 'type' => 'string', + 'required' => false, + 'example' => '00:00', + ], + ], + 'required' => false, + ], + 'required' => true, + 'maxItems' => 144, + 'minItems' => 1, + ], + ], + [ + 'name' => 'AlertMarginThreshold', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线预警余量', + 'description' => '基线预警余量,单位为分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '30', + ], + ], + [ + 'name' => 'BaselineType', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线类型 (DAILY, HOURLY)', + 'description' => '基线类型,包括DAILY(天基线)和HOURLY(小时基线)。', + 'type' => 'string', + 'required' => true, + 'example' => 'DAILY', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '基线的id。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100003', + ], + 'RequestId' => [ + 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', + 'type' => 'string', + 'example' => 'F05080B0-CCE6-5D22-B284-34A51C5D4E28', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"401\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 100003,\\n \\"RequestId\\": \\"F05080B0-CCE6-5D22-B284-34A51C5D4E28\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 401\\n The specified parameters are invalid.\\n 200\\n 100003\\n F05080B0-CCE6-5D22-B284-34A51C5D4E28\\n","errorExample":""}]', + 'title' => '创建基线', + ], + 'UpdateBaseline' => [ + 'summary' => '该接口用于更新基线。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '158726', + 'abilityTreeNodes' => [ + 'FEATUREdideSFSFU4', + ], + ], + 'parameters' => [ + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的ID, 可通过 [ListBaselines](~~2261507~~) 获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '1000010800007', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '项目ID, 可通过 [ListBaselines](~~2261507~~) 获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '2043', + ], + ], + [ + 'name' => 'BaselineName', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线名', + 'description' => '基线名。', + 'type' => 'string', + 'required' => false, + 'example' => 'BaselineName', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'title' => '责任人', + 'description' => '基线责任人的阿里云uid。', + 'type' => 'string', + 'required' => false, + 'example' => '3726346****', + ], + ], + [ + 'name' => 'Priority', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线优先级', + 'description' => '基线的优先级,取值范围为{1,3,5,7,8}。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '7', + ], + ], + [ + 'name' => 'NodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线上游节点列表,使用逗号分割,节点较多的情况下,建议在其下游增加虚节点,便于管理。', + 'type' => 'string', + 'required' => false, + 'example' => '1,2,3', + ], + ], + [ + 'name' => 'OvertimeSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '基线承诺时间', + 'description' => '基线承诺时间配置。', + 'type' => 'array', + 'items' => [ + 'description' => '周期。', + 'type' => 'object', + 'properties' => [ + 'Cycle' => [ + 'title' => '周期,取值范围 [1,24]', + 'description' => '承诺时间对应的周期,天基线是1,小时基线可以配置最多24个周期。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + 'Time' => [ + 'title' => '承诺时间,hh:mm格式,hh的取值范围为[0,47],mm的取值范围为[0,59]', + 'description' => '承诺时间,hh:mm格式,hh的取值范围为[0,47],mm的取值范围为[0,59]。', + 'type' => 'string', + 'required' => false, + 'example' => '00:00', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 144, + ], + ], + [ + 'name' => 'AlertMarginThreshold', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线预警余量', + 'description' => '基线预警余量,单位为分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '30', + ], + ], + [ + 'name' => 'BaselineType', + 'in' => 'formData', + 'schema' => [ + 'title' => '基线类型 (DAILY, HOURLY)', + 'description' => '基线类型,包括DAILY(天基线)和HOURLY(小时基线)。', + 'type' => 'string', + 'required' => false, + 'example' => 'DAILY', + ], + ], + [ + 'name' => 'Enabled', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否开启基线', + 'description' => '基线是否开启,包括true(可用)和false(不可用)。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'AlertEnabled', + 'in' => 'formData', + 'schema' => [ + 'title' => '是否开启告警', + 'description' => '是否开启告警,包括true(开启)和false(关闭)。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'AlertSettings', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '告警配置', + 'description' => '基线告警配置。', + 'type' => 'array', + 'items' => [ + 'description' => '告警配置。', + 'type' => 'object', + 'properties' => [ + 'AlertType' => [ + 'title' => '告警类型,BASELINE / TOPIC', + 'description' => '告警类型,BASELINE - 基线 / TOPIC - 事件。', + 'type' => 'string', + 'required' => false, + 'example' => 'BASELINE', + ], + 'AlertMethods' => [ + 'title' => '告警方式', + 'description' => 'MAIL(邮件)'."\n" + .'SMS(短信)'."\n" + .'PHONE(电话),仅DataWorks专业版及以上版本支持使用电话方式接收报警。'."\n" + .'DINGROBOTS(钉钉机器人),仅当配置RobotUrls参数后,该报警方式才会生效。'."\n" + .'Webhooks(企业微信或飞书机器人),仅当配置 Webhooks 参数后,该报警方式才会生效。', + 'type' => 'array', + 'items' => [ + 'description' => '报警的方式', + 'type' => 'string', + 'required' => false, + 'example' => 'SMS', + ], + 'required' => false, + ], + 'SilenceStartTime' => [ + 'title' => '静默开始时间', + 'description' => '静默开始时间。', + 'type' => 'string', + 'required' => false, + 'example' => '00:00:00', + ], + 'SilenceEndTime' => [ + 'title' => '静默结束时间', + 'description' => '静默结束时间。', + 'type' => 'string', + 'required' => false, + 'example' => '00:00:00', + ], + 'AlertInterval' => [ + 'title' => '事件告警间隔', + 'description' => '事件告警间隔,单位为分钟,最小为5,最大值为 1440', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '1440', + 'minimum' => '5', + 'example' => '1800', + ], + 'AlertMaximum' => [ + 'title' => '事件告警最大次数', + 'description' => '事件告警最大次数,最大为24。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '288', + 'minimum' => '1', + 'example' => '1', + ], + 'DingRobots' => [ + 'title' => '钉钉机器人列表', + 'description' => '钉钉机器人列表', + 'type' => 'array', + 'items' => [ + 'description' => '钉钉机器人配置。', + 'type' => 'object', + 'properties' => [ + 'WebUrl' => [ + 'description' => '钉钉群机器人的webhook地址。', + 'type' => 'string', + 'required' => false, + 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=xxx ', + ], + 'AtAll' => [ + 'description' => '是否@所有人,包括true(是)和false(否)。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 10, + ], + 'Webhooks' => [ + 'title' => 'webhook 列表', + 'description' => 'webhook 列表。', + 'type' => 'array', + 'items' => [ + 'description' => '企业微信或飞书机器人的webhook地址,多个webhook地址之间使用英文逗号(,)分隔。alertMethods 中需要包含 WEBHOOKS 告警方式。当该参数配置为undefined时,系统会清空WebHook地址。'."\n" + ."\n" + .'仅DataWorks企业版支持。'."\n" + .'可用地域:华东2(上海)、西南1(成都)、华北3(张家口)、华北2(北京)、华东1(杭州)、华南1(深圳)、中国(香港)、欧洲中部 1(法兰克福)、亚太东南1(新加坡)。', + 'type' => 'string', + 'required' => false, + 'example' => 'https://open.feishu.cn/open-apis/bot/v2/hook/xxx ', + ], + 'required' => false, + 'maxItems' => 10, + ], + 'TopicTypes' => [ + 'title' => '事件告警类型,事件特有配置', + 'description' => '事件告警类型,事件特有配置。', + 'type' => 'array', + 'items' => [ + 'description' => '事件的类型,包括SLOW(变慢)和ERROR(出错)。多个事件类型之间使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'SLOW', + ], + 'required' => false, + 'maxItems' => 10, + ], + 'BaselineAlertEnabled' => [ + 'title' => '基线告警开关,基线特有配置', + 'description' => '基线告警开关,基线特有配置,包括true(是)和false(否)。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + 'AlertRecipientType' => [ + 'title' => '告警接收人类型', + 'description' => '告警接收人类型,OWNER(任务责任人)/ OTHER(指定的人)/ SHIFT_SCHEDULE(值班表)。', + 'type' => 'string', + 'required' => false, + 'example' => 'OWNER', + ], + 'AlertRecipient' => [ + 'title' => '告警接收人详情', + 'description' => '告警接收人详情,指定人:工号列表,值班表:值班表名,责任人:空。', + 'type' => 'string', + 'required' => false, + 'example' => '123123', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'RemoveNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要从基线上提出的节点ID,多个ID间使用,分隔', + 'type' => 'string', + 'required' => false, + 'example' => '123,456', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '基线是否更新成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', + 'type' => 'string', + 'example' => '6E07E90B-D9BC-5D6B-896A-82BA41A34AE1', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"401\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"6E07E90B-D9BC-5D6B-896A-82BA41A34AE1\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 401\\n The specified parameters are invalid.\\n 200\\n true\\n 6E07E90B-D9BC-5D6B-896A-82BA41A34AE1\\n","errorExample":""}]', + 'title' => '修改基线配置', + ], + 'UpdateQualityFollower' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78379', + 'abilityTreeNodes' => [ + 'FEATUREdideGJ7UNJ', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'FollowerId', + 'in' => 'formData', + 'schema' => [ + 'description' => '订阅关系的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'Follower', + 'in' => 'formData', + 'schema' => [ + 'description' => '订阅人。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1912232****', + ], + ], + [ + 'name' => 'AlarmMode', + 'in' => 'formData', + 'schema' => [ + 'description' => '订阅的方式,包括1(邮件)、2(邮件和短信)、4(钉钉群机器人)、5(钉钉群机器人@ALL)、6(飞书)、7(企业微信)、8(WEBHOOK)和9(电话告警)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99', + 'minimum' => '0', + 'example' => '2', + 'enum' => [ + '1', + '2', + '4', + '5', + '6', + '7', + '8', + '9', + ], + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => ' '."\n" + .'DataWorks工作空间的ID。您可以进入DataWorks管理控制台获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'example' => '123', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否更新成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '576b9457-2cf5-4****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"You have no permission\\",\\n \\"RequestId\\": \\"576b9457-2cf5-4****\\",\\n \\"ErrorCode\\": \\"401\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n You have no permission\\n 576b9457-2cf5-4****\\n 401\\n true\\n","errorExample":""}]', + 'title' => '更新订阅关系', + 'summary' => '调用UpdateQualityFollower更新订阅关系。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateQualityRule' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78380', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'BlockType', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验规则的强弱。强弱表示规则的重要程度。取值如下:'."\n" + .'- 1,表示强规则。'."\n" + .'- 0,表示弱规则。'."\n" + .'您可以根据实际需求设置重要的规则为强规则。如果使用强规则并触发了红色告警,则会阻塞调度任务。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '1', + 'minimum' => '0', + 'enumValueTitles' => [], + 'example' => '0', + 'enum' => [ + '0', + '1', + ], + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式的ID。您可以调用[ListQualityRules](~~173995~~)接口获分区表达式ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '123', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验规则的描述信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'Verify the number of table rows', + 'maxLength' => 512, + ], + ], + [ + 'name' => 'Checker', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验器ID。'."\n" + .'2,表示 7 天平均值波动。'."\n" + .'3,表示 30 天平均值波动。'."\n" + .'4,表示 1 天周期比较。'."\n" + .'5,表示 7 天周期比较。'."\n" + .'6,表示 30 天周期比较。'."\n" + .'7,表示 7 天方差波动。'."\n" + .'8,表示 30 天方差波动。'."\n" + .'9,表示与固定值比较。'."\n" + .'10,表示 1、7、30 天波动检测。'."\n" + .'11,表示上一周期比较。'."\n" + .'您可以调用[ListQualityRules](~~173995~~)接口获取校验器ID。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => false, + 'example' => '9', + ], + ], + [ + 'name' => 'ExpectValue', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验结果的期望值。', + 'type' => 'string', + 'required' => false, + 'example' => '300', + 'maxLength' => 128, + ], + ], + [ + 'name' => 'Id', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验规则的ID。您可以调用[ListQualityRules](~~173995~~)接口获取规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'Trend', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验结果的趋势。取值如下:'."\n" + .'- up,表示上升趋势。'."\n" + .'- down,表示下降趋势。'."\n" + .'- abs,表示绝对值。', + 'type' => 'string', + 'required' => false, + 'example' => 'up', + ], + ], + [ + 'name' => 'MethodName', + 'in' => 'formData', + 'schema' => [ + 'description' => '采集样本数据方法的名称。包括avg、count、sum、min、max、count_distinct、user_defined、table_count、table_size、table_dt_load_count、table_dt_refuseload_count、null_value、null_value/table_count、(table_count-count_distinct)/table_count、table_count-count_distinct等。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'table_count', + ], + ], + [ + 'name' => 'Operator', + 'in' => 'formData', + 'schema' => [ + 'description' => '比较符。包括>、>=、=、≠、<和<=等。'."\n" + ."\n" + .'> 当Checker=9时,Operator为必选参数。', + 'type' => 'string', + 'required' => false, + 'example' => '>', + 'maxLength' => 128, + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间管理页面获取名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'Property', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'id', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'PropertyType', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段的类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'bigint', + 'maxLength' => 128, + ], + ], + [ + 'name' => 'RuleType', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则的类型:'."\n" + .'- 0:系统模板规则'."\n" + .'- 1:自定义SQL规则'."\n" + .'- 4:自定义模板规则', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '99', + 'minimum' => '0', + 'example' => '0', + ], + ], + [ + 'name' => 'WhereCondition', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验任务使用的过滤条件或自定义SQL语句。', + 'type' => 'string', + 'required' => false, + 'example' => 'dt=$[yyyymmdd]', + ], + ], + [ + 'name' => 'CriticalThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '红色告警阈值。表示与样本预期的偏离程度。您可以根据业务需求自定义该阈值。使用强规则并触发红色阈值,会阻塞调度任务。', + 'type' => 'string', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'WarningThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '橙色告警阈值。表示与样本预期的偏离程度,您可以根据业务需求自定义该阈值。', + 'type' => 'string', + 'required' => false, + 'example' => '5', + ], + ], + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '使用的校验模板的ID。您可以调用[ListQualityRules](~~173995~~)接口获取校验模板的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '7', + ], + ], + [ + 'name' => 'RuleName', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验规则的名称。', + 'type' => 'string', + 'required' => false, + 'example' => '123', + 'maxLength' => 255, + 'minLength' => 1, + ], + ], + [ + 'name' => 'PredictType', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否为动态阈值。取值如下:'."\n" + .'- 0,表示非动态阈值。'."\n" + .'- 2,表示动态阈值。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '99', + 'minimum' => '0', + 'example' => '0', + ], + ], + [ + 'name' => 'OpenSwitch', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则的启用或停用状态,用于控制质量规则是否在生产环境中运行。'."\n" + ."\n" + .'- true:在数据质量规则关联产出表数据的调度任务执行时,便会触发质量规则校验。'."\n" + ."\n" + .'- false:在数据质量规则关联产出表数据的调度任务执行时,不会触发质量规则校验。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'default' => 'true', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks项目空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '26', + ], + ], + [ + 'name' => 'TaskSetting', + 'in' => 'formData', + 'schema' => [ + 'description' => '在自定义规则之前插入的变量设置,格式如:x=a,y=b', + 'type' => 'string', + 'required' => false, + 'example' => 'x=a,y=b', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '校验规则是否更新成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于出现错误后排查问题。', + 'type' => 'string', + 'example' => '576b9457-2cf5-4****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '0', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"576b9457-2cf5-4****\\",\\n \\"ErrorCode\\": \\"0\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n You have no permission.\\n 576b9457-2cf5-4****\\n 0\\n true\\n","errorExample":""}]', + 'title' => '更新规则', + 'summary' => '调用UpdateQualityRule更新校验规则的信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetQualityRule' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78285', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'RuleId', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验规则的ID。您可以调用[ListQualityRules](~~173995~~)接口查看RuleId的相关信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks项目空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '576b9457-2cf5-4****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '获取的规则信息。', + 'type' => 'object', + 'properties' => [ + 'BlockType' => [ + 'description' => '校验规则的强弱。强弱表示规则的重要程度。取值如下:'."\n" + .'- 1,表示强规则。'."\n" + .'- 0,表示弱规则。'."\n" + .'您可以根据实际需求设置重要的规则为强规则。如果使用强规则并触发了红色告警,则会阻塞调度任务。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'OnDutyAccountName' => [ + 'description' => '配置校验规则的阿里云账号名称。', + 'type' => 'string', + 'example' => 'test', + ], + 'WarningThreshold' => [ + 'description' => '橙色告警阈值。表示与样本预期的偏离程度,您可以根据业务需求自定义该阈值。', + 'type' => 'string', + 'example' => '10', + ], + 'Property' => [ + 'description' => '规则属性的字段,即被校验数据源表的column名称。', + 'type' => 'string', + 'example' => 'id', + ], + 'RuleType' => [ + 'description' => '规则的类型:'."\n" + .'- 0:系统模板规则'."\n" + .'- 1:自定义SQL规则'."\n" + .'- 4:自定义模板规则', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'Comment' => [ + 'description' => '校验规则的描述信息。', + 'type' => 'string', + 'example' => 'Verify that the primary key is unique', + ], + 'OnDuty' => [ + 'description' => '配置校验规则的账号ID。', + 'type' => 'string', + 'example' => '1822931****', + ], + 'Checker' => [ + 'description' => '校验器ID。该字段对应前端的ID标识,需要由pkId转换。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '9', + ], + 'FixCheck' => [ + 'description' => '固定值校验。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'MethodId' => [ + 'description' => '采集样本数据方法的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'CriticalThreshold' => [ + 'description' => '红色告警阈值。表示与样本预期的偏离程度。您可以根据业务需求自定义该阈值。使用强规则并触发红色阈值,会阻塞调度任务。', + 'type' => 'string', + 'example' => '20', + ], + 'PredictType' => [ + 'description' => '是否为动态阈值:'."\n" + .'- 0表示非动态阈值。'."\n" + .'- 1表示动态阈值规则。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'TemplateName' => [ + 'description' => '使用的校验模板的名称。', + 'type' => 'string', + 'example' => 'SQL task table rows, 1,7, 30 days fluctuation test', + ], + 'CheckerName' => [ + 'description' => '校验器的名称。', + 'type' => 'string', + 'example' => 'compared with a fixed value', + ], + 'RuleName' => [ + 'description' => '规则的名称。', + 'type' => 'string', + 'example' => 'View table fluctuations', + ], + 'MethodName' => [ + 'description' => '采集样本数据方法的名称。包括avg、count、sum、min、max、count_distinct、user_defined、table_count、table_size、table_dt_load_count、table_dt_refuseload_count、null_value、null_value/table_count、(table_count-count_distinct)/table_count、table_count-count_distinct等。', + 'type' => 'string', + 'example' => 'table_count', + ], + 'EntityId' => [ + 'description' => '分区表达式的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '165523', + ], + 'WhereCondition' => [ + 'description' => '校验任务使用的过滤条件或自定义SQL语句。', + 'type' => 'string', + 'example' => 'id>10', + ], + 'Operator' => [ + 'description' => '操作符。', + 'type' => 'string', + 'example' => '>=', + ], + 'ExpectValue' => [ + 'description' => '期望值。', + 'type' => 'string', + 'example' => '30', + ], + 'Trend' => [ + 'description' => '校验结果的趋势。', + 'type' => 'string', + 'example' => 'abs', + ], + 'TemplateId' => [ + 'description' => '使用的校验模板的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '7', + ], + 'Id' => [ + 'description' => '规则的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123232', + ], + 'OpenSwitch' => [ + 'description' => '规则是否开启', + 'type' => 'boolean', + 'example' => 'true', + ], + 'TaskSetting' => [ + 'description' => '在自定义规则之前插入的变量设置,格式如:x=a,y=b', + 'type' => 'string', + 'example' => 'x=a,y=b'."\n", + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"576b9457-2cf5-4****\\",\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"ErrorCode\\": \\"401\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"BlockType\\": 1,\\n \\"OnDutyAccountName\\": \\"test\\",\\n \\"WarningThreshold\\": \\"10\\",\\n \\"Property\\": \\"id\\",\\n \\"RuleType\\": 0,\\n \\"Comment\\": \\"Verify that the primary key is unique\\",\\n \\"OnDuty\\": \\"1822931****\\",\\n \\"Checker\\": 9,\\n \\"FixCheck\\": true,\\n \\"MethodId\\": 8,\\n \\"CriticalThreshold\\": \\"20\\",\\n \\"PredictType\\": 0,\\n \\"TemplateName\\": \\"SQL task table rows, 1,7, 30 days fluctuation test\\",\\n \\"CheckerName\\": \\"compared with a fixed value\\",\\n \\"RuleName\\": \\"View table fluctuations\\",\\n \\"MethodName\\": \\"table_count\\",\\n \\"EntityId\\": 165523,\\n \\"WhereCondition\\": \\"id>10\\",\\n \\"Operator\\": \\">=\\",\\n \\"ExpectValue\\": \\"30\\",\\n \\"Trend\\": \\"abs\\",\\n \\"TemplateId\\": 7,\\n \\"Id\\": 123232,\\n \\"OpenSwitch\\": true,\\n \\"TaskSetting\\": \\"x=a,y=b\\\\n\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 576b9457-2cf5-4****\\n You have no permission.\\n 401\\n true\\n \\n 1\\n test\\n 10\\n id\\n 0\\n 校验主键唯一\\n 1822931****\\n 9\\n true\\n 8\\n 20\\n 0\\n SQL task table rows, 1,7, 30 days fluctuation test\\n compared with a fixed value\\n 查看表波动\\n table_count\\n 165523\\n id>10\\n >=\\n 30\\n abs\\n 7\\n 123232\\n true\\n \\n","errorExample":""}]', + 'title' => '获取规则的信息', + 'summary' => '调用GetQualityRule获取校验规则的信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListQualityRules' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78331', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。您可以从数据源配置中获取名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式的ID。您可以调用[GetQualityEntity](~~174003~~)获取分区表达式ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大为20条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '20', + 'minimum' => '1', + 'example' => '20', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks项目空间ID', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,用于后续错误排查使用。', + 'type' => 'string', + 'example' => '38cbdef0-f6cf-49****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'Success' => [ + 'description' => '调用是否成功,取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '获取的规则列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '20', + ], + 'TotalCount' => [ + 'description' => '返回数据总量。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '400', + ], + 'Rules' => [ + 'description' => '校验规则的详情。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'BlockType' => [ + 'description' => '校验规则的强弱。强弱表示规则的重要程度。取值如下:'."\n" + .'- 1,表示强规则。'."\n" + .'- 0,表示弱规则。'."\n" + .'您可以根据实际需求设置重要的规则为强规则。如果使用强规则并触发了红色告警,则会阻塞调度任务。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'OnDutyAccountName' => [ + 'description' => '配置校验规则的阿里云账号名称。', + 'type' => 'string', + 'example' => 'test', + ], + 'Property' => [ + 'description' => '字段的名称。', + 'type' => 'string', + 'example' => 'id', + ], + 'WarningThreshold' => [ + 'description' => '橙色告警阈值。表示与样本预期的偏离程度,您可以根据业务需求自定义该阈值。', + 'type' => 'string', + 'example' => '10', + ], + 'TableName' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'example' => 'dual', + ], + 'OnDuty' => [ + 'description' => '配置校验规则的账号ID。', + 'type' => 'string', + 'example' => '1912****', + ], + 'Comment' => [ + 'description' => '规则的描述信息。', + 'type' => 'string', + 'example' => 'Verify table rules', + ], + 'RuleCheckerRelationId' => [ + 'description' => '规则详情的内部关联ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '132323', + ], + 'FixCheck' => [ + 'description' => '固定值校验。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'MethodId' => [ + 'description' => '采集样本数据方法的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '21', + ], + 'TemplateName' => [ + 'description' => '使用的校验模板的名称。', + 'type' => 'string', + 'example' => 'Number of SQL task table rows, 1, 7, and 30 days wave detection', + ], + 'Trend' => [ + 'description' => '校验结果的趋势。', + 'type' => 'string', + 'example' => 'abs', + ], + 'HistoryWarningThreshold' => [ + 'description' => '历史橙色告警阈值。', + 'type' => 'string', + 'example' => 'history max:40%,history min:10%', + ], + 'RuleType' => [ + 'description' => '规则的类型:'."\n" + .'- 0:系统模板规则'."\n" + .'- 1:自定义SQL规则'."\n" + .'- 4:自定义模板规则', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'MatchExpression' => [ + 'description' => '分区表达式。', + 'type' => 'string', + 'example' => 'dt=$[yyyymmdd]', + ], + 'ProjectName' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'example' => 'autotest', + ], + 'PropertyKey' => [ + 'description' => '用于数据质量前端规则联动,可以忽略。', + 'type' => 'string', + 'example' => 'table_count', + ], + 'CriticalThreshold' => [ + 'description' => '红色告警阈值。表示与样本预期的偏离程度。您可以根据业务需求自定义该阈值。使用强规则并触发红色阈值,会阻塞调度任务。', + 'type' => 'string', + 'example' => '40', + ], + 'HistoryCriticalThreshold' => [ + 'description' => '历史红色告警阈值。', + 'type' => 'string', + 'example' => 'history max:80%,history min:50%', + ], + 'MethodName' => [ + 'description' => '采集样本数据方法的名称。包括avg、count、sum、min、max、count_distinct、user_defined、table_count、table_size、table_dt_load_count、table_dt_refuseload_count、null_value、null_value/table_count、(table_count-count_distinct)/table_count、table_count-count_distinct等。', + 'type' => 'string', + 'example' => 'count/table_count', + ], + 'CheckerId' => [ + 'description' => '校验器ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '7', + ], + 'EntityId' => [ + 'description' => '分区表达式的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ExpectValue' => [ + 'description' => '期望值。', + 'type' => 'string', + 'example' => '1000', + ], + 'TemplateId' => [ + 'description' => '使用的校验模板的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '7', + ], + 'Id' => [ + 'description' => '规则的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'RuleName' => [ + 'title' => '规则名称', + 'description' => '规则名称。', + 'type' => 'string', + 'example' => 'test', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"38cbdef0-f6cf-49****\\",\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 400,\\n \\"Rules\\": [\\n {\\n \\"BlockType\\": 0,\\n \\"OnDutyAccountName\\": \\"test\\",\\n \\"Property\\": \\"id\\",\\n \\"WarningThreshold\\": \\"10\\",\\n \\"TableName\\": \\"dual\\",\\n \\"OnDuty\\": \\"1912****\\",\\n \\"Comment\\": \\"Verify table rules\\",\\n \\"RuleCheckerRelationId\\": 132323,\\n \\"FixCheck\\": true,\\n \\"MethodId\\": 21,\\n \\"TemplateName\\": \\"Number of SQL task table rows, 1, 7, and 30 days wave detection\\",\\n \\"Trend\\": \\"abs\\",\\n \\"HistoryWarningThreshold\\": \\"history max:40%,history min:10%\\",\\n \\"RuleType\\": 0,\\n \\"MatchExpression\\": \\"dt=$[yyyymmdd]\\",\\n \\"ProjectName\\": \\"autotest\\",\\n \\"PropertyKey\\": \\"table_count\\",\\n \\"CriticalThreshold\\": \\"40\\",\\n \\"HistoryCriticalThreshold\\": \\"history max:80%,history min:50%\\",\\n \\"MethodName\\": \\"count/table_count\\",\\n \\"CheckerId\\": 7,\\n \\"EntityId\\": 1234,\\n \\"ExpectValue\\": \\"1000\\",\\n \\"TemplateId\\": 7,\\n \\"Id\\": 1234,\\n \\"RuleName\\": \\"test\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 38cbdef0-f6cf-49****\\n You have no permission.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 1\\n 20\\n 400\\n \\n 0\\n test\\n id\\n 10\\n dual\\n 1912****\\n 校验表规则\\n 132323\\n true\\n 21\\n sql任务表行数,1、7、30天波动检测\\n abs\\n history max:40%,history min:10%\\n 0\\n dt=$[yyyymmdd]\\n autotest\\n table_count\\n 40\\n history max:80%,history min:50%\\n count/table_count\\n 7\\n 1234\\n 1000\\n 7\\n 1234\\n test\\n \\n \\n","errorExample":""}]', + 'title' => '根据分区表达式获取规则列表', + 'summary' => '调用ListQualityRules根据分区表达式获取校验规则列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateQualityRule' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78195', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'BlockType', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则的强弱:'."\n" + ."\n" + .'- 0表示弱规则'."\n" + .'- 1表示强规则。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '1', + 'minimum' => '0', + 'example' => '0', + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '15224', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则的描述信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'Verification', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'Checker', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验器的ID,取值如下:'."\n" + ."\n" + .'- 2,表示7天平均值波动。'."\n" + .'- 3,表示30天平均值波动。'."\n" + .'- 4,表示1天周期比较。'."\n" + .'- 5,表示7天周期比较。'."\n" + .'- 6,表示30天周期比较。'."\n" + .'- 7,表示7天方差波动。'."\n" + .'- 8,表示30天方差波动。'."\n" + .'- 9,表示与固定值比较。'."\n" + .'- 10,表示1、7、30天波动检测。'."\n" + .'- 11,表示上一周期比较。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '9', + ], + ], + [ + 'name' => 'ExpectValue', + 'in' => 'formData', + 'schema' => [ + 'description' => '期望值。', + 'type' => 'string', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'Trend', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验结果的趋势。取值如下:'."\n" + .'- up,表示上升趋势。'."\n" + .'- down,表示下降趋势。'."\n" + .'- abs,表示绝对值。', + 'type' => 'string', + 'required' => false, + 'example' => 'abs', + ], + ], + [ + 'name' => 'MethodName', + 'in' => 'formData', + 'schema' => [ + 'description' => '采样方。如果是自定义SQL,该参数的值为user_defined。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'count/table_count', + ], + ], + [ + 'name' => 'Operator', + 'in' => 'formData', + 'schema' => [ + 'description' => '比较符。包括>、>=、=、≠、<和<=等。'."\n" + ."\n" + .'> 当Checker=9时,Operator为必选参数。', + 'type' => 'string', + 'required' => false, + 'example' => '>', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'Property', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则的字段。如果是表级别校验,行数为table_count、大小为table_size字段。', + 'type' => 'string', + 'required' => false, + 'example' => 'table_id', + 'maxLength' => 128, + ], + ], + [ + 'name' => 'PropertyType', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段的类型,表级table,字段级填写bigint等。', + 'type' => 'string', + 'required' => false, + 'example' => 'bigint', + ], + ], + [ + 'name' => 'RuleType', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则的类型:'."\n" + .'- 0:系统模板规则'."\n" + .'- 1:自定义SQL规则'."\n" + .'- 4:自定义模板规则', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99', + 'minimum' => '0', + 'example' => '0', + ], + ], + [ + 'name' => 'WhereCondition', + 'in' => 'formData', + 'schema' => [ + 'description' => '过滤条件或自定义SQL。', + 'type' => 'string', + 'required' => false, + 'example' => 'table_id>1', + ], + ], + [ + 'name' => 'CriticalThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '红色告警阈值。表示与样本预期的偏离程度。您可以根据业务需求自定义该阈值。使用强规则并触发红色阈值,会阻塞调度任务。', + 'type' => 'string', + 'required' => false, + 'example' => '20', + ], + ], + [ + 'name' => 'WarningThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '橙色告警阈值。表示与样本预期的偏离程度,您可以根据业务需求自定义该阈值。', + 'type' => 'string', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '模板的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1', + 'example' => '7', + ], + ], + [ + 'name' => 'RuleName', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + 'maxLength' => 128, + ], + ], + [ + 'name' => 'PredictType', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否为动态阈值:0表示非动态阈值、2表示动态阈值规则。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99', + 'minimum' => '0', + 'example' => '0', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'TaskSetting', + 'in' => 'formData', + 'schema' => [ + 'description' => '在自定义规则之前插入的变量设置,格式如:x=a,y=b。', + 'type' => 'string', + 'required' => false, + 'example' => 'x=a,y=b', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '新建的规则ID。', + 'type' => 'string', + 'example' => '12345', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'ecb967ec-c137-48****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"12345\\",\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"ecb967ec-c137-48****\\",\\n \\"ErrorCode\\": \\"401\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 12345\\n You have no permission.\\n ecb967ec-c137-48****\\n 401\\n true\\n","errorExample":""}]', + 'title' => '创建质量监控规则', + 'summary' => '调用CreateQualityRule创建质量监控规则。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteQualityFollower' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78214', + 'abilityTreeNodes' => [ + 'FEATUREdideGJ7UNJ', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式所在的引擎或者数据源的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据质量的规则配置页面获取名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'FollowerId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式的订阅关系ID。您可以调用[GetQualityFollower](~~174000~~)接口获取订阅关系ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否成功删除分区表达式的订阅用户,取值如下:'."\n" + .'- true,删除成功。'."\n" + .'- false,删除失败,您可以通过报错信息查询原因,处理问题。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '删除分区表达式订阅用户失败后的报错信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID,用于后续错误排查使用。', + 'type' => 'string', + 'example' => '6d739ef6-098a-47****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"6d739ef6-098a-47****\\",\\n \\"ErrorCode\\": \\"401\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n You have no permission.\\n 6d739ef6-098a-47****\\n 401\\n true\\n","errorExample":""}]', + 'title' => '删除分区表达式的订阅人', + 'summary' => '调用DeleteQualityFollower删除分区表达式的订阅人。', + 'description' => '数据质量是通过分区表达式来确定需要配置的监控规则。通过该规则帮助您第一时间感知源端数据的变更与ETL(Extract Transformation Load)中产生的脏数据,自动拦截问题任务,有效阻断脏数据向下游蔓延。避免任务产出不符合预期的问题数据,影响正常使用和业务决策。您可以通过订阅管理,为分区表达式添加订阅用户,添加后,当该分区表达式的监控规则被触发,则相应用户会收到消息通知,方便您及时发现并处理问题。详情请参见[配置监控规则](~~73690~~)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteQualityRule' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78216', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'RuleId', + 'in' => 'formData', + 'schema' => [ + 'description' => '规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks控制台,进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '删除是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '6d739ef6-098a-47****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"6d739ef6-098a-47****\\",\\n \\"ErrorCode\\": \\"401\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n You have no permission.\\n 6d739ef6-098a-47****\\n 401\\n true\\n","errorExample":""}]', + 'title' => '删除规则', + 'summary' => '调用DeleteQualityRule删除规则。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetQualityFollower' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78284', + 'abilityTreeNodes' => [ + 'FEATUREdideGJ7UNJ', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '27', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '38cbdef0-f6cf-49', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '订阅关系的信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'FollowerAccountName' => [ + 'description' => '订阅人的阿里云账号名称。', + 'type' => 'string', + 'example' => 'test', + ], + 'TableName' => [ + 'description' => '分区表的名称。', + 'type' => 'string', + 'example' => 'dual', + ], + 'AlarmMode' => [ + 'description' => '告警的模式,取值如下:'."\n" + .'- 1(邮件)'."\n" + .'- 2(邮件和短信)'."\n" + .'- 4(钉钉群机器人或hook)'."\n" + .'- 5(钉钉群机器人@ALL)', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'EntityId' => [ + 'description' => '分区表达式的ID。', + 'type' => 'string', + 'example' => '1234', + ], + 'ProjectName' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'example' => 'autotest', + ], + 'Id' => [ + 'description' => '订阅关系的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'Follower' => [ + 'description' => '订阅人,用于接收告警信息。', + 'type' => 'string', + 'example' => '1234', + ], + 'CreateTime' => [ + 'description' => '数据质量规则订阅配置的创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1541576644000', + ], + 'ModifyTime' => [ + 'description' => '数据质量规则订阅配置的更新时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1541576644000', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"38cbdef0-f6cf-49\\",\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": [\\n {\\n \\"FollowerAccountName\\": \\"test\\",\\n \\"TableName\\": \\"dual\\",\\n \\"AlarmMode\\": 1,\\n \\"EntityId\\": \\"1234\\",\\n \\"ProjectName\\": \\"autotest\\",\\n \\"Id\\": 123,\\n \\"Follower\\": \\"1234\\",\\n \\"CreateTime\\": 1541576644000,\\n \\"ModifyTime\\": 1541576644000\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 38cbdef0-f6cf-49\\n You have no permission.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n test\\n dual\\n 1\\n 1234\\n autotest\\n 123\\n 1234\\n 1541576644000\\n 1541576644000\\n \\n","errorExample":""}]', + 'title' => '获取分区表达式的订阅人', + 'summary' => '调用GetQualityFollower获取分区表达式的订阅人。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateQualityFollower' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78193', + 'abilityTreeNodes' => [ + 'FEATUREdideGJ7UNJ', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'Follower', + 'in' => 'formData', + 'schema' => [ + 'description' => '订阅人的账号ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '123', + ], + ], + [ + 'name' => 'AlarmMode', + 'in' => 'formData', + 'schema' => [ + 'description' => '订阅的方式,包括1(邮件)、2(邮件和短信)、4(钉钉群机器人)、5(钉钉群机器人@ALL)、6(飞书)、7(企业微信)、8(WEBHOOK)和9(电话告警)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + 'enum' => [ + '1', + '2', + '4', + '5', + '6', + '7', + '8', + '9', + ], + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以进入DataWorks管理控制台获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '123', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '新创建的订阅关系ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '12345', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'ecb967ec-c137-48****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 12345,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"ecb967ec-c137-48****\\",\\n \\"ErrorCode\\": \\"401\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 12345\\n You have no permission.\\n ecb967ec-c137-48****\\n 401\\n true\\n","errorExample":""}]', + 'title' => '创建分区表达式的订阅人', + 'summary' => '调用CreateQualityFollower创建分区表达式的订阅人。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteQualityEntity' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78213', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的类型。支持EMR、Hologres、AnalyticDB for PostgreSQL、CDH、MaxCompute、Kafka和DataHub数据源。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps', + 'enum' => [ + 'odps', + 'emr', + 'hadoop', + 'cdh', + 'hybriddb_for_postgresql', + 'holodb', + ], + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks项目空间ID', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '调用DeleteQualityEntity接口后,返回的结果详情。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'ecb967ec-c137-48****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"ecb967ec-c137-48****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"401\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n You have no permission.\\n ecb967ec-c137-48****\\n true\\n 401\\n","errorExample":""}]', + 'title' => '删除分区表达式', + 'summary' => '调用DeleteQualityEntity删除分区表达式。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetQualityEntity' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78283', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或数据源的名称。您可以从数据源配置中获取名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + 'maxLength' => 1024, + 'minLength' => 1, + ], + ], + [ + 'name' => 'TableName', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表名称。您可以调用[GetMetaTablePartition](~~173923~~)查看分区表名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'dual', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或数据源的类型。'."\n" + .'取值范围:'."\n" + .'- cdh'."\n" + .'- analyticdb_for_mysql'."\n" + .'- odps'."\n" + .'- emr'."\n" + .'- hadoop'."\n" + .'- holodb'."\n" + .'- hybriddb_for_postgresql', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'odps', + 'maxLength' => 64, + 'minLength' => 1, + ], + ], + [ + 'name' => 'MatchExpression', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'dt=$[yyyymmdd]', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '123456', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '6d739ef6-098a-47****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据详情。', + 'type' => 'object', + 'properties' => [ + 'RelativeNode' => [ + 'description' => '分区表达式关联的调度节点信息,包括:'."\n" + .'- ProjectName:调度节点所在的项目名称。'."\n" + .'- NodeID:调度节点的节点ID。'."\n", + 'type' => 'string', + 'example' => '[{"projectName":"xc_DP****","nodeId":7000026****}]', + ], + 'OnDutyAccountName' => [ + 'description' => '责任人的阿里云账号名称。', + 'type' => 'string', + 'example' => 'test', + ], + 'Task' => [ + 'description' => '任务节点。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'TableName' => [ + 'description' => '分区表名称。', + 'type' => 'string', + 'example' => 'test_dqc_de****', + ], + 'Followers' => [ + 'description' => '订阅人,接收告警信息的阿里云账号ID。', + 'type' => 'string', + 'example' => '1822931****', + ], + 'OnDuty' => [ + 'description' => '责任人,指配置分区表达式的账号ID。', + 'type' => 'string', + 'example' => '1822931****', + ], + 'MatchExpression' => [ + 'description' => '分区表达式。', + 'type' => 'string', + 'example' => 'dt=$[yyyymmdd-1]', + ], + 'CreateTime' => [ + 'description' => '创建分区表达式的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593964800000', + ], + 'ProjectName' => [ + 'description' => '引擎或数据源的名称。', + 'type' => 'string', + 'example' => 'autotest', + ], + 'HasRelativeNode' => [ + 'description' => '是否关联调度,取值如下:'."\n" + .'- true:已关联调度。'."\n" + .'- false:未关联调度。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'EnvType' => [ + 'description' => '引擎或者数据源的类型。', + 'type' => 'string', + 'example' => 'odps', + ], + 'EntityLevel' => [ + 'description' => '分区表达式的级别,取值如下:'."\n" + .'- 0(SQL级别):指每段SQL语句执行完毕后都会触发DQC执行校验。'."\n" + .'- 1(任务级别):指所有SQL语句均执行完毕后,统一进行校验。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ModifyUser' => [ + 'description' => '更新人,指更新分区表达式的账号ID。', + 'type' => 'string', + 'example' => '1822931****', + ], + 'Sql' => [ + 'description' => 'SQL级别的分区表达式。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'Id' => [ + 'description' => '分区表达式ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '4003918', + ], + 'ModifyTime' => [ + 'description' => '更新分区表达式的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1593964800000', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"6d739ef6-098a-47****\\",\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"ErrorCode\\": \\"401\\",\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"RelativeNode\\": \\"[{\\\\\\"projectName\\\\\\":\\\\\\"xc_DP****\\\\\\",\\\\\\"nodeId\\\\\\":7000026****}]\\",\\n \\"OnDutyAccountName\\": \\"test\\",\\n \\"Task\\": 0,\\n \\"TableName\\": \\"test_dqc_de****\\",\\n \\"Followers\\": \\"1822931****\\",\\n \\"OnDuty\\": \\"1822931****\\",\\n \\"MatchExpression\\": \\"dt=$[yyyymmdd-1]\\",\\n \\"CreateTime\\": 1593964800000,\\n \\"ProjectName\\": \\"autotest\\",\\n \\"HasRelativeNode\\": true,\\n \\"EnvType\\": \\"odps\\",\\n \\"EntityLevel\\": 0,\\n \\"ModifyUser\\": \\"1822931****\\",\\n \\"Sql\\": 0,\\n \\"Id\\": 4003918,\\n \\"ModifyTime\\": 1593964800000\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 6d739ef6-098a-47****\\n You have no permission.\\n 401\\n true\\n \\n [{\\"projectName\\":\\"xc_DP****\\",\\"nodeId\\":7000026****}]\\n test\\n 0\\n test_dqc_de****\\n 1822931****\\n 1822931****\\n dt=$[yyyymmdd-1]\\n 1593964800000\\n autotest\\n true\\n odps\\n 0\\n 1822931****\\n 0\\n 4003918\\n 1593964800000\\n \\n","errorExample":""}]', + 'title' => '获取分区表达式', + 'summary' => '调用GetQualityEntity获取分区表达式。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateQualityEntity' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78192', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎的项目名称或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'formData', + 'schema' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'dual', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的类型。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'ODPS', + 'maxLength' => 64, + 'minLength' => 1, + 'enum' => [ + 'odps', + 'emr', + 'hadoop', + 'cdh', + 'analyticdb_for_mysql', + 'hybriddb_for_postgresql', + 'holodb', + ], + ], + ], + [ + 'name' => 'MatchExpression', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'dt=$[yyyymmdd]', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'EntityLevel', + 'in' => 'formData', + 'schema' => [ + 'description' => '已废弃。'."\n" + ."\n" + .'包括0(SQL完成时校检)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => false, + 'maximum' => '99', + 'minimum' => '0', + 'enumValueTitles' => [ + '0', + '1', + ], + 'example' => '0', + 'enum' => [ + '0', + '1', + ], + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以进入DataWorks管理控制台获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '123', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '分区表达式返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP请求错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '新创建的分区表达式ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '12345', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Your project is not relative with your account.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '011e1231u3****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 12345,\\n \\"ErrorMessage\\": \\"Your project is not relative with your account.\\",\\n \\"RequestId\\": \\"011e1231u3****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"401\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 12345\\n Your project is not relative with your account.\\n 011e1231u3****\\n true\\n 401\\n","errorExample":""}]', + 'title' => '创建数据质量的分区表达式', + 'summary' => '调用CreateQualityEntity创建数据质量的分区表达式。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateQualityRelativeNode' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78194', + 'abilityTreeNodes' => [ + 'FEATUREdide3WJOKE', + ], + ], + 'parameters' => [ + [ + 'name' => 'EnvType', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的类型。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'ODPS', + 'maxLength' => 40, + 'minLength' => 1, + ], + ], + [ + 'name' => 'MatchExpression', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'dt=$[yyyymmdd]', + 'maxLength' => 80, + 'minLength' => 1, + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度节点ID,您可以调用[ListNodes](~~173979~~)接口获取节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12321', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '123', + ], + ], + [ + 'name' => 'TargetNodeProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '关联调度的节点项目。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'TableName', + 'in' => 'formData', + 'schema' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'dual', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'TargetNodeProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点所在的项目空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => 'XXX返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否关联成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'ecb967ec-c137-48****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"ecb967ec-c137-48****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"401\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n You have no permission.\\n ecb967ec-c137-48****\\n true\\n 401\\n","errorExample":""}]', + 'title' => '创建分区表达式关联', + 'summary' => '调用CreateQualityRelativeNode创建分区表达式关联。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteQualityRelativeNode' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + ], + 'parameters' => [ + [ + 'name' => 'EnvType', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的类型。'."\n" + .'枚举值:'."\n" + .'- cdh'."\n" + .'- analyticdb_for_mysql'."\n" + .'- odps'."\n" + .'- emr'."\n" + .'- hadoop'."\n" + .'- holodb'."\n" + .'- hybriddb_for_postgresql', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'ODPS', + 'maxLength' => 40, + 'minLength' => 1, + ], + ], + [ + 'name' => 'MatchExpression', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'dt=$[yyyymmdd]', + 'maxLength' => 80, + 'minLength' => 1, + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '156234', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'TargetNodeProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '关联调度节点的项目。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + 'maxLength' => 512, + 'minLength' => 1, + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'formData', + 'schema' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'dual', + 'maxLength' => 128, + 'minLength' => 1, + ], + ], + [ + 'name' => 'TargetNodeProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '关联调度节点的项目ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '关联调度返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '删除是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '6d739ef6-098a-47****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"6d739ef6-098a-47****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"401\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n You have no permission.\\n 6d739ef6-098a-47****\\n true\\n 401\\n","errorExample":""}]', + 'title' => '删除调度关联', + 'summary' => '调用DeleteQualityRelativeNode删除调度关联。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListQualityResultsByEntity' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78329', + 'abilityTreeNodes' => [ + 'FEATUREdideGK4B66', + ], + ], + 'parameters' => [ + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分区表达式ID。您可以调用[GetQualityEntity](~~174003~~)获取分区表达式ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '15232', + ], + ], + [ + 'name' => 'StartDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期起始时间,格式为yyyy-MM-dd HH:mm:ss。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-09-20 00:00:00', + ], + ], + [ + 'name' => 'EndDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期截止时间,格式为yyyy-MM-dd HH:mm:ss。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-09-21 00:00:00', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大20条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '20', + 'minimum' => '1', + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '引擎或者数据源的名称。您可以从数据源配置中获取名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks项目空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '校验结果', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'CBA58543-00D4-41****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Data' => [ + 'description' => '校验结果的顶层结构体。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '数据的总记录数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '50', + ], + 'RuleChecks' => [ + 'description' => '校验结果的列表。', + 'type' => 'array', + 'items' => [ + 'description' => '校验结果', + 'type' => 'object', + 'properties' => [ + 'BlockType' => [ + 'description' => '校验规则的强弱。强弱表示规则的重要程度。取值如下:'."\n" + .'- 1,表示强规则。'."\n" + .'- 0,表示弱规则。'."\n" + .'您可以根据实际需求设置重要的规则为强规则。如果使用强规则并触发了红色告警,则会阻塞调度任务。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'WarningThreshold' => [ + 'description' => '橙色阈值。表示与样本预期的偏离程度,您可以根据业务需求自定义该阈值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.1', + ], + 'Property' => [ + 'description' => '规则属性的字段,即被校验数据源表的column名称。', + 'type' => 'string', + 'example' => 'type', + ], + 'TableName' => [ + 'description' => '进行校验的表名称。', + 'type' => 'string', + 'example' => 'dual', + ], + 'Comment' => [ + 'description' => '校验规则的描述。', + 'type' => 'string', + 'example' => 'The description of the rule.', + ], + 'CheckResultStatus' => [ + 'description' => '校验结果状态参数与产品界面中的状态信息一致,取值有以下几种:'."\n" + .'- 0:正常'."\n" + .'- 1:橙色告警'."\n" + .'- 2:红色告警', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'TemplateName' => [ + 'description' => '使用的校验模板的名称。', + 'type' => 'string', + 'example' => 'Expected value verification', + ], + 'CheckerName' => [ + 'description' => '校验器的名称。', + 'type' => 'string', + 'example' => 'fulx', + ], + 'RuleId' => [ + 'description' => '规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123123232', + ], + 'FixedCheck' => [ + 'description' => '是否为固定值校验。取值如下:'."\n" + .'- true:是固定值校验。'."\n" + .'- false:非固定值校验。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Op' => [ + 'description' => '比较符。', + 'type' => 'string', + 'example' => '>', + ], + 'UpperValue' => [ + 'description' => '预测上限。设置阈值后自动生成。', + 'type' => 'number', + 'format' => 'float', + 'example' => '25555', + ], + 'ActualExpression' => [ + 'description' => '被校验的数据源表的实际分区。', + 'type' => 'string', + 'example' => 'ds=20200912', + ], + 'ExternalId' => [ + 'description' => '调度任务的节点ID。', + 'type' => 'string', + 'example' => '1112323123', + ], + 'TimeCost' => [ + 'description' => '执行校验任务花费的时间,单位为秒。', + 'type' => 'string', + 'example' => '202', + ], + 'Trend' => [ + 'description' => '校验结果的趋势。', + 'type' => 'string', + 'example' => 'abs', + ], + 'ExternalType' => [ + 'description' => '调度系统的类型。目前仅支持CWF。', + 'type' => 'string', + 'example' => 'CWF2', + ], + 'BizDate' => [ + 'description' => '业务日期。如果被校验的业务主体为离线数据,则业务日期通常为执行校验操作的前一天。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600704000000', + ], + 'CheckResult' => [ + 'description' => '校验结果参数的结果通常与CheckResultStatus一致,取值有以下几种:'."\n" + .'- 0:正常'."\n" + .'- 1:橙色告警'."\n" + .'- 2:红色告警', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ResultString' => [ + 'description' => '校验结果的字符串形式。', + 'type' => 'string', + 'example' => 'test', + ], + 'MatchExpression' => [ + 'description' => '分区表达式。', + 'type' => 'string', + 'example' => 'ds=$[yyyymmdd]', + ], + 'CheckerType' => [ + 'description' => '校验类型。取值如下:'."\n" + .'- 0,固定值'."\n" + .'- 1,波动校验'."\n" + .'- 2,动态阈值', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectName' => [ + 'description' => '需要进行数据质量校验的引擎或者数据源名称。', + 'type' => 'string', + 'example' => 'autotest', + ], + 'BeginTime' => [ + 'description' => '执行校验操作的开始时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600704000000', + ], + 'DateType' => [ + 'description' => '调度周期的类型。通常为YMD,即年任务、月任务、天任务。', + 'type' => 'string', + 'example' => 'YMD', + ], + 'CriticalThreshold' => [ + 'description' => '红色阈值。表示与样本预期的偏离程度。您可以根据业务需求自定义该阈值。使用强规则并触发红色阈值,会阻塞调度任务。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.5', + ], + 'IsPrediction' => [ + 'description' => '是否为预测的结果。取值如下:'."\n" + .'- true:是预测的结果。'."\n" + .'- false:不是预测的结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RuleName' => [ + 'description' => '规则的名称。', + 'type' => 'string', + 'example' => 'The name of the rule.', + ], + 'CheckerId' => [ + 'description' => '校验器的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '7', + ], + 'DiscreteCheck' => [ + 'description' => '是否为离散校验。取值如下:'."\n" + .'- true:是离散校验。'."\n" + .'- false:非离散校验。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'EndTime' => [ + 'description' => '查询校验结果的截止时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600704000000', + ], + 'MethodName' => [ + 'description' => '采集样本数据的方法。包括avg、count、sum、min、max、count_distinct、user_defined、table_count、table_size、table_dt_load_count、table_dt_refuseload_count、null_value、null_value/table_count、(table_count-count_distinct)/table_count、table_count-count_distinct等。', + 'type' => 'string', + 'example' => 'count_distinct', + ], + 'LowerValue' => [ + 'description' => '预测结果的下限。根据您设置的阈值自动生成。', + 'type' => 'number', + 'format' => 'float', + 'example' => '2344', + ], + 'EntityId' => [ + 'description' => '分区表达式ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '15432322', + ], + 'WhereCondition' => [ + 'description' => '校验任务使用的规则过滤条件。', + 'type' => 'string', + 'example' => 'id>0', + ], + 'ExpectValue' => [ + 'description' => '期望值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '200', + ], + 'TemplateId' => [ + 'description' => '使用的校验模板的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + 'TaskId' => [ + 'description' => '校验任务的ID。', + 'type' => 'string', + 'example' => '16008552981681a0d6****', + ], + 'Id' => [ + 'description' => '主键ID。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '121212121', + ], + 'ReferenceValue' => [ + 'description' => '历史样本值。', + 'type' => 'array', + 'items' => [ + 'description' => '校验结果', + 'type' => 'object', + 'properties' => [ + 'DiscreteProperty' => [ + 'description' => '通过group by分组后的样本字段取值。例如group by性别字段,则DiscreteProperty为男生、女生和null。', + 'type' => 'string', + 'example' => '0', + ], + 'Value' => [ + 'description' => '校验值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '19', + ], + 'BizDate' => [ + 'description' => '业务日期。如果被校验的业务主体为离线数据,则业务日期通常为执行校验操作的前一天。', + 'type' => 'string', + 'example' => '2020-12-03', + ], + 'SingleCheckResult' => [ + 'description' => '校验结果。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'Threshold' => [ + 'description' => '阈值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.5', + ], + ], + ], + ], + 'SampleValue' => [ + 'description' => '当前使用的样本。', + 'type' => 'array', + 'items' => [ + 'description' => '校验结果', + 'type' => 'object', + 'properties' => [ + 'DiscreteProperty' => [ + 'description' => '通过group by分组后的样本字段取值。例如group by性别字段,则DiscreteProperty为男生、女生和null。', + 'type' => 'string', + 'example' => '0', + ], + 'BizDate' => [ + 'description' => '业务日期。如果被校验的业务主体为离线数据,则业务日期通常为执行校验操作的前一天。', + 'type' => 'string', + 'example' => '2020-12-03', + ], + 'Value' => [ + 'description' => '当前样本值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '19', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"CBA58543-00D4-41****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"401\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 50,\\n \\"RuleChecks\\": [\\n {\\n \\"BlockType\\": 0,\\n \\"WarningThreshold\\": 0.1,\\n \\"Property\\": \\"type\\",\\n \\"TableName\\": \\"dual\\",\\n \\"Comment\\": \\"The description of the rule.\\",\\n \\"CheckResultStatus\\": 0,\\n \\"TemplateName\\": \\"Expected value verification\\",\\n \\"CheckerName\\": \\"fulx\\",\\n \\"RuleId\\": 123123232,\\n \\"FixedCheck\\": false,\\n \\"Op\\": \\">\\",\\n \\"UpperValue\\": 25555,\\n \\"ActualExpression\\": \\"ds=20200912\\",\\n \\"ExternalId\\": \\"1112323123\\",\\n \\"TimeCost\\": \\"202\\",\\n \\"Trend\\": \\"abs\\",\\n \\"ExternalType\\": \\"CWF2\\",\\n \\"BizDate\\": 1600704000000,\\n \\"CheckResult\\": 0,\\n \\"ResultString\\": \\"test\\",\\n \\"MatchExpression\\": \\"ds=$[yyyymmdd]\\",\\n \\"CheckerType\\": 1,\\n \\"ProjectName\\": \\"autotest\\",\\n \\"BeginTime\\": 1600704000000,\\n \\"DateType\\": \\"YMD\\",\\n \\"CriticalThreshold\\": 0.5,\\n \\"IsPrediction\\": true,\\n \\"RuleName\\": \\"The name of the rule.\\",\\n \\"CheckerId\\": 7,\\n \\"DiscreteCheck\\": true,\\n \\"EndTime\\": 1600704000000,\\n \\"MethodName\\": \\"count_distinct\\",\\n \\"LowerValue\\": 2344,\\n \\"EntityId\\": 15432322,\\n \\"WhereCondition\\": \\"id>0\\",\\n \\"ExpectValue\\": 200,\\n \\"TemplateId\\": 5,\\n \\"TaskId\\": \\"16008552981681a0d6****\\",\\n \\"Id\\": 121212121,\\n \\"ReferenceValue\\": [\\n {\\n \\"DiscreteProperty\\": \\"0\\",\\n \\"Value\\": 19,\\n \\"BizDate\\": \\"2020-12-03\\",\\n \\"SingleCheckResult\\": 0,\\n \\"Threshold\\": 0.5\\n }\\n ],\\n \\"SampleValue\\": [\\n {\\n \\"DiscreteProperty\\": \\"0\\",\\n \\"BizDate\\": \\"2020-12-03\\",\\n \\"Value\\": 19\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n You have no permission.\\n CBA58543-00D4-41****\\n true\\n 401\\n \\n 1\\n 10\\n 50\\n \\n 0\\n 0.1\\n type\\n dual\\n 规则的描述信息。\\n 0\\n 字段唯一值个数期望值校验\\n fulx\\n 123123232\\n false\\n >\\n 25555\\n ds=20200912\\n 1112323123\\n 202\\n abs\\n CWF2\\n 1600704000000\\n 0\\n test\\n ds=$[yyyymmdd]\\n 1\\n autotest\\n 1600704000000\\n YMD\\n 0.5\\n true\\n 规则的名称。\\n 7\\n true\\n 1600704000000\\n count_distinct\\n 2344\\n 15432322\\n id>0\\n 200\\n 5\\n 16008552981681a0d6****\\n 121212121\\n \\n 0\\n 19\\n 2020-12-03\\n 0\\n 0.5\\n \\n \\n 0\\n 2020-12-03\\n 19\\n \\n \\n \\n","errorExample":""}]', + 'title' => '根据分区表达式查询校验历史结果', + 'summary' => '调用ListQualityResultsByEntity,根据分区表达式查询历史校验结果。', + 'description' => '****', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListQualityResultsByRule' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'RuleId', + 'in' => 'formData', + 'schema' => [ + 'description' => '使用的校验规则ID。您可以使用该规则ID与分区表达式等信息进行联合查询。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '152322134', + ], + ], + [ + 'name' => 'StartDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期起始时间,格式为yyyy-MM-dd HH:mm:ss。'."\n" + ."\n" + .'该参数与EndDate配合使用,二者所取的时间区间不能大于7天。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-09-20 00:00:00', + ], + ], + [ + 'name' => 'EndDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期截止时间,格式为yyyy-MM-dd HH:mm:ss。'."\n" + ."\n" + .'该参数与StartDate配合使用,二者所取的时间区间不能大于7天。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-09-22 00:00:00', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大20条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '20', + 'minimum' => '1', + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要进行数据质量校验的引擎或者数据源名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'autotest', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks项目空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '123456', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '校验结果', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'You have no permission.', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'CBA58543-00D4-41****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '401', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '校验结果的顶层结构体。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '数据的总记录数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '200', + ], + 'RuleChecks' => [ + 'description' => '校验结果的列表。', + 'type' => 'array', + 'items' => [ + 'description' => '校验结果', + 'type' => 'object', + 'properties' => [ + 'BlockType' => [ + 'description' => '校验规则的强弱。强弱表示规则的重要程度。取值如下:'."\n" + .'- 1,表示强规则。'."\n" + .'- 0,表示弱规则。'."\n" + .'您可以根据实际需求设置重要的规则为强规则。如果使用强规则并触发了红色告警,则会阻塞调度任务。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'WarningThreshold' => [ + 'description' => '橙色阈值。表示与样本预期的偏离程度,您可以根据业务需求自定义该阈值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.1', + ], + 'Property' => [ + 'description' => '规则属性的字段,即被校验数据源表的column名称。', + 'type' => 'string', + 'example' => 'type', + ], + 'TableName' => [ + 'description' => '进行校验的表名称。', + 'type' => 'string', + 'example' => 'dual', + ], + 'Comment' => [ + 'description' => '校验规则的描述。', + 'type' => 'string', + 'example' => 'The description of the rule.', + ], + 'CheckResultStatus' => [ + 'description' => '校验结果状态。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'TemplateName' => [ + 'description' => '使用的校验模板的名称。', + 'type' => 'string', + 'example' => 'Expected value verification', + ], + 'CheckerName' => [ + 'description' => '校验器的名称。', + 'type' => 'string', + 'example' => 'fulx', + ], + 'RuleId' => [ + 'description' => '规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123421', + ], + 'FixedCheck' => [ + 'description' => '是否为固定值校验。取值如下:'."\n" + .'- true:是固定值校验。'."\n" + .'- false:非固定值校验。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Op' => [ + 'description' => '比较符。', + 'type' => 'string', + 'example' => '>', + ], + 'UpperValue' => [ + 'description' => '预测上限。设置阈值后自动生成。', + 'type' => 'number', + 'format' => 'float', + 'example' => '22200', + ], + 'ActualExpression' => [ + 'description' => '被校验的数据源表的实际分区。', + 'type' => 'string', + 'example' => 'ds=20200925', + ], + 'ExternalId' => [ + 'description' => '调度任务的节点ID。', + 'type' => 'string', + 'example' => '123112232', + ], + 'TimeCost' => [ + 'description' => '执行校验任务花费的时间。', + 'type' => 'string', + 'example' => '10', + ], + 'Trend' => [ + 'description' => '校验结果的趋势。', + 'type' => 'string', + 'example' => 'up', + ], + 'ExternalType' => [ + 'description' => '调度系统的类型。目前仅支持CWF。', + 'type' => 'string', + 'example' => 'CWF2', + ], + 'BizDate' => [ + 'description' => '业务日期。如果被校验的业务主体为离线数据,则业务日期通常为执行校验操作的前一天。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600704000000', + ], + 'CheckResult' => [ + 'description' => '校验结果。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'ResultString' => [ + 'description' => '校验结果的字符串形式。', + 'type' => 'string', + 'example' => 'ResultString', + ], + 'MatchExpression' => [ + 'description' => '分区表达式。', + 'type' => 'string', + 'example' => 'ds=$[yyyymmdd]', + ], + 'CheckerType' => [ + 'description' => '校验器的类型。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectName' => [ + 'description' => '需要进行数据质量校验的引擎或者数据源名称。', + 'type' => 'string', + 'example' => 'autotest', + ], + 'BeginTime' => [ + 'description' => '执行校验操作的开始时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600704000000', + ], + 'DateType' => [ + 'description' => '调度周期的类型。通常为YMD,即年任务、月任务、天任务。', + 'type' => 'string', + 'example' => 'YMD', + ], + 'CriticalThreshold' => [ + 'description' => '红色阈值。表示与样本预期的偏离程度。您可以根据业务需求自定义该阈值。使用强规则并触发红色阈值,会阻塞调度任务。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.6', + ], + 'IsPrediction' => [ + 'description' => '是否为预测的结果。取值如下:'."\n" + .'- true:是预测的结果。'."\n" + .'- false:不是预测的结果。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'RuleName' => [ + 'description' => '规则的名称。', + 'type' => 'string', + 'example' => 'The name of the rule.', + ], + 'CheckerId' => [ + 'description' => '校验器的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '7', + ], + 'DiscreteCheck' => [ + 'description' => '是否为离散校验。取值如下:'."\n" + .'- true:是离散校验。'."\n" + .'- false:非离散校验。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'EndTime' => [ + 'description' => '查询校验结果的截止时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600704000000', + ], + 'MethodName' => [ + 'description' => '采集样本数据的方法。包括avg、count、sum、min、max、count_distinct、user_defined、table_count、table_size、table_dt_load_count、table_dt_refuseload_count、null_value、null_value/table_count、(table_count-count_distinct)/table_count、table_count-count_distinct等。', + 'type' => 'string', + 'example' => 'max', + ], + 'LowerValue' => [ + 'description' => '预测下限。根据您设置的阈值自动生成。', + 'type' => 'number', + 'format' => 'float', + 'example' => '2344', + ], + 'EntityId' => [ + 'description' => '分区表达式ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '14534343', + ], + 'WhereCondition' => [ + 'description' => '校验任务使用的过滤条件。', + 'type' => 'string', + 'example' => 'type!=\'type2\'', + ], + 'ExpectValue' => [ + 'description' => '期望值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '90', + ], + 'TemplateId' => [ + 'description' => '使用的校验模板的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + 'TaskId' => [ + 'description' => '校验任务的ID。', + 'type' => 'string', + 'example' => '16008552981681a0d6****', + ], + 'Id' => [ + 'description' => '主键ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2231123', + ], + 'ReferenceValue' => [ + 'description' => '历史样本值。', + 'type' => 'array', + 'items' => [ + 'description' => '校验结果', + 'type' => 'object', + 'properties' => [ + 'DiscreteProperty' => [ + 'description' => '通过group by分组后的样本字段取值。例如group by性别字段,则DiscreteProperty为男生、女生和null。', + 'type' => 'string', + 'example' => 'type1', + ], + 'Value' => [ + 'description' => '样本值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '20', + ], + 'BizDate' => [ + 'description' => '业务日期。如果被校验的业务主体为离线数据,则业务日期通常为执行校验操作的前一天。', + 'type' => 'string', + 'example' => '1600704000000', + ], + 'SingleCheckResult' => [ + 'description' => '校验结果的字符串。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'Threshold' => [ + 'description' => '阈值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.2', + ], + ], + ], + ], + 'SampleValue' => [ + 'description' => '当前使用的样本。', + 'type' => 'array', + 'items' => [ + 'description' => '校验结果', + 'type' => 'object', + 'properties' => [ + 'DiscreteProperty' => [ + 'description' => '通过group by分组后的样本字段取值。例如group by性别字段,则DiscreteProperty为男生、女生和null。', + 'type' => 'string', + 'example' => 'type2', + ], + 'BizDate' => [ + 'description' => '业务日期。如果被校验的业务主体为离线数据,则业务日期通常为执行校验操作的前一天。', + 'type' => 'string', + 'example' => '1600704000000', + ], + 'Value' => [ + 'description' => '样本值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '23', + ], + ], + ], + ], + 'Open' => [ + 'description' => '规则是否开启。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"You have no permission.\\",\\n \\"RequestId\\": \\"CBA58543-00D4-41****\\",\\n \\"ErrorCode\\": \\"401\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 200,\\n \\"RuleChecks\\": [\\n {\\n \\"BlockType\\": 1,\\n \\"WarningThreshold\\": 0.1,\\n \\"Property\\": \\"type\\",\\n \\"TableName\\": \\"dual\\",\\n \\"Comment\\": \\"The description of the rule.\\",\\n \\"CheckResultStatus\\": 2,\\n \\"TemplateName\\": \\"Expected value verification\\",\\n \\"CheckerName\\": \\"fulx\\",\\n \\"RuleId\\": 123421,\\n \\"FixedCheck\\": false,\\n \\"Op\\": \\">\\",\\n \\"UpperValue\\": 22200,\\n \\"ActualExpression\\": \\"ds=20200925\\",\\n \\"ExternalId\\": \\"123112232\\",\\n \\"TimeCost\\": \\"10\\",\\n \\"Trend\\": \\"up\\",\\n \\"ExternalType\\": \\"CWF2\\",\\n \\"BizDate\\": 1600704000000,\\n \\"CheckResult\\": 2,\\n \\"ResultString\\": \\"ResultString\\",\\n \\"MatchExpression\\": \\"ds=$[yyyymmdd]\\",\\n \\"CheckerType\\": 0,\\n \\"ProjectName\\": \\"autotest\\",\\n \\"BeginTime\\": 1600704000000,\\n \\"DateType\\": \\"YMD\\",\\n \\"CriticalThreshold\\": 0.6,\\n \\"IsPrediction\\": false,\\n \\"RuleName\\": \\"The name of the rule.\\",\\n \\"CheckerId\\": 7,\\n \\"DiscreteCheck\\": true,\\n \\"EndTime\\": 1600704000000,\\n \\"MethodName\\": \\"max\\",\\n \\"LowerValue\\": 2344,\\n \\"EntityId\\": 14534343,\\n \\"WhereCondition\\": \\"type!=\'type2\'\\",\\n \\"ExpectValue\\": 90,\\n \\"TemplateId\\": 5,\\n \\"TaskId\\": \\"16008552981681a0d6****\\",\\n \\"Id\\": 2231123,\\n \\"ReferenceValue\\": [\\n {\\n \\"DiscreteProperty\\": \\"type1\\",\\n \\"Value\\": 20,\\n \\"BizDate\\": \\"1600704000000\\",\\n \\"SingleCheckResult\\": 2,\\n \\"Threshold\\": 0.2\\n }\\n ],\\n \\"SampleValue\\": [\\n {\\n \\"DiscreteProperty\\": \\"type2\\",\\n \\"BizDate\\": \\"1600704000000\\",\\n \\"Value\\": 23\\n }\\n ],\\n \\"Open\\": true\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n CBA58543-00D4-41****\\n \\n 200\\n 10\\n 1\\n \\n &gt;\\n 16008552981681a0d6****\\n 1600704000000\\n true\\n fulx\\n 90\\n autotest\\n 123421\\n 0.1\\n type!=\'type2\'\\n 1600704000000\\n 2\\n ds=$[yyyymmdd]\\n 22200\\n false\\n 2\\n 字段唯一值个数期望值校验\\n 10\\n false\\n max\\n ResultString\\n type\\n YMD\\n 1600704000000\\n 5\\n 这里是规则名称\\n 这里是规则描述信息\\n 0.6\\n 123112232\\n up\\n 0\\n CWF2\\n 7\\n 14534343\\n dual\\n 1\\n 2231123\\n ds=20200925\\n 2344\\n \\n \\n \\n 2\\n 20\\n 1600704000000\\n type1\\n 0.2\\n \\n \\n 23\\n 1600704000000\\n type2\\n \\n \\n 2\\n 20\\n 1600704000000\\n type1\\n 0.2\\n \\n \\n 23\\n 1600704000000\\n type2\\n \\n \\n \\n","errorExample":""}]', + 'title' => '校验数据源质量', + 'summary' => '根据校验规则校验数据源的质量,并查询校验结果。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateDataServiceApi' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78179', + 'abilityTreeNodes' => [ + 'FEATUREdideZZ63WZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10001', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'ApiName', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的名称,支持汉字、英文、数字和下划线(_),且只能以英文和汉字开头,4~50个字符。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'Test API name'."\n", + ], + ], + [ + 'name' => 'GroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'Business process ID', + ], + ], + [ + 'name' => 'ApiMode', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的类型,可选枚举值包括0(向导API)、1(脚本API)和2(注册API)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'RequestMethod', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的请求方式,可选枚举值包括0(GET)、1(POST)、2(PUT)和3(DELETE)。向导和脚本API支持GET和POST。注册API支持GET、POST、PUT和DELETE。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'ResponseContentType', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'Timeout', + 'in' => 'formData', + 'schema' => [ + 'description' => '超时时间,单位为毫秒(ms),取值范围为(0, 30000]。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'VisibleRange', + 'in' => 'formData', + 'schema' => [ + 'description' => '可见范围,可选枚举值包括0(工作空间)和1(私有)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'Protocols', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的协议,可选枚举值包括0(HTTP)和1(HTTPS)。支持多个值,多个值之间使用英文逗号(,)分隔。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '0,1', + ], + ], + [ + 'name' => 'WizardDetails', + 'in' => 'formData', + 'schema' => [ + 'description' => '向导API的详情,请参见[GetDataServiceApi](~~174013~~)接口wizardDetails字段的JSON String。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{"isPagedResponse":true,"wizardConnection":{"connectionId":122786,"tableName":"person"},"wizardRequestParameters":[{"columnName":"id","defaultValue":"","exampleValue":"1","isRequiredParameter":true,"parameterDataType":2,"parameterDescription":"","parameterName":"id","parameterOperator":0,"parameterPosition":0}],"wizardResponseParameters":[{"columnName":"id","exampleValue":"11","parameterDataType":2,"parameterDescription":"","parameterName":"id"}]}', + ], + ], + [ + 'name' => 'ScriptDetails', + 'in' => 'formData', + 'schema' => [ + 'description' => '脚本API的详情,请参见[GetDataServiceApi](~~174013~~)接口scriptDetails字段的JSON String。', + 'type' => 'string', + 'required' => false, + 'example' => '{"isPagedResponse":false,"script":"select id as id1, name as name1 from person where id=${inputid}","scriptConnection":{"connectionId":122786,"tableName":"person"},"scriptRequestParameters":[{"defaultValue":"","exampleValue":"","isRequiredParameter":true,"parameterDataType":0,"parameterDescription":"","parameterName":"inputid","parameterOperator":0,"parameterPosition":1}],"scriptResponseParameters":[{"exampleValue":"","parameterDataType":0,"parameterDescription":"","parameterName":"id1"},{"exampleValue":"","parameterDataType":0,"parameterDescription":"","parameterName":"name1"}]}', + ], + ], + [ + 'name' => 'RegistrationDetails', + 'in' => 'formData', + 'schema' => [ + 'description' => '注册API的详情,请参见[GetDataServiceApi](~~174013~~)接口registrationDetails字段的JSON String。', + 'type' => 'string', + 'required' => false, + 'example' => '{"failedResultSample":"fail","registrationErrorCodes":[{"errorCode":"e1","errorMessage":"msg1","errorSolution":"sol1"},{"errorCode":"e2","errorMessage":"msg2","errorSolution":"sol2"}],"registrationRequestParameters":[{"columnName":"","defaultValue":"","exampleValue":"","isRequiredParameter":true,"parameterDataType":0,"parameterDescription":"","parameterName":"id","parameterOperator":0,"parameterPosition":1},{"columnName":"","defaultValue":"xx","exampleValue":"","isRequiredParameter":true,"parameterDataType":0,"parameterDescription":"","parameterName":"cc","parameterOperator":2,"parameterPosition":2}],"serviceContentType":1,"serviceHost":"http://www.baidu.com","servicePath":"/[uid]","serviceRequestBodyDescription":"body","successfulResultSample":"success"}', + ], + ], + [ + 'name' => 'ApiPath', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的路径,支持英文、数字、下划线(_)和连字符(-),且只能以斜线(/)开头,不能超过200个字符。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '/test/1', + ], + ], + [ + 'name' => 'ApiDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的描述信息。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'Test API description', + ], + ], + [ + 'name' => 'FolderId', + 'in' => 'formData', + 'schema' => [ + 'description' => '创建API的目标文件夹ID,业务流程下根文件夹ID等于0,用户自建文件夹ID大于0。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '0', + 'example' => '0', + ], + ], + [ + 'name' => 'SqlMode', + 'in' => 'formData', + 'schema' => [ + 'description' => '- 0-基础模式。'."\n" + ."\n" + .'- 1-mybatis'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '独享资源组ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '3242432423', + ], + ], + [ + 'name' => 'RequestContentType', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求数据类型。'."\n" + ."\n" + .'- 0:xml'."\n" + ."\n" + .'- 1:json'."\n" + ."\n" + .'- 2:form', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'enumValueTitles' => [], + 'example' => '0', + 'enum' => [ + '0', + '1', + '2', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '创建的API ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 100003,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 100003\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '创建数据服务API', + 'summary' => '调用CreateDataServiceApi创建数据服务API。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'PublishDataServiceApi' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78339', + 'abilityTreeNodes' => [ + 'FEATUREdideZZ63WZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10002', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '发布是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '发布数据服务API', + 'summary' => '调用PublishDataServiceApi发布数据服务API。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteDataServiceApi' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10002', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => '数据服务API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '删除是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '删除数据服务API', + 'summary' => '调用DeleteDataServiceApi删除数据服务API。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListDataServiceApis' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78301', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码,从1开始,默认值为1。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大50条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '50', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiNameKeyword', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API名称的关键词,过滤得到API名称包含该关键词的API。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'My API name', + ], + ], + [ + 'name' => 'ApiPathKeyword', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API路径的关键词,过滤得到API路径包含该关键词的API。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '/test/', + ], + ], + [ + 'name' => 'CreatorId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API创建者的阿里云ID,过滤得到该用户创建的API。', + 'type' => 'string', + 'required' => false, + 'example' => '123456', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '返回开发中API的信息。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码,和请求中的PageNumber一致。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Apis' => [ + 'description' => 'API开发态信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'Timeout' => [ + 'description' => '超时时间,单位为毫秒(ms)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10000', + ], + 'Status' => [ + 'description' => 'API的状态,可选枚举值包括0(未发布)和1(已发布)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ApiId' => [ + 'description' => 'API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + 'ApiMode' => [ + 'description' => 'API的类型,可选枚举值包括0(向导API)、1(脚本API)和2(注册API)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'ResponseContentType' => [ + 'description' => 'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'CreatorId' => [ + 'description' => '创建人的阿里云ID。', + 'type' => 'string', + 'example' => '1234567', + ], + 'VisibleRange' => [ + 'description' => '可见范围,可选枚举值包括0(工作空间)和1(私有)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ModifiedTime' => [ + 'description' => '最新修改时间。'."\n", + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'OperatorId' => [ + 'description' => '最新编辑人的阿里云ID。', + 'type' => 'string', + 'example' => '2345678', + ], + 'GroupId' => [ + 'description' => '分组ID。', + 'type' => 'string', + 'example' => 'abcde123456789', + ], + 'Description' => [ + 'description' => 'API的描述信息。', + 'type' => 'string', + 'example' => 'Test API description', + ], + 'FolderId' => [ + 'description' => '文件夹ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'RequestMethod' => [ + 'description' => 'API的请求方式,可选枚举值包括0(GET)、1(POST)、2(PUT)和3(DELTE)。向导和脚本API支持GET和POST。注册API支持GET、POST、PUT和DELETE。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'CreatedTime' => [ + 'description' => '创建时间。'."\n", + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'ApiName' => [ + 'description' => 'API的名称。'."\n", + 'type' => 'string', + 'example' => 'My API name', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'ApiPath' => [ + 'description' => 'API的路径。'."\n", + 'type' => 'string', + 'example' => '/test/1', + ], + 'Protocols' => [ + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'description' => 'API的协议,多值列表,可选枚举值包括0(HTTP)和1(HTTPS)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + 'RegistrationDetails' => [ + 'description' => '注册API的详情,只有注册API返回。'."\n", + 'type' => 'object', + 'properties' => [ + 'ServiceHost' => [ + 'description' => '后端服务地址。'."\n", + 'type' => 'string', + 'example' => 'http://example.aliyundoc.com', + ], + 'ServiceContentType' => [ + 'description' => 'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ServicePath' => [ + 'description' => '后端服务路径。'."\n", + 'type' => 'string', + 'example' => '/index', + ], + 'SuccessfulResultSample' => [ + 'description' => '正常返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": true}', + ], + 'FailedResultSample' => [ + 'description' => '错误返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": false}', + ], + 'ServiceRequestBodyDescription' => [ + 'description' => '后端请求body内容的描述信息。'."\n", + 'type' => 'string', + 'example' => '{"abc":1}', + ], + 'RegistrationErrorCodes' => [ + 'description' => '注册API的错误码列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'fail to call', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => '1001', + ], + 'ErrorSolution' => [ + 'description' => '错误解决方案。'."\n", + 'type' => 'string', + 'example' => 'retry', + ], + ], + ], + ], + 'RegistrationRequestParameters' => [ + 'description' => '注册API的请求参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。'."\n", + 'type' => 'string', + 'example' => 'column1', + ], + 'ParameterName' => [ + 'description' => '参数的名称。'."\n", + 'type' => 'string', + 'example' => 'name1', + ], + 'ParameterPosition' => [ + 'description' => '参数的位置,可选枚举值包括0(Path)、1(Query)、2(Head)和3(Body)。向导和脚本API仅支持Query。注册API中的GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head和Body。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述的信息。', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值。'."\n", + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值包括0(Equal)、1(Like)、2(Const)和3(In)。向导模式API支持Equal、Like和In,脚本模式API支持Equal,注册API支持Equal和Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDataType' => [ + 'description' => "\n" + .'数据类型,可选枚举值:'."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。', + 'type' => 'string', + 'example' => 'example1', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + 'ScriptDetails' => [ + 'description' => '脚本API的详情,只有脚本API返回。'."\n", + 'type' => 'object', + 'properties' => [ + 'Script' => [ + 'description' => 'SQL脚本。'."\n", + 'type' => 'string', + 'example' => 'select a from t', + ], + 'IsPagedResponse' => [ + 'description' => '返回是否分页。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ScriptRequestParameters' => [ + 'description' => '脚本API的请求参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。'."\n", + 'type' => 'string', + 'example' => 'column1', + ], + 'ParameterName' => [ + 'description' => '参数名称', + 'type' => 'string', + 'example' => 'param1', + ], + 'ParameterPosition' => [ + 'description' => '参数位置,可选枚举值有:'."\n" + ."\n" + .'- 0:Path'."\n" + .'- 1:Query'."\n" + .'- 2:Head'."\n" + .'- 3:Body'."\n" + ."\n" + .'向导和脚本API,只支持Query;注册API,GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head、Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值', + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值有:'."\n" + ."\n" + .'- 0:Equal'."\n" + .'- 1:Like'."\n" + .'- 2:Const'."\n" + .'- 3:In'."\n" + ."\n" + .'向导API支持Equal、Like、In;脚本API支持Equal;注册API支持Equal、Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值'."\n", + 'type' => 'string', + 'example' => 'example1', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'ScriptResponseParameters' => [ + 'description' => '脚本API的返回参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ParameterDescription' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => 'description2', + ], + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式有'."\n", + 'type' => 'string', + 'example' => 'column2', + ], + 'ParameterName' => [ + 'description' => '参数名称', + 'type' => 'string', + 'example' => 'param2', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值'."\n", + 'type' => 'string', + 'example' => 'example2', + ], + ], + ], + ], + 'ScriptConnection' => [ + 'description' => '脚本API的数据源信息。'."\n", + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '数据源表的名称。'."\n", + 'type' => 'string', + 'example' => 't', + ], + 'ConnectionId' => [ + 'description' => '数据源ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + 'WizardDetails' => [ + 'description' => '向导API的详情,只有向导API返回。'."\n", + 'type' => 'object', + 'properties' => [ + 'IsPagedResponse' => [ + 'description' => '返回是否分页。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'WizardRequestParameters' => [ + 'description' => '向导API的请求参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。'."\n", + 'type' => 'string', + 'example' => 'column1', + ], + 'ParameterName' => [ + 'description' => '参数名称。'."\n", + 'type' => 'string', + 'example' => 'param1', + ], + 'ParameterPosition' => [ + 'description' => '参数的位置,可选枚举值包括0(Path)、1(Query)、2(Head)和3(Body)。向导和脚本API仅支持Query。注册API中的GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head和Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述信息。'."\n", + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值。'."\n", + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值包括0(Equal)、1(Like)、2(Const)和3(In)。向导API支持Equal、Like和In,脚本API支持Equal,注册API支持Equal和Const。'."\n" + ."\n\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。'."\n", + 'type' => 'string', + 'example' => 'example1', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'WizardResponseParameters' => [ + 'description' => '向导模式的返回参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description2', + ], + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。'."\n", + 'type' => 'string', + 'example' => 'column2', + ], + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'param2', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。'."\n", + 'type' => 'string', + 'example' => 'example2', + ], + ], + ], + ], + 'WizardConnection' => [ + 'description' => '向导API的数据源信息。'."\n", + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '数据源表的名称。'."\n", + 'type' => 'string', + 'example' => 't', + ], + 'ConnectionId' => [ + 'description' => '数据源ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Apis\\": [\\n {\\n \\"Timeout\\": 10000,\\n \\"Status\\": 0,\\n \\"ApiId\\": 10002,\\n \\"ApiMode\\": 0,\\n \\"ProjectId\\": 10000,\\n \\"ResponseContentType\\": 0,\\n \\"CreatorId\\": \\"1234567\\",\\n \\"VisibleRange\\": 0,\\n \\"ModifiedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"OperatorId\\": \\"2345678\\",\\n \\"GroupId\\": \\"abcde123456789\\",\\n \\"Description\\": \\"Test API description\\",\\n \\"FolderId\\": 0,\\n \\"RequestMethod\\": 0,\\n \\"CreatedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"ApiName\\": \\"My API name\\",\\n \\"TenantId\\": 10000,\\n \\"ApiPath\\": \\"/test/1\\",\\n \\"Protocols\\": [\\n 0\\n ],\\n \\"RegistrationDetails\\": {\\n \\"ServiceHost\\": \\"http://example.aliyundoc.com\\",\\n \\"ServiceContentType\\": 0,\\n \\"ServicePath\\": \\"/index\\",\\n \\"SuccessfulResultSample\\": \\"{\\\\\\"success\\\\\\": true}\\",\\n \\"FailedResultSample\\": \\"{\\\\\\"success\\\\\\": false}\\",\\n \\"ServiceRequestBodyDescription\\": \\"{\\\\\\"abc\\\\\\":1}\\",\\n \\"RegistrationErrorCodes\\": [\\n {\\n \\"ErrorMessage\\": \\"fail to call\\",\\n \\"ErrorCode\\": \\"1001\\",\\n \\"ErrorSolution\\": \\"retry\\"\\n }\\n ],\\n \\"RegistrationRequestParameters\\": [\\n {\\n \\"ColumnName\\": \\"column1\\",\\n \\"ParameterName\\": \\"name1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsRequiredParameter\\": true\\n }\\n ]\\n },\\n \\"ScriptDetails\\": {\\n \\"Script\\": \\"select a from t\\",\\n \\"IsPagedResponse\\": true,\\n \\"ScriptRequestParameters\\": [\\n {\\n \\"ColumnName\\": \\"column1\\",\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsRequiredParameter\\": true\\n }\\n ],\\n \\"ScriptResponseParameters\\": [\\n {\\n \\"ParameterDescription\\": \\"description2\\",\\n \\"ColumnName\\": \\"column2\\",\\n \\"ParameterName\\": \\"param2\\",\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example2\\"\\n }\\n ],\\n \\"ScriptConnection\\": {\\n \\"TableName\\": \\"t\\",\\n \\"ConnectionId\\": 123\\n }\\n },\\n \\"WizardDetails\\": {\\n \\"IsPagedResponse\\": true,\\n \\"WizardRequestParameters\\": [\\n {\\n \\"ColumnName\\": \\"column1\\",\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsRequiredParameter\\": true\\n }\\n ],\\n \\"WizardResponseParameters\\": [\\n {\\n \\"ParameterDescription\\": \\"description2\\",\\n \\"ColumnName\\": \\"column2\\",\\n \\"ParameterName\\": \\"param2\\",\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example2\\"\\n }\\n ],\\n \\"WizardConnection\\": {\\n \\"TableName\\": \\"t\\",\\n \\"ConnectionId\\": 123\\n }\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 1\\n 10\\n 100\\n \\n 10000\\n 0\\n 10002\\n 0\\n 10000\\n 0\\n 1234567\\n 0\\n 2020-06-23T00:21:01+0800\\n 2345678\\n abcde123456789\\n 测试API描述\\n 0\\n 0\\n 2020-06-23T00:21:01+0800\\n 我的API名称\\n 10000\\n /test/1\\n 0\\n \\n http://example.aliyundoc.com\\n 0\\n /index\\n {\\"success\\": true}\\n {\\"success\\": false}\\n {\\"abc\\":1}\\n \\n fail to call\\n 1001\\n retry\\n \\n \\n column1\\n name1\\n 0\\n description1\\n default1\\n 0\\n 0\\n example1\\n true\\n \\n \\n \\n \\n true\\n \\n column1\\n param1\\n 0\\n description1\\n default1\\n 0\\n 0\\n example1\\n true\\n \\n \\n description2\\n column2\\n param2\\n 0\\n example2\\n \\n \\n t\\n 123\\n \\n \\n \\n true\\n \\n column1\\n param1\\n 0\\n description1\\n default1\\n 0\\n 0\\n example1\\n true\\n \\n \\n description2\\n column2\\n param2\\n 0\\n example2\\n \\n \\n t\\n 123\\n \\n \\n \\n \\n","errorExample":""}]', + 'title' => '获取数据服务API开发中的信息列表', + 'summary' => '调用ListDataServiceApis获取数据服务API开发中的信息列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' 不同类型API的详情信息通过不同字段返回。向导API使用WizardDetails字段,脚本API使用ScriptDetails字段,注册API使用RegistrationDetails字段。'."\n", + 'extraInfo' => ' ', + ], + 'GetDataServiceApi' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78235', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10002', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => '数据服务API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Timeout' => [ + 'description' => '超时时间,单位为毫秒(ms)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10000', + ], + 'Status' => [ + 'description' => 'API的状态,可选枚举值包括0(未发布)和1(已发布)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ApiId' => [ + 'description' => '数据服务API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'ApiMode' => [ + 'description' => 'API的类型,可选枚举值包括0(向导API)、1(脚本API)和2(注册API)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'ResponseContentType' => [ + 'description' => 'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'CreatorId' => [ + 'description' => '创建人的阿里云ID。', + 'type' => 'string', + 'example' => '1234567', + ], + 'VisibleRange' => [ + 'description' => '可见范围,可选枚举值包括0(工作空间)和1(私有)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ModifiedTime' => [ + 'description' => '最新修改时间。', + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'OperatorId' => [ + 'description' => '最新编辑人的阿里云ID。', + 'type' => 'string', + 'example' => '2345678', + ], + 'GroupId' => [ + 'description' => '分组ID。', + 'type' => 'string', + 'example' => 'ab123****', + ], + 'Description' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => '测试API描述', + ], + 'FolderId' => [ + 'description' => '文件夹ID', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'RequestMethod' => [ + 'description' => 'API的请求方式,可选枚举值包括0(GET)、1(POST)、2(PUT)和3(DELETE)。向导和脚本API支持GET和POST。注册API支持GET、POST、PUT和DELETE。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'CreatedTime' => [ + 'description' => '创建时间。', + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'ApiName' => [ + 'description' => 'API的名称。', + 'type' => 'string', + 'example' => '测试API名称', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + 'ApiPath' => [ + 'description' => 'API的路径。', + 'type' => 'string', + 'example' => '/test/1', + ], + 'Protocols' => [ + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'description' => 'API协议,多值列表,可选枚举值包括0(HTTP)和1(HTTPS)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + 'RegistrationDetails' => [ + 'description' => '注册API的详情,只有注册API返回。', + 'type' => 'object', + 'properties' => [ + 'ServiceHost' => [ + 'description' => '后端服务地址', + 'type' => 'string', + 'example' => 'http://example.aliyundoc.com', + ], + 'ServiceContentType' => [ + 'description' => 'API返回数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:JSON'."\n" + .'- 1:XML'."\n" + ."\n" + .'向导和脚本API只支持JSON;注册API支持JSON和XML。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ServicePath' => [ + 'description' => '后端服务路径', + 'type' => 'string', + 'example' => '/index', + ], + 'SuccessfulResultSample' => [ + 'description' => '正常返回示例', + 'type' => 'string', + 'example' => '{"success": true}', + ], + 'FailedResultSample' => [ + 'description' => '错误返回示例。', + 'type' => 'string', + 'example' => '{"success": false}', + ], + 'ServiceRequestBodyDescription' => [ + 'description' => '后端请求body内容描述', + 'type' => 'string', + 'example' => '{"abc":1}', + ], + 'RegistrationErrorCodes' => [ + 'description' => '注册API的错误码列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'fail to call', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1001', + ], + 'ErrorSolution' => [ + 'description' => '错误解决方案。', + 'type' => 'string', + 'example' => 'retry', + ], + ], + ], + ], + 'RegistrationRequestParameters' => [ + 'description' => '注册API的请求参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。', + 'type' => 'string', + 'example' => 'column1', + ], + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'name1', + ], + 'ParameterPosition' => [ + 'description' => '参数位置,可选枚举值有:'."\n" + ."\n" + .'- 0:Path'."\n" + .'- 1:Query'."\n" + .'- 2:Head'."\n" + .'- 3:Body'."\n" + ."\n" + .'向导和脚本API,只支持Query;注册API,GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head、Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值。', + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值有:'."\n" + ."\n" + .'- 0:Equal'."\n" + .'- 1:Like'."\n" + .'- 2:Const'."\n" + .'- 3:In'."\n" + ."\n" + .'向导API支持Equal、Like、In;脚本API支持Equal;注册API支持Equal、Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。', + 'type' => 'string', + 'example' => 'example1', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + 'ScriptDetails' => [ + 'description' => '脚本API的详情,只有脚本API返回。', + 'type' => 'object', + 'properties' => [ + 'Script' => [ + 'description' => 'SQL脚本。', + 'type' => 'string', + 'example' => 'select a from t', + ], + 'IsPagedResponse' => [ + 'description' => '返回是否分页。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ScriptRequestParameters' => [ + 'description' => '脚本API的请求参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。', + 'type' => 'string', + 'example' => 'column1', + ], + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'param1', + ], + 'ParameterPosition' => [ + 'description' => '参数的位置,可选枚举值包括0(Path)、1(Query)、2(Head)和3(Body)。向导和脚本API仅支持Query。注册API中的GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head和Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值。', + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值包括0(Equal)、1(Like)、2(Const)和3(In)。向导模式API支持Equal、Like和In,脚本模式API支持Equal,注册API支持Equal和Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。', + 'type' => 'string', + 'example' => 'example1', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'ScriptResponseParameters' => [ + 'description' => '脚本API的返回参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description2', + ], + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。', + 'type' => 'string', + 'example' => 'column2', + ], + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'param2', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。', + 'type' => 'string', + 'example' => 'example2', + ], + ], + ], + ], + 'ScriptConnection' => [ + 'description' => '脚本API的数据源信息。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '数据源表的名称。', + 'type' => 'string', + 'example' => 't', + ], + 'ConnectionId' => [ + 'description' => '数据源ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + 'WizardDetails' => [ + 'description' => '向导API详情,只有向导API返回。', + 'type' => 'object', + 'properties' => [ + 'IsPagedResponse' => [ + 'description' => '返回是否分页。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'WizardRequestParameters' => [ + 'description' => '向导API的请求参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。', + 'type' => 'string', + 'example' => 'column1', + ], + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'param1', + ], + 'ParameterPosition' => [ + 'description' => '参数的位置,可选枚举值包括0(Path)、1(Query)、2(Head)和3(Body)。向导和脚本API仅支持Query。注册API中的GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head和Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值。', + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值包括0(Equal)、1(Like)、2(Const)和3(In)。向导模式API支持Equal、Like和In,脚本模式API支持Equal,注册API支持Equal和Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。', + 'type' => 'string', + 'example' => 'example1', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'WizardResponseParameters' => [ + 'description' => '向导模式的返回参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description2', + ], + 'ColumnName' => [ + 'description' => '绑定的表字段名称,仅向导模式支持。', + 'type' => 'string', + 'example' => 'column2', + ], + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'param2', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。', + 'type' => 'string', + 'example' => 'example2', + ], + ], + ], + ], + 'WizardConnection' => [ + 'description' => '向导API的数据源信息。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '数据源的表名称。', + 'type' => 'string', + 'example' => 't', + ], + 'ConnectionId' => [ + 'description' => '数据源ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Data\\": {\\n \\"Timeout\\": 10000,\\n \\"Status\\": 0,\\n \\"ApiId\\": 10000,\\n \\"ApiMode\\": 0,\\n \\"ProjectId\\": 10001,\\n \\"ResponseContentType\\": 0,\\n \\"CreatorId\\": \\"1234567\\",\\n \\"VisibleRange\\": 0,\\n \\"ModifiedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"OperatorId\\": \\"2345678\\",\\n \\"GroupId\\": \\"ab123****\\",\\n \\"Description\\": \\"测试API描述\\",\\n \\"FolderId\\": 0,\\n \\"RequestMethod\\": 0,\\n \\"CreatedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"ApiName\\": \\"测试API名称\\",\\n \\"TenantId\\": 10002,\\n \\"ApiPath\\": \\"/test/1\\",\\n \\"Protocols\\": [\\n 0\\n ],\\n \\"RegistrationDetails\\": {\\n \\"ServiceHost\\": \\"http://example.aliyundoc.com\\",\\n \\"ServiceContentType\\": 0,\\n \\"ServicePath\\": \\"/index\\",\\n \\"SuccessfulResultSample\\": \\"{\\\\\\"success\\\\\\": true}\\",\\n \\"FailedResultSample\\": \\"{\\\\\\"success\\\\\\": false}\\",\\n \\"ServiceRequestBodyDescription\\": \\"{\\\\\\"abc\\\\\\":1}\\",\\n \\"RegistrationErrorCodes\\": [\\n {\\n \\"ErrorMessage\\": \\"fail to call\\",\\n \\"ErrorCode\\": \\"1001\\",\\n \\"ErrorSolution\\": \\"retry\\"\\n }\\n ],\\n \\"RegistrationRequestParameters\\": [\\n {\\n \\"ColumnName\\": \\"column1\\",\\n \\"ParameterName\\": \\"name1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsRequiredParameter\\": true\\n }\\n ]\\n },\\n \\"ScriptDetails\\": {\\n \\"Script\\": \\"select a from t\\",\\n \\"IsPagedResponse\\": true,\\n \\"ScriptRequestParameters\\": [\\n {\\n \\"ColumnName\\": \\"column1\\",\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsRequiredParameter\\": true\\n }\\n ],\\n \\"ScriptResponseParameters\\": [\\n {\\n \\"ParameterDescription\\": \\"description2\\",\\n \\"ColumnName\\": \\"column2\\",\\n \\"ParameterName\\": \\"param2\\",\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example2\\"\\n }\\n ],\\n \\"ScriptConnection\\": {\\n \\"TableName\\": \\"t\\",\\n \\"ConnectionId\\": 123\\n }\\n },\\n \\"WizardDetails\\": {\\n \\"IsPagedResponse\\": true,\\n \\"WizardRequestParameters\\": [\\n {\\n \\"ColumnName\\": \\"column1\\",\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsRequiredParameter\\": true\\n }\\n ],\\n \\"WizardResponseParameters\\": [\\n {\\n \\"ParameterDescription\\": \\"description2\\",\\n \\"ColumnName\\": \\"column2\\",\\n \\"ParameterName\\": \\"param2\\",\\n \\"ParameterDataType\\": 0,\\n \\"ExampleValue\\": \\"example2\\"\\n }\\n ],\\n \\"WizardConnection\\": {\\n \\"TableName\\": \\"t\\",\\n \\"ConnectionId\\": 123\\n }\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The specified parameters are invalid.\\n true\\n 1031203110005\\n \\n 10000\\n 0\\n 10000\\n 0\\n 10001\\n 0\\n 1234567\\n 0\\n 2020-06-23T00:21:01+0800\\n 2345678\\n ab123****\\n 测试API描述\\n 0\\n 0\\n 2020-06-23T00:21:01+0800\\n 测试API名称\\n 10002\\n /test/1\\n 0\\n \\n http://example.aliyundoc.com\\n 0\\n /index\\n {\\"success\\": true}\\n {\\"success\\": false}\\n {\\"abc\\":1}\\n \\n fail to call\\n 1001\\n retry\\n \\n \\n column1\\n name1\\n 0\\n description1\\n default1\\n 0\\n 0\\n example1\\n true\\n \\n \\n \\n \\n true\\n \\n column1\\n param1\\n 0\\n description1\\n default1\\n 0\\n 0\\n example1\\n true\\n \\n \\n description2\\n column2\\n param2\\n 0\\n example2\\n \\n \\n t\\n 123\\n \\n \\n \\n true\\n \\n column1\\n param1\\n 0\\n description1\\n default1\\n 0\\n 0\\n example1\\n true\\n \\n \\n description2\\n column2\\n param2\\n 0\\n example2\\n \\n \\n t\\n 123\\n \\n \\n \\n","errorExample":""}]', + 'title' => '查询数据服务API开发态的详情', + 'summary' => '调用GetDataServiceApi查询数据服务API开发态的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' 不同类型API的详情信息通过不同字段返回。向导API使用WizardDetails字段,脚本API使用ScriptDetails字段,注册API使用RegistrationDetails字段。', + 'extraInfo' => ' ', + ], + 'UpdateDataServiceApi' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78368', + 'abilityTreeNodes' => [ + 'FEATUREdideZZ63WZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10001', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'RequestMethod', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的请求方式,可选枚举值包括0(GET)、1(POST)、2(PUT)和3(DELTE)。向导和脚本API支持GET和POST。注册API支持GET、POST、PUT和DELETE。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'ResponseContentType', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'Timeout', + 'in' => 'formData', + 'schema' => [ + 'description' => '超时时间,单位为毫秒(ms),取值范围为(0, 30000]。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'VisibleRange', + 'in' => 'formData', + 'schema' => [ + 'description' => '可见范围,可选枚举值包括0(工作空间)和1(私有)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'Protocols', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API协议,可选枚举值包括0(HTTP)和1(HTTPS)。支持多值,多个值之间使用英文逗号(,)分隔。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '0,1', + ], + ], + [ + 'name' => 'WizardDetails', + 'in' => 'formData', + 'schema' => [ + 'description' => '向导API的详情,请参见[GetDataServiceApi](~~174013~~)接口wizardDetails字段的JSON String。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{"isPagedResponse":true,"wizardConnection":{"connectionId":122786,"tableName":"person"},"wizardRequestParameters":[{"columnName":"id","defaultValue":"","exampleValue":"1","isRequiredParameter":true,"parameterDataType":2,"parameterDescription":"","parameterName":"id","parameterOperator":0,"parameterPosition":0}],"wizardResponseParameters":[{"columnName":"id","exampleValue":"11","parameterDataType":2,"parameterDescription":"","parameterName":"id"}]}', + ], + ], + [ + 'name' => 'ScriptDetails', + 'in' => 'formData', + 'schema' => [ + 'description' => '脚本API的详情,请参见[GetDataServiceApi](~~174013~~)接口scriptDetails字段的JSON String。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{"isPagedResponse":false,"script":"select id as id1, name as name1 from person where id=${inputid}","scriptConnection":{"connectionId":122786,"tableName":"person"},"scriptRequestParameters":[{"defaultValue":"","exampleValue":"","isRequiredParameter":true,"parameterDataType":0,"parameterDescription":"","parameterName":"inputid","parameterOperator":0,"parameterPosition":1}],"scriptResponseParameters":[{"exampleValue":"","parameterDataType":0,"parameterDescription":"","parameterName":"id1"},{"exampleValue":"","parameterDataType":0,"parameterDescription":"","parameterName":"name1"}]}', + ], + ], + [ + 'name' => 'RegistrationDetails', + 'in' => 'formData', + 'schema' => [ + 'description' => '注册API的详情,请参见[GetDataServiceApi](~~174013~~)接口registrationDetails字段的JSON String。', + 'type' => 'string', + 'required' => false, + 'example' => '{"failedResultSample":"fail","registrationErrorCodes":[{"errorCode":"e1","errorMessage":"msg1","errorSolution":"sol1"},{"errorCode":"e2","errorMessage":"msg2","errorSolution":"sol2"}],"registrationRequestParameters":[{"columnName":"","defaultValue":"","exampleValue":"","isRequiredParameter":true,"parameterDataType":0,"parameterDescription":"","parameterName":"id","parameterOperator":0,"parameterPosition":1},{"columnName":"","defaultValue":"xx","exampleValue":"","isRequiredParameter":true,"parameterDataType":0,"parameterDescription":"","parameterName":"cc","parameterOperator":2,"parameterPosition":2}],"serviceContentType":1,"serviceHost":"http://www.baidu.com","servicePath":"/[uid]","serviceRequestBodyDescription":"body","successfulResultSample":"success"}', + ], + ], + [ + 'name' => 'ApiPath', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的路径。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '/test/2', + ], + ], + [ + 'name' => 'ApiDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的描述信息。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '测试API描述', + ], + ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '独享资源组ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '3242432423', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '更新API是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '更新数据服务API开发态的信息', + 'summary' => '调用UpdateDataServiceApi更新数据服务API开发态的信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetDataServicePublishedApi' => [ + 'summary' => '调用GetDataServicePublishedApi查询数据服务API的发布态信息。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78239', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10002', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10003', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => 'API的最新发布态信息。', + 'type' => 'object', + 'properties' => [ + 'Timeout' => [ + 'description' => '超时时间,单位为毫秒(ms)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10000', + ], + 'Status' => [ + 'description' => ' '."\n" + .'API的状态,可选枚举值包括0(未发布)和1(已发布)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ApiId' => [ + 'description' => '数据服务API的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'ApiMode' => [ + 'description' => 'API的类型,可选枚举值包括0(向导API)、1(脚本API)和2(注册API)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'ResponseContentType' => [ + 'description' => 'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'CreatorId' => [ + 'description' => '创建人的阿里云ID。'."\n", + 'type' => 'string', + 'example' => '1234567', + ], + 'VisibleRange' => [ + 'description' => '可见范围,可选枚举值包括0(工作空间)和1(私有)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ModifiedTime' => [ + 'description' => '最新修改时间。'."\n", + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'OperatorId' => [ + 'description' => '最新编辑人的阿里云ID。'."\n", + 'type' => 'string', + 'example' => '2345678', + ], + 'GroupId' => [ + 'description' => '分组ID。'."\n", + 'type' => 'string', + 'example' => 'ab12**', + ], + 'Description' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => '测试API描述', + ], + 'RequestMethod' => [ + 'description' => 'API的请求方式,可选枚举值包括0(GET)、1(POST)、2(PUT)和3(DELTE)。向导和脚本API支持GET和POST。注册API支持GET、POST、PUT和DELETE。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'CreatedTime' => [ + 'description' => '创建时间。'."\n", + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'ApiName' => [ + 'description' => 'API的名称。'."\n", + 'type' => 'string', + 'example' => '测试API名称', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'ApiPath' => [ + 'description' => 'API的路径。'."\n", + 'type' => 'string', + 'example' => '/test/1', + ], + 'Protocols' => [ + 'description' => 'API协议,多值列表,可选枚举值包括0(HTTP)和1(HTTPS)。', + 'type' => 'array', + 'items' => [ + 'description' => 'API协议,多值列表,可选枚举值包括0(HTTP)和1(HTTPS)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + 'RegistrationDetails' => [ + 'description' => '注册API详情,只有注册API返回。'."\n", + 'type' => 'object', + 'properties' => [ + 'ServiceHost' => [ + 'description' => '后端服务地址。', + 'type' => 'string', + 'example' => 'http://www.abc.com', + ], + 'ServiceContentType' => [ + 'description' => 'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ServicePath' => [ + 'description' => '后端服务路径。'."\n", + 'type' => 'string', + 'example' => '/index', + ], + 'SuccessfulResultSample' => [ + 'description' => '正常返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": true}', + ], + 'FailedResultSample' => [ + 'description' => '错误返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": false}', + ], + 'ServiceRequestBodyDescription' => [ + 'description' => '后端请求body内容的描述。'."\n", + 'type' => 'string', + 'example' => '{"abc":1}', + ], + 'RegistrationErrorCodes' => [ + 'title' => '', + 'description' => '注册API的错误码列表。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ErrorMessage' => [ + 'title' => '', + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'ErrorCode' => [ + 'title' => '', + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'ErrorSolution' => [ + 'title' => '', + 'description' => '错误解决方案。'."\n", + 'type' => 'string', + 'example' => 'retry', + ], + ], + ], + ], + 'RegistrationRequestParameters' => [ + 'title' => '', + 'description' => '注册API的请求参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterName' => [ + 'description' => '参数的名称。'."\n", + 'type' => 'string', + 'example' => 'name1', + ], + 'ParameterPosition' => [ + 'description' => '参数的位置,可选枚举值包括0(Path)、1(Query)、2(Head)和3(Body)。向导和脚本API仅支持Query。注册API中的GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head和Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值。', + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值包括0(Equal)、1(Like)、2(Const)和3(In)。向导模式API支持Equal、Like和In,脚本模式API支持Equal,注册API支持Equal和Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。'."\n", + 'type' => 'string', + 'example' => 'example1', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + 'ScriptDetails' => [ + 'description' => '脚本API详情,只有脚本API返回。'."\n", + 'type' => 'object', + 'properties' => [ + 'IsPagedResponse' => [ + 'description' => '返回是否分页。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'SuccessfulResultSample' => [ + 'description' => '正常返回示例。', + 'type' => 'string', + 'example' => '{"success": true}', + ], + 'FailedResultSample' => [ + 'description' => '错误返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": false}', + ], + 'Script' => [ + 'description' => 'SQL脚本。'."\n", + 'type' => 'string', + 'example' => 'select a from t', + ], + 'ScriptErrorCodes' => [ + 'description' => '脚本API的错误码列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ErrorMessage' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'fail to call', + ], + 'ErrorCode' => [ + 'description' => '错误码', + 'type' => 'string', + 'example' => '1001', + ], + 'ErrorSolution' => [ + 'description' => '错误解决方案', + 'type' => 'string', + 'example' => 'retry', + ], + ], + ], + ], + 'ScriptRequestParameters' => [ + 'description' => '脚本API的请求参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterName' => [ + 'description' => '参数名称'."\n", + 'type' => 'string', + 'example' => 'param1', + ], + 'ParameterPosition' => [ + 'description' => '参数位置,可选枚举值有:'."\n" + ."\n" + .'- 0:Path'."\n" + .'- 1:Query'."\n" + .'- 2:Head'."\n" + .'- 3:Body'."\n" + ."\n" + .'向导和脚本API,只支持Query;注册API,GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head、Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述'."\n", + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值'."\n", + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值有:'."\n" + ."\n" + .'- 0:Equal'."\n" + .'- 1:Like'."\n" + .'- 2:Const'."\n" + .'- 3:In'."\n" + ."\n" + .'向导API支持Equal、Like、In;脚本API支持Equal;注册API支持Equal、Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值'."\n", + 'type' => 'string', + 'example' => 'example1', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'ScriptResponseParameters' => [ + 'description' => '脚本API的返回参数列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterDescription' => [ + 'description' => '描述信息。'."\n", + 'type' => 'string', + 'example' => 'description2', + ], + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'param2', + ], + 'ExampleValue' => [ + 'description' => '示例值。', + 'type' => 'string', + 'example' => 'example2', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + ], + ], + 'ScriptConnection' => [ + 'description' => '脚本API的数据源信息。'."\n", + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '数据源的表名称。'."\n", + 'type' => 'string', + 'example' => 't', + ], + 'ConnectionId' => [ + 'description' => '数据源的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + 'WizardDetails' => [ + 'description' => '向导API详情,只有向导API返回。', + 'type' => 'object', + 'properties' => [ + 'IsPagedResponse' => [ + 'description' => '返回是否分页。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'SuccessfulResultSample' => [ + 'description' => '正常返回示例。', + 'type' => 'string', + 'example' => '{"success": true}', + ], + 'FailedResultSample' => [ + 'description' => '错误返回示例。', + 'type' => 'string', + 'example' => '{"success": false}', + ], + 'WizardErrorCodes' => [ + 'description' => '向导API的错误码列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'fail to call', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1001', + ], + 'ErrorSolution' => [ + 'description' => '错误解决方案。', + 'type' => 'string', + 'example' => 'retry', + ], + ], + ], + ], + 'WizardRequestParameters' => [ + 'description' => '向导API的请求参数列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'param1', + ], + 'ParameterPosition' => [ + 'description' => '参数的位置,可选枚举值包括0(Path)、1(Query)、2(Head)和3(Body)。向导和脚本API仅支持Query。注册API中的GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head和Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值。'."\n", + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值包括0(Equal)、1(Like)、2(Const)和3(In)。向导模式API支持Equal、Like和In,脚本模式API支持Equal,注册API支持Equal和Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。'."\n", + 'type' => 'string', + 'example' => 'example1', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'WizardResponseParameters' => [ + 'description' => '向导API的返回参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '向导模式的返回参数列表。', + 'type' => 'object', + 'properties' => [ + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description2', + ], + 'ParameterName' => [ + 'description' => '参数的名称。', + 'type' => 'string', + 'example' => 'param2', + ], + 'ExampleValue' => [ + 'description' => '示例值。', + 'type' => 'string', + 'example' => 'example2', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + ], + ], + 'WizardConnection' => [ + 'description' => '向导API的数据源信息。'."\n", + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '数据源的表名称。', + 'type' => 'string', + 'example' => 't', + ], + 'ConnectionId' => [ + 'description' => '数据源的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + 'SqlMode' => [ + 'title' => 'SQL模式,0:基础SQL;1:高级SQL', + 'description' => 'SQL模式,0:基础SQL;1:高级SQL', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"Timeout\\": 10000,\\n \\"Status\\": 1,\\n \\"ApiId\\": 10000,\\n \\"ApiMode\\": 0,\\n \\"ProjectId\\": 10001,\\n \\"ResponseContentType\\": 0,\\n \\"CreatorId\\": \\"1234567\\",\\n \\"VisibleRange\\": 0,\\n \\"ModifiedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"OperatorId\\": \\"2345678\\",\\n \\"GroupId\\": \\"ab12**\\",\\n \\"Description\\": \\"测试API描述\\",\\n \\"RequestMethod\\": 0,\\n \\"CreatedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"ApiName\\": \\"测试API名称\\",\\n \\"TenantId\\": 10001,\\n \\"ApiPath\\": \\"/test/1\\",\\n \\"Protocols\\": [\\n 0\\n ],\\n \\"RegistrationDetails\\": {\\n \\"ServiceHost\\": \\"http://www.abc.com\\",\\n \\"ServiceContentType\\": 0,\\n \\"ServicePath\\": \\"/index\\",\\n \\"SuccessfulResultSample\\": \\"{\\\\\\"success\\\\\\": true}\\",\\n \\"FailedResultSample\\": \\"{\\\\\\"success\\\\\\": false}\\",\\n \\"ServiceRequestBodyDescription\\": \\"{\\\\\\"abc\\\\\\":1}\\",\\n \\"RegistrationErrorCodes\\": [\\n {\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"ErrorSolution\\": \\"retry\\"\\n }\\n ],\\n \\"RegistrationRequestParameters\\": [\\n {\\n \\"ParameterName\\": \\"name1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"ParameterDataType\\": 0,\\n \\"IsRequiredParameter\\": true\\n }\\n ]\\n },\\n \\"ScriptDetails\\": {\\n \\"IsPagedResponse\\": true,\\n \\"SuccessfulResultSample\\": \\"{\\\\\\"success\\\\\\": true}\\",\\n \\"FailedResultSample\\": \\"{\\\\\\"success\\\\\\": false}\\",\\n \\"Script\\": \\"select a from t\\",\\n \\"ScriptErrorCodes\\": [\\n {\\n \\"ErrorMessage\\": \\"fail to call\\",\\n \\"ErrorCode\\": \\"1001\\",\\n \\"ErrorSolution\\": \\"retry\\"\\n }\\n ],\\n \\"ScriptRequestParameters\\": [\\n {\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"ParameterDataType\\": 0,\\n \\"IsRequiredParameter\\": true\\n }\\n ],\\n \\"ScriptResponseParameters\\": [\\n {\\n \\"ParameterDescription\\": \\"description2\\",\\n \\"ParameterName\\": \\"param2\\",\\n \\"ExampleValue\\": \\"example2\\",\\n \\"ParameterDataType\\": 0\\n }\\n ],\\n \\"ScriptConnection\\": {\\n \\"TableName\\": \\"t\\",\\n \\"ConnectionId\\": 123\\n }\\n },\\n \\"WizardDetails\\": {\\n \\"IsPagedResponse\\": true,\\n \\"SuccessfulResultSample\\": \\"{\\\\\\"success\\\\\\": true}\\",\\n \\"FailedResultSample\\": \\"{\\\\\\"success\\\\\\": false}\\",\\n \\"WizardErrorCodes\\": [\\n {\\n \\"ErrorMessage\\": \\"fail to call\\",\\n \\"ErrorCode\\": \\"1001\\",\\n \\"ErrorSolution\\": \\"retry\\"\\n }\\n ],\\n \\"WizardRequestParameters\\": [\\n {\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"ParameterDataType\\": 0,\\n \\"IsRequiredParameter\\": true\\n }\\n ],\\n \\"WizardResponseParameters\\": [\\n {\\n \\"ParameterDescription\\": \\"description2\\",\\n \\"ParameterName\\": \\"param2\\",\\n \\"ExampleValue\\": \\"example2\\",\\n \\"ParameterDataType\\": 0\\n }\\n ],\\n \\"WizardConnection\\": {\\n \\"TableName\\": \\"t\\",\\n \\"ConnectionId\\": 123\\n }\\n },\\n \\"SqlMode\\": 0\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 10000\\n 1\\n 10000\\n 0\\n 10001\\n 0\\n 1234567\\n 0\\n 2020-06-23T00:21:01+0800\\n 2345678\\n ab12**\\n 测试API描述\\n 0\\n 2020-06-23T00:21:01+0800\\n 测试API名称\\n 10001\\n /test/1\\n 0\\n \\n http://www.abc.com\\n 0\\n /index\\n {\\"success\\": true}\\n {\\"success\\": false}\\n {\\"abc\\":1}\\n \\n The connection does not exist.\\n Invalid.Tenant.ConnectionNotExists\\n retry\\n \\n \\n name1\\n 0\\n description1\\n default1\\n 0\\n example1\\n 0\\n true\\n \\n \\n \\n true\\n {\\"success\\": true}\\n {\\"success\\": false}\\n \\n \\n fail to call\\n 1001\\n retry\\n \\n \\n param1\\n 0\\n description1\\n default1\\n 0\\n example1\\n 0\\n true\\n \\n \\n description2\\n param2\\n example2\\n 0\\n \\n \\n t\\n 123\\n \\n \\n \\n true\\n {\\"success\\": true}\\n {\\"success\\": false}\\n \\n fail to call\\n 1001\\n retry\\n \\n \\n param1\\n 0\\n description1\\n default1\\n 0\\n example1\\n 0\\n true\\n \\n \\n description2\\n param2\\n example2\\n 0\\n \\n \\n t\\n 123\\n \\n \\n \\n","errorExample":""}]', + 'title' => '查询数据服务API的发布态信息', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' 不同类型API的详情信息通过不同字段返回。向导API使用WizardDetails字段,脚本API使用ScriptDetails字段,注册API使用RegistrationDetails字段。'."\n", + 'extraInfo' => ' ', + ], + 'ListDataServicePublishedApis' => [ + 'summary' => '调用ListDataServicePublishedApis获取数据服务API的发布态信息列表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78306', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码,从1开始,默认值为1。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大50条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '50', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiNameKeyword', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API名称的关键词,过滤得到API名称包含该关键词的API。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'My API name', + ], + ], + [ + 'name' => 'ApiPathKeyword', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API路径的关键词,过滤得到API路径包含该关键词的API。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '/test/', + ], + ], + [ + 'name' => 'CreatorId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API创建者的阿里云ID,过滤得到该用户创建的API。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => 'API发布态信息返回。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码,和请求中的PageNumber一致。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Apis' => [ + 'description' => 'API发布态信息列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Timeout' => [ + 'description' => '超时时间,单位毫秒ms'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10000', + ], + 'Status' => [ + 'description' => 'API的状态,可选枚举值包括0(未发布)和1(已发布)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ApiId' => [ + 'description' => 'API的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + 'ApiMode' => [ + 'description' => 'API的类型,可选枚举值包括0(向导API)、1(脚本API)和2(注册API)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'ResponseContentType' => [ + 'description' => ' '."\n" + .'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'CreatorId' => [ + 'description' => '创建人的阿里云ID。'."\n", + 'type' => 'string', + 'example' => '1234567', + ], + 'VisibleRange' => [ + 'description' => '可见范围,可选枚举值包括0(工作空间)和1(私有)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ModifiedTime' => [ + 'description' => '最新修改时间。'."\n", + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'OperatorId' => [ + 'description' => '最新编辑人阿里云ID'."\n", + 'type' => 'string', + 'example' => '2345678', + ], + 'GroupId' => [ + 'description' => '分组ID。'."\n", + 'type' => 'string', + 'example' => 'ab123', + ], + 'Description' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'Test API description', + ], + 'RequestMethod' => [ + 'description' => 'API的请求方式,可选枚举值包括0(GET)、1(POST)、2(PUT)和3(DELTE)。向导和脚本API支持GET和POST。注册API支持GET、POST、PUT和DELETE。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'CreatedTime' => [ + 'description' => '创建时间。'."\n", + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'ApiName' => [ + 'description' => 'API的名称。'."\n", + 'type' => 'string', + 'example' => 'My API name', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'ApiPath' => [ + 'description' => 'API的路径。'."\n", + 'type' => 'string', + 'example' => '/test/1', + ], + 'Protocols' => [ + 'description' => 'API协议,可选枚举值包括0(HTTP)和1(HTTPS)。', + 'type' => 'array', + 'items' => [ + 'description' => 'API协议,可选枚举值包括0(HTTP)和1(HTTPS)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + 'RegistrationDetails' => [ + 'description' => '注册API详情,只有注册API返回。', + 'type' => 'object', + 'properties' => [ + 'ServiceHost' => [ + 'description' => '后端服务地址。'."\n", + 'type' => 'string', + 'example' => 'http://www.abc.com', + ], + 'ServiceContentType' => [ + 'description' => 'API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ServicePath' => [ + 'description' => '后端服务路径。'."\n", + 'type' => 'string', + 'example' => '/index', + ], + 'SuccessfulResultSample' => [ + 'description' => '正常返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": true}', + ], + 'FailedResultSample' => [ + 'description' => '错误返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": false}', + ], + 'ServiceRequestBodyDescription' => [ + 'description' => '后端请求body内容的描述。'."\n", + 'type' => 'string', + 'example' => '{"abc":1}', + ], + 'RegistrationErrorCodes' => [ + 'description' => '注册API的错误码列表。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '注册API的错误码列表。'."\n", + 'type' => 'object', + 'properties' => [ + 'ErrorMessage' => [ + 'description' => '错误信息'."\n", + 'type' => 'string', + 'example' => 'fail to call', + ], + 'ErrorCode' => [ + 'description' => '错误码'."\n", + 'type' => 'string', + 'example' => '1001', + ], + 'ErrorSolution' => [ + 'description' => '错误解决方案'."\n", + 'type' => 'string', + 'example' => 'retry', + ], + ], + ], + ], + 'RegistrationRequestParameters' => [ + 'description' => '注册API的请求参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterName' => [ + 'description' => '参数名称'."\n", + 'type' => 'string', + 'example' => 'name1', + ], + 'ParameterPosition' => [ + 'description' => '参数位置,可选枚举值有:'."\n" + ."\n" + .'- 0:Path'."\n" + .'- 1:Query'."\n" + .'- 2:Head'."\n" + .'- 3:Body'."\n" + ."\n" + .'向导和脚本API,只支持Query;注册API,GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head、Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值'."\n", + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值有:'."\n" + ."\n" + .'- 0:Equal'."\n" + .'- 1:Like'."\n" + .'- 2:Const'."\n" + .'- 3:In'."\n" + ."\n" + .'向导API支持Equal、Like、In;脚本API支持Equal;注册API支持Equal、Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值'."\n", + 'type' => 'string', + 'example' => 'example1', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + 'ScriptDetails' => [ + 'description' => '脚本API详情,只有脚本API返回。'."\n", + 'type' => 'object', + 'properties' => [ + 'IsPagedResponse' => [ + 'description' => '返回是否分页'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'SuccessfulResultSample' => [ + 'description' => '正常返回示例'."\n", + 'type' => 'string', + 'example' => '{"success": true}', + ], + 'FailedResultSample' => [ + 'description' => '错误返回示例'."\n", + 'type' => 'string', + 'example' => '{"success": false}', + ], + 'Script' => [ + 'description' => 'SQL脚本'."\n", + 'type' => 'string', + 'example' => 'select a from t', + ], + 'ScriptErrorCodes' => [ + 'description' => '脚本API错误码列表'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ErrorMessage' => [ + 'description' => '错误信息'."\n", + 'type' => 'string', + 'example' => 'fail to call', + ], + 'ErrorCode' => [ + 'description' => '错误码'."\n", + 'type' => 'string', + 'example' => '1001', + ], + 'ErrorSolution' => [ + 'description' => '错误解决方案'."\n", + 'type' => 'string', + 'example' => 'retry', + ], + ], + ], + ], + 'ScriptRequestParameters' => [ + 'description' => '脚本API请求参数列表'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterName' => [ + 'description' => '参数名称'."\n", + 'type' => 'string', + 'example' => 'param1', + ], + 'ParameterPosition' => [ + 'description' => '参数位置,可选枚举值有:'."\n" + ."\n" + .'- 0:Path'."\n" + .'- 1:Query'."\n" + .'- 2:Head'."\n" + .'- 3:Body'."\n" + ."\n" + .'向导和脚本API,只支持Query;注册API,GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head、Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述'."\n", + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值'."\n", + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值有:'."\n" + ."\n" + .'- 0:Equal'."\n" + .'- 1:Like'."\n" + .'- 2:Const'."\n" + .'- 3:In'."\n" + ."\n" + .'向导API支持Equal、Like、In;脚本API支持Equal;注册API支持Equal、Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值'."\n", + 'type' => 'string', + 'example' => 'example1', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + ."\n" + .'高级脚本还有以下数据类型:'."\n" + ."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'ScriptResponseParameters' => [ + 'description' => '脚本API返回参数列表'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterDescription' => [ + 'description' => '描述'."\n", + 'type' => 'string', + 'example' => 'description2', + ], + 'ParameterName' => [ + 'description' => '参数名称'."\n", + 'type' => 'string', + 'example' => 'param2', + ], + 'ExampleValue' => [ + 'description' => '示例值'."\n", + 'type' => 'string', + 'example' => 'example2', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + ], + ], + 'ScriptConnection' => [ + 'description' => '脚本API数据源信息'."\n", + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '数据源表名'."\n", + 'type' => 'string', + 'example' => 't', + ], + 'ConnectionId' => [ + 'description' => '数据源ID'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + ], + ], + ], + ], + 'WizardDetails' => [ + 'description' => '向导API详情,只有向导API返回。'."\n", + 'type' => 'object', + 'properties' => [ + 'IsPagedResponse' => [ + 'description' => '返回是否分页。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'SuccessfulResultSample' => [ + 'description' => '正常返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": true}', + ], + 'FailedResultSample' => [ + 'description' => '错误返回示例。'."\n", + 'type' => 'string', + 'example' => '{"success": false}', + ], + 'WizardErrorCodes' => [ + 'description' => '向导API的错误码列表。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'fail to call', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => '1001', + ], + 'ErrorSolution' => [ + 'description' => '错误解决方案。'."\n", + 'type' => 'string', + 'example' => 'retry', + ], + ], + ], + ], + 'WizardRequestParameters' => [ + 'description' => '向导API的请求参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterName' => [ + 'description' => '参数的名称。'."\n", + 'type' => 'string', + 'example' => 'param1', + ], + 'ParameterPosition' => [ + 'description' => '参数的位置,可选枚举值包括0(Path)、1(Query)、2(Head)和3(Body)。向导和脚本API仅支持Query。注册API中的GET、DELETE方法支持Query、Head,PUT、POST方法支持Query、Head和Body。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description1', + ], + 'DefaultValue' => [ + 'description' => '默认值。'."\n", + 'type' => 'string', + 'example' => 'default1', + ], + 'ParameterOperator' => [ + 'description' => '运算符,可选枚举值包括0(Equal)、1(Like)、2(Const)和3(In)。向导模式API支持Equal、Like和In,脚本模式API支持Equal,注册API支持Equal和Const。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExampleValue' => [ + 'description' => '示例值。'."\n", + 'type' => 'string', + 'example' => 'example1', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'IsRequiredParameter' => [ + 'description' => '是否必填。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + 'WizardResponseParameters' => [ + 'description' => '向导API的返回参数列表。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterDescription' => [ + 'description' => '描述信息。', + 'type' => 'string', + 'example' => 'description2', + ], + 'ParameterName' => [ + 'description' => '参数的名称。'."\n", + 'type' => 'string', + 'example' => 'param2', + ], + 'ExampleValue' => [ + 'description' => '示例值。'."\n", + 'type' => 'string', + 'example' => 'example2', + ], + 'ParameterDataType' => [ + 'description' => '数据类型,可选枚举值:'."\n" + ."\n" + .'- 0:String'."\n" + .'- 1:Int'."\n" + .'- 2:Long'."\n" + .'- 3:Float'."\n" + .'- 4:Double'."\n" + .'- 5:Boolean'."\n" + .'- 6:StringList'."\n" + .'- 7:IntList'."\n" + .'- 8:LongList'."\n" + .'- 9:FloatList'."\n" + .'- 10:DoubleList'."\n" + .'- 11:BooleanList', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + ], + ], + 'WizardConnection' => [ + 'description' => '向导API的数据源信息。'."\n", + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '数据源的表名称。'."\n", + 'type' => 'string', + 'example' => 't', + ], + 'ConnectionId' => [ + 'description' => '数据源ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12354', + ], + ], + ], + ], + ], + 'SqlMode' => [ + 'title' => 'SQL模式,0:基础SQL;1:高级SQL', + 'description' => 'SQL模式,0:基础SQL;1:高级SQL', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Apis\\": [\\n {\\n \\"Timeout\\": 10000,\\n \\"Status\\": 1,\\n \\"ApiId\\": 10002,\\n \\"ApiMode\\": 0,\\n \\"ProjectId\\": 10000,\\n \\"ResponseContentType\\": 0,\\n \\"CreatorId\\": \\"1234567\\",\\n \\"VisibleRange\\": 0,\\n \\"ModifiedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"OperatorId\\": \\"2345678\\",\\n \\"GroupId\\": \\"ab123\\",\\n \\"Description\\": \\"Test API description\\",\\n \\"RequestMethod\\": 0,\\n \\"CreatedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"ApiName\\": \\"My API name\\",\\n \\"TenantId\\": 10001,\\n \\"ApiPath\\": \\"/test/1\\",\\n \\"Protocols\\": [\\n 0\\n ],\\n \\"RegistrationDetails\\": {\\n \\"ServiceHost\\": \\"http://www.abc.com\\",\\n \\"ServiceContentType\\": 0,\\n \\"ServicePath\\": \\"/index\\",\\n \\"SuccessfulResultSample\\": \\"{\\\\\\"success\\\\\\": true}\\",\\n \\"FailedResultSample\\": \\"{\\\\\\"success\\\\\\": false}\\",\\n \\"ServiceRequestBodyDescription\\": \\"{\\\\\\"abc\\\\\\":1}\\",\\n \\"RegistrationErrorCodes\\": [\\n {\\n \\"ErrorMessage\\": \\"fail to call\\",\\n \\"ErrorCode\\": \\"1001\\",\\n \\"ErrorSolution\\": \\"retry\\"\\n }\\n ],\\n \\"RegistrationRequestParameters\\": [\\n {\\n \\"ParameterName\\": \\"name1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"ParameterDataType\\": 0,\\n \\"IsRequiredParameter\\": true\\n }\\n ]\\n },\\n \\"ScriptDetails\\": {\\n \\"IsPagedResponse\\": true,\\n \\"SuccessfulResultSample\\": \\"{\\\\\\"success\\\\\\": true}\\",\\n \\"FailedResultSample\\": \\"{\\\\\\"success\\\\\\": false}\\",\\n \\"Script\\": \\"select a from t\\",\\n \\"ScriptErrorCodes\\": [\\n {\\n \\"ErrorMessage\\": \\"fail to call\\",\\n \\"ErrorCode\\": \\"1001\\",\\n \\"ErrorSolution\\": \\"retry\\"\\n }\\n ],\\n \\"ScriptRequestParameters\\": [\\n {\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"ParameterDataType\\": 0,\\n \\"IsRequiredParameter\\": true\\n }\\n ],\\n \\"ScriptResponseParameters\\": [\\n {\\n \\"ParameterDescription\\": \\"description2\\",\\n \\"ParameterName\\": \\"param2\\",\\n \\"ExampleValue\\": \\"example2\\",\\n \\"ParameterDataType\\": 0\\n }\\n ],\\n \\"ScriptConnection\\": {\\n \\"TableName\\": \\"t\\",\\n \\"ConnectionId\\": 123\\n }\\n },\\n \\"WizardDetails\\": {\\n \\"IsPagedResponse\\": true,\\n \\"SuccessfulResultSample\\": \\"{\\\\\\"success\\\\\\": true}\\",\\n \\"FailedResultSample\\": \\"{\\\\\\"success\\\\\\": false}\\",\\n \\"WizardErrorCodes\\": [\\n {\\n \\"ErrorMessage\\": \\"fail to call\\",\\n \\"ErrorCode\\": \\"1001\\",\\n \\"ErrorSolution\\": \\"retry\\"\\n }\\n ],\\n \\"WizardRequestParameters\\": [\\n {\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterPosition\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"DefaultValue\\": \\"default1\\",\\n \\"ParameterOperator\\": 0,\\n \\"ExampleValue\\": \\"example1\\",\\n \\"ParameterDataType\\": 0,\\n \\"IsRequiredParameter\\": true\\n }\\n ],\\n \\"WizardResponseParameters\\": [\\n {\\n \\"ParameterDescription\\": \\"description2\\",\\n \\"ParameterName\\": \\"param2\\",\\n \\"ExampleValue\\": \\"example2\\",\\n \\"ParameterDataType\\": 0\\n }\\n ],\\n \\"WizardConnection\\": {\\n \\"TableName\\": \\"t\\",\\n \\"ConnectionId\\": 12354\\n }\\n },\\n \\"SqlMode\\": 0\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n The connection does not exist.\\n true\\n Invalid.Tenant.ConnectionNotExists\\n \\n 1\\n 10\\n 100\\n \\n 10000\\n 1\\n 10002\\n 0\\n 10000\\n 0\\n 1234567\\n 0\\n 2020-06-23T00:21:01+0800\\n 2345678\\n ab123\\n 测试API描述\\n 0\\n 2020-06-23T00:21:01+0800\\n 我的API名称\\n 10001\\n /test/1\\n 0\\n \\n http://www.abc.com\\n 0\\n /index\\n {\\"success\\": true}\\n {\\"success\\": false}\\n {\\"abc\\":1}\\n \\n fail to call\\n 1001\\n retry\\n \\n \\n name1\\n 0\\n description1\\n default1\\n 0\\n example1\\n 0\\n true\\n \\n \\n \\n true\\n {\\"success\\": true}\\n {\\"success\\": false}\\n \\n \\n fail to call\\n 1001\\n retry\\n \\n \\n param1\\n 0\\n description1\\n default1\\n 0\\n example1\\n 0\\n true\\n \\n \\n description2\\n param2\\n example2\\n 0\\n \\n \\n t\\n 123\\n \\n \\n \\n true\\n {\\"success\\": true}\\n {\\"success\\": false}\\n \\n fail to call\\n 1001\\n retry\\n \\n \\n param1\\n 0\\n description1\\n default1\\n 0\\n example1\\n 0\\n true\\n \\n \\n description2\\n param2\\n example2\\n 0\\n \\n \\n t\\n 123\\n \\n \\n \\n \\n","errorExample":""}]', + 'title' => '获取数据服务API的发布态信息列表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' 不同类型API的详情信息通过不同字段返回。向导API使用WizardDetails字段,脚本API使用ScriptDetails字段,注册API使用RegistrationDetails字段。'."\n", + 'extraInfo' => ' ', + ], + 'ListDataServiceApiAuthorities' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78300', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '页码,从1开始,默认值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大50条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '50', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => ' 该字段已废弃。租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiNameKeyword', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API名称的关键词,通过过滤获取API名称包含该关键词的API。', + 'type' => 'string', + 'required' => false, + 'example' => '我的API名称', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => '正常', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'Boolean', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '0', + ], + 'Data' => [ + 'description' => '授权给他人的API列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码,和请求中的PageNumber一致。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'ApiAuthorizationList' => [ + 'description' => '返回数据结构。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'ApiStatus' => [ + 'description' => 'API的状态,可选枚举值包括0(未发布)和1(已发布)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ApiId' => [ + 'description' => 'API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + 'ModifiedTime' => [ + 'description' => 'API的最近更新时间。', + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'GroupId' => [ + 'description' => '分组ID。', + 'type' => 'string', + 'example' => 'ab123', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'CreatorId' => [ + 'description' => 'API负责人的阿里云ID。', + 'type' => 'string', + 'example' => '12345', + ], + 'CreatedTime' => [ + 'description' => 'API的创建时间。', + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'ApiName' => [ + 'description' => 'API的名称。', + 'type' => 'string', + 'example' => '我的API名称', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'ApiPath' => [ + 'description' => 'API的路径。', + 'type' => 'string', + 'example' => '/test/1', + ], + 'AuthorizationRecords' => [ + 'description' => '授权给他人的授权详情列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'EndTime' => [ + 'description' => '授权有效期的截止时间。', + 'type' => 'string', + 'example' => '2020-06-24T00:21:01+0800', + ], + 'CreatorId' => [ + 'description' => 'API负责人的阿里云ID。', + 'type' => 'string', + 'example' => '12345', + ], + 'CreatedTime' => [ + 'description' => '授权时间。', + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'ProjectId' => [ + 'description' => '获得授权的工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10004', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"正常\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"ApiAuthorizationList\\": [\\n {\\n \\"ApiStatus\\": 0,\\n \\"ApiId\\": 10002,\\n \\"ModifiedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"GroupId\\": \\"ab123\\",\\n \\"ProjectId\\": 10000,\\n \\"CreatorId\\": \\"12345\\",\\n \\"CreatedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"ApiName\\": \\"我的API名称\\",\\n \\"TenantId\\": 10001,\\n \\"ApiPath\\": \\"/test/1\\",\\n \\"AuthorizationRecords\\": [\\n {\\n \\"EndTime\\": \\"2020-06-24T00:21:01+0800\\",\\n \\"CreatorId\\": \\"12345\\",\\n \\"CreatedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"ProjectId\\": 10004\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n 正常\\n false\\n 0\\n \\n 1\\n 10\\n 100\\n \\n 0\\n 10002\\n 2020-06-23T00:21:01+0800\\n ab123\\n 10000\\n 12345\\n 2020-06-23T00:21:01+0800\\n 我的API名称\\n 10001\\n /test/1\\n \\n 2020-06-24T00:21:01+0800\\n 12345\\n 2020-06-23T00:21:01+0800\\n 10004\\n \\n \\n \\n","errorExample":""}]', + 'title' => '获取授权给他人的API列表', + 'summary' => '调用ListDataServiceApiAuthorities获取授权给他人的API列表。', + ], + 'ListDataServiceAuthorizedApis' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78303', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '页码,从1开始,默认值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'minimum' => '1', + 'example' => 'PageNumber', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大50条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '50', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '该字段已废弃。租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiNameKeyword', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API名称的关键词,通过过滤获取API名称包含该关键词的API。', + 'type' => 'string', + 'required' => false, + 'example' => '我的API名称', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Data' => [ + 'description' => '获得授权的API信息。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码,和请求中的PageNumber一致。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'ApiAuthorizedList' => [ + 'description' => '获得授权的API列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ApiId' => [ + 'description' => 'API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + 'ApiStatus' => [ + 'description' => 'API的状态,可选枚举值包括0(未发布)和1(已发布)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'GrantOperatorId' => [ + 'description' => '授权者的阿里云ID。', + 'type' => 'string', + 'example' => '23456', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'CreatorId' => [ + 'description' => 'API负责人阿里云ID', + 'type' => 'string', + 'example' => '12345', + ], + 'GrantEndTime' => [ + 'description' => 'API的授权到期时间。', + 'type' => 'string', + 'example' => '2020-06-24T00:21:01+0800', + ], + 'ModifiedTime' => [ + 'description' => 'API的最近更新时间。', + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'GroupId' => [ + 'description' => '分组ID。', + 'type' => 'string', + 'example' => 'abcde123456789', + ], + 'GrantCreatedTime' => [ + 'description' => 'API的授权时间。', + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'CreatedTime' => [ + 'description' => 'API的创建时间。', + 'type' => 'string', + 'example' => '2020-06-23T00:21:01+0800', + ], + 'ApiName' => [ + 'description' => 'API的名称。', + 'type' => 'string', + 'example' => '我的API名称', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'ApiPath' => [ + 'description' => 'API的路径。', + 'type' => 'string', + 'example' => '/test/1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"ApiAuthorizedList\\": [\\n {\\n \\"ApiId\\": 10002,\\n \\"ApiStatus\\": 0,\\n \\"GrantOperatorId\\": \\"23456\\",\\n \\"ProjectId\\": 10000,\\n \\"CreatorId\\": \\"12345\\",\\n \\"GrantEndTime\\": \\"2020-06-24T00:21:01+0800\\",\\n \\"ModifiedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"GroupId\\": \\"abcde123456789\\",\\n \\"GrantCreatedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"CreatedTime\\": \\"2020-06-23T00:21:01+0800\\",\\n \\"ApiName\\": \\"我的API名称\\",\\n \\"TenantId\\": 10001,\\n \\"ApiPath\\": \\"/test/1\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n \\n \\n","errorExample":""}]', + 'title' => '获取获得授权的API信息列表', + 'summary' => '调用ListDataServiceAuthorizedApis获取获得授权的API信息列表。', + ], + 'AbolishDataServiceApi' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78165', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10002', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => '数据服务API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '数据服务API是否下线成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n The connection does not exist.\\n 0000-ABCD-EFG****\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '下线数据服务API', + 'summary' => '调用AbolishDataServiceApi下线数据服务API。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetDataServiceApplication' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78236', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '10002', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10001', + ], + ], + [ + 'name' => 'ApplicationId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'App的ID,可在API网关控制台上查看应用信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '10000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => '正常', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '0', + ], + 'Data' => [ + 'description' => 'App详情。', + 'type' => 'object', + 'properties' => [ + 'ApplicationCode' => [ + 'description' => 'API调用认证方式一,简单身份认证中的AppCode。'."\n", + 'type' => 'string', + 'example' => 'CODE123', + ], + 'ApplicationKey' => [ + 'description' => 'API调用认证方式二,加密签名身份认证中的AppKey。', + 'type' => 'string', + 'example' => 'KEY123', + ], + 'ApplicationSecret' => [ + 'description' => 'API调用认证方式二,加密签名身份认证中的AppSecret。', + 'type' => 'string', + 'example' => 'SECRET123', + ], + 'ProjectId' => [ + 'description' => '关联工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'ApplicationName' => [ + 'description' => '应用名称。', + 'type' => 'string', + 'example' => '测试应用', + ], + 'ApplicationId' => [ + 'description' => 'App的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"ErrorMessage\\": \\"正常\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"ApplicationCode\\": \\"CODE123\\",\\n \\"ApplicationKey\\": \\"KEY123\\",\\n \\"ApplicationSecret\\": \\"SECRET123\\",\\n \\"ProjectId\\": 10001,\\n \\"ApplicationName\\": \\"测试应用\\",\\n \\"ApplicationId\\": 10000\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG****\\n 正常\\n true\\n 0\\n \\n CODE123\\n KEY123\\n SECRET123\\n 10001\\n 测试应用\\n 10000\\n \\n","errorExample":""}]', + 'title' => '查询数据服务App的详情', + 'summary' => '调用GetDataServiceApplication查询数据服务App的详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => 'ApplicationCode或ApplicationSecre参数的泄露会威胁您数据服务API资源的安全,本OpenAPI会对ApplicationCode和ApplicationSecre参数进行脱敏后再返回。', + 'extraInfo' => ' ', + ], + 'ListDataServiceApplications' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78302', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码,从1开始,默认值为1。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大50条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '50', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'ProjectIdList', + 'in' => 'formData', + 'schema' => [ + 'description' => '指定工作空间ID查询应用。支持多值,多值之间使用英文逗号(,)分隔。最少指定1个工作空间ID,最多指定50个工作空间ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '10000,100001', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'example' => '100002', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG***', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => '正常', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n", + 'type' => 'string', + 'example' => '0', + ], + 'Data' => [ + 'description' => '查询得到的应用基础信息。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码,和请求中的PageNumber一致。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Applications' => [ + 'description' => '应用的基础信息列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ApplicationName' => [ + 'description' => '应用的名称。', + 'type' => 'string', + 'example' => '我的应用', + ], + 'ApplicationId' => [ + 'description' => '应用ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '20000', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-EFG***\\",\\n \\"ErrorMessage\\": \\"正常\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"0\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Applications\\": [\\n {\\n \\"ApplicationName\\": \\"我的应用\\",\\n \\"ApplicationId\\": 20000,\\n \\"ProjectId\\": 10000\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 0000-ABCD-EFG***\\n 正常\\n true\\n 0\\n \\n 1\\n 10\\n 100\\n \\n 我的应用\\n 20000\\n 10000\\n \\n \\n","errorExample":""}]', + 'title' => '获取数据服务应用的基础信息列表', + 'summary' => '调用ListDataServiceApplications获取数据服务应用的基础信息列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateDataServiceFolder' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10002', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10001', + ], + ], + [ + 'name' => 'FolderName', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '测试文件夹', + ], + ], + [ + 'name' => 'ParentId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的目标父文件夹ID。业务流程根文件夹ID等于0,用户创建的文件夹ID大于0。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '0', + 'example' => '0', + ], + ], + [ + 'name' => 'GroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的目标业务流程ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1000abcd', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'FolderId' => [ + 'description' => '创建的文件夹ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"FolderId\\": 123,\\n \\"RequestId\\": \\"0000-ABCD-E****\\"\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-E****\\n123","errorExample":""}]', + 'title' => '创建数据服务文件夹', + 'summary' => '调用CreateDataServiceFolder创建数据服务文件夹。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetDataServiceFolder' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78237', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '该字段已废弃。租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10003', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10002', + ], + ], + [ + 'name' => 'FolderId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + 'Folder' => [ + 'description' => '文件夹详情。', + 'type' => 'object', + 'properties' => [ + 'ParentId' => [ + 'description' => '父文件夹ID。业务流程下根文件夹ID等于0,用户创建文件夹ID大于0。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'ModifiedTime' => [ + 'description' => '文件夹的编辑时间。', + 'type' => 'string', + 'example' => '2020-09-24T18:37:51+0800', + ], + 'GroupId' => [ + 'description' => '文件夹所属业务流程的ID。', + 'type' => 'string', + 'example' => 'ds_1234', + ], + 'FolderId' => [ + 'description' => '文件夹的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'FolderName' => [ + 'description' => '文件夹的名称。', + 'type' => 'string', + 'example' => 'test1', + ], + 'CreatedTime' => [ + 'description' => '文件夹的创建时间。', + 'type' => 'string', + 'example' => '2020-09-24T18:37:51+0800', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EF****\\",\\n \\"Folder\\": {\\n \\"ParentId\\": 0,\\n \\"ModifiedTime\\": \\"2020-09-24T18:37:51+0800\\",\\n \\"GroupId\\": \\"ds_1234\\",\\n \\"FolderId\\": 11,\\n \\"ProjectId\\": 10001,\\n \\"FolderName\\": \\"test1\\",\\n \\"CreatedTime\\": \\"2020-09-24T18:37:51+0800\\",\\n \\"TenantId\\": 10002\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EF****\\n \\n 0\\n 2020-09-24T18:37:51+0800\\n ds_1234\\n 11\\n 10001\\n test1\\n 2020-09-24T18:37:51+0800\\n 10002\\n \\n","errorExample":""}]', + 'title' => '查询数据服务文件夹', + 'summary' => '调用GetDataServiceFolder查询数据服务文件夹。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListDataServiceFolders' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78304', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码,从1开始。默认值为1。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大50条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '50', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10001', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10002', + ], + ], + [ + 'name' => 'GroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '指定文件夹所属业务流程的ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'ds_123abc', + ], + ], + [ + 'name' => 'FolderNameKeyword', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件夹名称关键词,可以进行子串匹配。', + 'type' => 'string', + 'required' => false, + 'example' => '文件夹名称关键词', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + 'FolderPagingResult' => [ + 'description' => '文件夹列表的分页结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码,和请求中的PageNumber一致。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Folders' => [ + 'description' => '文件夹列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParentId' => [ + 'description' => '父文件夹的ID。业务流程下根文件夹ID等于0,用户创建文件夹ID大于0。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'ModifiedTime' => [ + 'description' => '文件夹的编辑时间。'."\n", + 'type' => 'string', + 'example' => '2020-09-24T18:37:51+0800', + ], + 'GroupId' => [ + 'description' => '文件夹所属业务流程的ID。'."\n", + 'type' => 'string', + 'example' => 'ds_1234', + ], + 'FolderId' => [ + 'description' => '文件夹的ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11', + ], + 'FolderName' => [ + 'description' => '文件夹的名称。'."\n", + 'type' => 'string', + 'example' => 'test1', + ], + 'ProjectId' => [ + 'description' => '工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10001', + ], + 'CreatedTime' => [ + 'description' => '文件夹的创建时间。'."\n", + 'type' => 'string', + 'example' => '2020-09-24T18:37:51+0800', + ], + 'TenantId' => [ + 'description' => '租户ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EF****\\",\\n \\"FolderPagingResult\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Folders\\": [\\n {\\n \\"ParentId\\": 0,\\n \\"ModifiedTime\\": \\"2020-09-24T18:37:51+0800\\",\\n \\"GroupId\\": \\"ds_1234\\",\\n \\"FolderId\\": 11,\\n \\"FolderName\\": \\"test1\\",\\n \\"ProjectId\\": 10001,\\n \\"CreatedTime\\": \\"2020-09-24T18:37:51+0800\\",\\n \\"TenantId\\": 10002\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EF****\\n \\n 1\\n 10\\n 100\\n \\n 0\\n 2020-09-24T18:37:51+0800\\n ds_1234\\n 11\\n test1\\n 10001\\n 2020-09-24T18:37:51+0800\\n 10002\\n \\n \\n","errorExample":""}]', + 'title' => '查询数据服务文件夹列表', + 'summary' => '调用ListDataServiceFolders查询数据服务文件夹列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateDataServiceGroup' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78182', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '该字段已废弃。租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10002', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10001', + ], + ], + [ + 'name' => 'ApiGatewayGroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程绑定的API网关分组ID,您可以进入API网关控制台分组详情页面进行查看。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '1000abcd', + ], + ], + [ + 'name' => 'GroupName', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '业务流程名称', + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的描述。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '测试业务流程', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'GroupId' => [ + 'description' => '创建的业务流程ID。', + 'type' => 'string', + 'example' => 'ds_12345', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"GroupId\\": \\"ds_12345\\",\\n \\"RequestId\\": \\"0000-ABCD-EF****\\"\\n}","type":"json"}]', + 'title' => '创建数据服务业务流程', + 'summary' => '调用CreateDataServiceGroup创建数据服务业务流程。', + ], + 'GetDataServiceGroup' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78238', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '该字段已废弃。租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10001', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10002', + ], + ], + [ + 'name' => 'GroupId', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程的ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'ds_123abc', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + 'Group' => [ + 'description' => '业务流程详情。', + 'type' => 'object', + 'properties' => [ + 'ModifiedTime' => [ + 'description' => '编辑时间。', + 'type' => 'string', + 'example' => '2020-09-24T18:37:51+0800', + ], + 'Description' => [ + 'description' => '业务流程的描述。', + 'type' => 'string', + 'example' => '业务流程描述', + ], + 'GroupName' => [ + 'description' => '业务流程名称。', + 'type' => 'string', + 'example' => '业务流程名称', + ], + 'GroupId' => [ + 'description' => '业务流程ID。', + 'type' => 'string', + 'example' => 'ds_123abc', + ], + 'ProjectId' => [ + 'description' => '工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + 'ApiGatewayGroupId' => [ + 'description' => '业务流程绑定的API网关分组ID。', + 'type' => 'string', + 'example' => '100abc', + ], + 'CreatorId' => [ + 'description' => ' '."\n" + .'创建人UID,部分历史业务流程创建人的UID可能为空。', + 'type' => 'string', + 'example' => '10001', + ], + 'CreatedTime' => [ + 'description' => '业务流程的创建时间。', + 'type' => 'string', + 'example' => '2020-09-24T18:37:51+0800', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10003', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EF****\\",\\n \\"Group\\": {\\n \\"ModifiedTime\\": \\"2020-09-24T18:37:51+0800\\",\\n \\"Description\\": \\"业务流程描述\\",\\n \\"GroupName\\": \\"业务流程名称\\",\\n \\"GroupId\\": \\"ds_123abc\\",\\n \\"ProjectId\\": 10002,\\n \\"ApiGatewayGroupId\\": \\"100abc\\",\\n \\"CreatorId\\": \\"10001\\",\\n \\"CreatedTime\\": \\"2020-09-24T18:37:51+0800\\",\\n \\"TenantId\\": 10003\\n }\\n}","type":"json"}]', + 'title' => '查询数据服务业务流程', + 'summary' => '调用GetDataServiceGroup查询数据服务业务流程。', + ], + 'ListDataServiceGroups' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '78305', + 'abilityTreeNodes' => [ + 'FEATUREdide7T0EJX', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码,从1开始,默认值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '2147483647', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大50条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '50', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '该字段已废弃。租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10001', + ], + ], + [ + 'name' => 'GroupNameKeyword', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程名称关键词,可以进行子串匹配。', + 'type' => 'string', + 'required' => false, + 'example' => '测试业务流程', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + 'GroupPagingResult' => [ + 'description' => '业务流程的分页结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码,和请求中的PageNumber一致。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Groups' => [ + 'description' => '业务流程列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ModifiedTime' => [ + 'description' => '业务流程的编辑时间。', + 'type' => 'string', + 'example' => '2020-09-24T18:37:51+0800', + ], + 'Description' => [ + 'description' => '业务流程的描述。', + 'type' => 'string', + 'example' => '业务流程描述', + ], + 'GroupName' => [ + 'description' => '业务流程名称。', + 'type' => 'string', + 'example' => '业务流程名称', + ], + 'GroupId' => [ + 'description' => '业务流程的ID。', + 'type' => 'string', + 'example' => 'ds_123abc', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10002', + ], + 'ApiGatewayGroupId' => [ + 'description' => '业务流程绑定的API网关分组ID。', + 'type' => 'string', + 'example' => '100abc', + ], + 'CreatorId' => [ + 'description' => '创建人UID,部分历史业务流程的创建人UID可能为空。', + 'type' => 'string', + 'example' => '10001', + ], + 'CreatedTime' => [ + 'description' => '业务流程的创建时间。', + 'type' => 'string', + 'example' => '2020-09-24T18:37:51+0800', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10003', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EF****\\",\\n \\"GroupPagingResult\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Groups\\": [\\n {\\n \\"ModifiedTime\\": \\"2020-09-24T18:37:51+0800\\",\\n \\"Description\\": \\"业务流程描述\\",\\n \\"GroupName\\": \\"业务流程名称\\",\\n \\"GroupId\\": \\"ds_123abc\\",\\n \\"ProjectId\\": 10002,\\n \\"ApiGatewayGroupId\\": \\"100abc\\",\\n \\"CreatorId\\": \\"10001\\",\\n \\"CreatedTime\\": \\"2020-09-24T18:37:51+0800\\",\\n \\"TenantId\\": 10003\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n \\n \\n","errorExample":""}]', + 'title' => '查询数据服务业务流程列表', + 'summary' => '调用ListDataServiceGroups查询数据服务业务流程列表。', + ], + 'CreateDataServiceApiAuthority' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '78180', + 'abilityTreeNodes' => [ + 'FEATUREdideWDSR97', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '1004', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10003', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10001', + ], + ], + [ + 'name' => 'AuthorizedProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '被授权的工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10002', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '授权有限期结束时间,Unix时间戳,单位为s。例如1600531564,代表北京时间2020-09-20 00:06:04。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '1600531564', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '授权是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0000-ABCD-EF****\\"\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFo****\\ntrue","errorExample":""}]', + 'title' => '新增数据服务API授权', + 'summary' => '调用CreateDataServiceApiAuthority新增数据服务API授权。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteDataServiceApiAuthority' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '78205', + 'abilityTreeNodes' => [ + 'FEATUREdideWDSR97', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => ' 该字段已废弃。租户的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10001', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10002', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10003', + ], + ], + [ + 'name' => 'AuthorizedProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '被取消授权的工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '10004', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '取消授权是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0000-ABCD-EF****\\"\\n}","type":"json"}]', + 'title' => '取消数据服务API授权', + 'summary' => '调用DeleteDataServiceApiAuthority取消数据服务API授权。', + ], + 'ListDataServiceApiTest' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ApiId', + 'in' => 'query', + 'schema' => [ + 'description' => '测试API Id', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小,最大100', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'description' => '返回消息', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求Id', + 'type' => 'string', + 'example' => 'ESDAFWEA', + ], + 'Data' => [ + 'description' => '数据列表', + 'type' => 'array', + 'items' => [ + 'description' => '数据对象', + 'type' => 'object', + 'properties' => [ + 'TestId' => [ + 'description' => '测试Id', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'ApiId' => [ + 'description' => '测试API Id', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2343', + ], + 'ParamMap' => [ + 'description' => '测试API请求参数', + 'type' => 'string', + 'example' => '{"name":"test"}', + ], + 'RetCode' => [ + 'description' => '测试API返回code,如果未完成,该数据为空', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'RetResult' => [ + 'description' => '返回数据', + 'type' => 'string', + 'example' => '{"id":2}', + ], + 'CostTime' => [ + 'description' => 'API请求花费的时间', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'Status' => [ + 'description' => '任务是否已经完成,包含:RUNNING,FINISHED', + 'type' => 'string', + 'example' => 'FINISHED', + ], + 'CreateTime' => [ + 'description' => '任务创建时间', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1651824913000', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"ESDAFWEA\\",\\n \\"Data\\": [\\n {\\n \\"TestId\\": 123,\\n \\"ApiId\\": 2343,\\n \\"ParamMap\\": \\"{\\\\\\"name\\\\\\":\\\\\\"test\\\\\\"}\\",\\n \\"RetCode\\": 0,\\n \\"RetResult\\": \\"{\\\\\\"id\\\\\\":2}\\",\\n \\"CostTime\\": 10,\\n \\"Status\\": \\"FINISHED\\",\\n \\"CreateTime\\": 1651824913000\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n ESDAFWEA\\n \\n 123\\n 2343\\n {\\"name\\":\\"test\\"}\\n 0\\n {\\"id\\":2}\\n 10\\n FINISHED\\n 1651824913000\\n \\n","errorExample":""}]', + 'title' => '列出数据服务API测试记录', + 'summary' => '列出数据服务API测试记录,只能查询最近一个月数据。', + ], + 'TestDataServiceApi' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ApiId', + 'in' => 'query', + 'schema' => [ + 'description' => 'API Id', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '12343', + ], + ], + [ + 'name' => 'QueryParam', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '放在Query里面的请求参数', + 'type' => 'array', + 'items' => [ + 'description' => '请求对象', + 'type' => 'object', + 'properties' => [ + 'ParamKey' => [ + 'description' => '参数名称', + 'type' => 'string', + 'required' => false, + 'example' => 'name', + ], + 'ParamValue' => [ + 'description' => '参数值', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 500, + ], + ], + [ + 'name' => 'BodyParams', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '放在请求Body的参数信息', + 'type' => 'array', + 'items' => [ + 'description' => '请求对象', + 'type' => 'object', + 'properties' => [ + 'ParamKey' => [ + 'description' => '参数名称', + 'type' => 'string', + 'required' => false, + 'example' => 'name', + ], + 'ParamValue' => [ + 'description' => '参数值', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 500, + ], + ], + [ + 'name' => 'PathParams', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '放在Path里面的请求参数', + 'type' => 'array', + 'items' => [ + 'description' => '请求对象', + 'type' => 'object', + 'properties' => [ + 'ParamKey' => [ + 'description' => '参数名称', + 'type' => 'string', + 'required' => false, + 'example' => 'path1', + ], + 'ParamValue' => [ + 'description' => '参数值', + 'type' => 'string', + 'required' => false, + 'example' => 'api', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 500, + ], + ], + [ + 'name' => 'HeadParams', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '放在Header里面的请求参数', + 'type' => 'array', + 'items' => [ + 'description' => '请求对象', + 'type' => 'object', + 'properties' => [ + 'ParamKey' => [ + 'description' => '参数名称', + 'type' => 'string', + 'required' => false, + 'example' => 'requestId', + ], + 'ParamValue' => [ + 'description' => '参数值', + 'type' => 'string', + 'required' => false, + 'example' => 'abcd', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 500, + ], + ], + [ + 'name' => 'BodyContent', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求body数据', + 'type' => 'string', + 'required' => false, + 'example' => '{"name":"test"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求id', + 'type' => 'string', + 'example' => 'abdsfewe', + ], + 'Data' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'TestId' => [ + 'description' => '测试Id', + 'type' => 'string', + 'example' => '232432', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"abdsfewe\\",\\n \\"Data\\": {\\n \\"TestId\\": \\"232432\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n abdsfewe\\n \\n 232432\\n \\n","errorExample":""}]', + 'title' => '测试数据服务API', + 'summary' => '测试API,异步测试,需要GetDataServiceApiTest接口获取测试结果。', + ], + 'GetDataServiceApiTest' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'TestId', + 'in' => 'query', + 'schema' => [ + 'description' => '测试Id。TestDataServiceApi接口调用以后异步执行,同时返回测试Id。也可以通过ListDataServiceApiTest获取最近的测试Id。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '123434', + ], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求Id', + 'type' => 'string', + 'example' => 'adssd****', + ], + 'Data' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ApiId' => [ + 'description' => '测试API Id'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12343', + ], + 'ParamMap' => [ + 'description' => '测试API请求参数'."\n" + ."\n", + 'type' => 'string', + 'example' => '{"name":"test"}', + ], + 'RetCode' => [ + 'description' => ' '."\n" + .'测试API返回code,如果未完成,该数据为空', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'RetResult' => [ + 'description' => '返回数据'."\n" + ."\n", + 'type' => 'string', + 'example' => '{"id":2}', + ], + 'DebugInfo' => [ + 'description' => 'Debug信息', + 'type' => 'string', + 'example' => '[INFO] [16:15:13.240] resource group is 498774069027041[INFO]', + ], + 'CostTime' => [ + 'description' => '耗时', + 'type' => 'string', + 'example' => '10', + ], + 'NodesDebugInfo' => [ + 'description' => '节点Debug信息', + 'type' => 'string', + 'example' => '[INFO] [16:15:13.240] resource group is 498774069027041[INFO]', + ], + 'Status' => [ + 'description' => '任务是否已经完成,包含:RUNNING,FINISHED', + 'type' => 'string', + 'example' => 'FINISHED', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"adssd****\\",\\n \\"Data\\": {\\n \\"ApiId\\": 12343,\\n \\"ParamMap\\": \\"{\\\\\\"name\\\\\\":\\\\\\"test\\\\\\"}\\",\\n \\"RetCode\\": 0,\\n \\"RetResult\\": \\"{\\\\\\"id\\\\\\":2}\\",\\n \\"DebugInfo\\": \\"[INFO] [16:15:13.240] resource group is 498774069027041[INFO]\\",\\n \\"CostTime\\": \\"10\\",\\n \\"NodesDebugInfo\\": \\"[INFO] [16:15:13.240] resource group is 498774069027041[INFO]\\",\\n \\"Status\\": \\"FINISHED\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n adssdsewe\\n \\n 12343\\n {\\"name\\":\\"test\\"}\\n 0\\n {\\"id\\":2}\\n [<span style=\\\\\\"color: #92D581;\\\\\\">INFO</span>] [16:15:13.240] resource group is 498774069027041[<span style=\\\\\\"color: #92D581;\\\\\\">INFO</span>]\\n 10\\n [<span style=\\\\\\"color: #92D581;\\\\\\">INFO</span>] [16:15:13.240] resource group is 498774069027041[<span style=\\\\\\"color: #92D581;\\\\\\">INFO</span>]\\n FINISHED\\n \\n","errorExample":""}]', + 'title' => '获取API测试结果', + 'summary' => '获取API测试结果。', + ], + 'SubmitDataServiceApi' => [ + 'summary' => 'SubmitDataServiceApi用于提交数据服务API。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '157978', + 'abilityTreeNodes' => [ + 'FEATUREdideZZ63WZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可以登录[数据服务](https://ds-cn-shanghai.data.aliyun.com/),点击账号名称,查看用户信息,获取租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10001', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks管控台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的ID。您可以通过调用[ListDataServiceApis](~~2780261~~)接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '提交是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\n 200\\n true\\n Invalid.Tenant.ConnectionNotExists\\n true\\n","errorExample":""}]', + 'title' => '提交数据服务API', + ], + 'SaveDataServiceApiTestResult' => [ + 'summary' => '该接口用于保存API测试的结果。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '169364', + 'abilityTreeNodes' => [ + 'FEATUREdideNC84FD', + ], + ], + 'parameters' => [ + [ + 'name' => 'ApiId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'API的ID。您可以通过调用[ListDataServiceApis](~~174012~~)接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '417381955954827', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '10001', + ], + ], + [ + 'name' => 'ResultSample', + 'in' => 'formData', + 'schema' => [ + 'description' => '非必填参数,API测试成功的结果示例。', + 'type' => 'string', + 'required' => false, + 'example' => '{ "data": { "totalNum": 0, "pageSize": 10, "rows": [], "pageNum": 1 }, "errCode": 0, "requestId": "0bc14a561678159140664515*****", "errMsg": "success", "apiLog": null}', + ], + ], + [ + 'name' => 'FailResultSample', + 'in' => 'formData', + 'schema' => [ + 'description' => '非必填参数,API测试失败的结果示例。', + 'type' => 'string', + 'required' => false, + 'example' => '{"apiLog": null, "data": null, "errCode": 1108110622, "errMsg": "data Source query failed", "requestId": "0 bc14a **** 5902762031 ****"}', + ], + ], + [ + 'name' => 'AutoGenerate', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否使用系统自动生成结果,如果不传resultSample/failResultSample参数,则使用系统默认生成的。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EF***** ', + ], + 'Data' => [ + 'description' => '是否成功保存测试结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EF*****\\\\t\\",\\n \\"Data\\": true,\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\t\\n true\\n true\\n 200\\n","errorExample":""}]', + 'title' => '保存API测试结果', + ], + 'GetOpSensitiveData' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => ' 获取访问记录的条件设置。可选的参数如下:'."\n" + .'- dbType:数据类型。'."\n" + .'- instanceName:实例名称。'."\n" + .'- databaseName:数据库名称。'."\n" + .'- projectName:项目名称。'."\n" + .'- clusterName:集群名称。'."\n" + ."\n" + .'示例获取Hologres中ABC实例的abc数据库的敏感数据访问记录:'."\n" + .'[ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"} ]'."\n" + ."\n" + .'实际使用时,您需要根据业务使用的引擎进行配置。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '[ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"}, {"dbType":"ODPS.ODPS","projectName":"adbc"} ]', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页展示的数据量,最小值为1,最大值为1000。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '1000', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => [ + 'description' => '页码数。最小值为1,最大值为1000。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '1000', + 'minimum' => '1', + 'example' => '10', + ], + ], + [ + 'name' => 'Date', + 'in' => 'query', + 'schema' => [ + 'description' => '获取访问记录的日期。格式为:yyyyMMdd。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '20210116', + ], + ], + [ + 'name' => 'OpType', + 'in' => 'query', + 'schema' => [ + 'description' => '用户对数据的操作类型。取值如下:'."\n" + .'- SQL_SELECT,访问行为。例如,使用SELECT查询数据。'."\n" + .'- TUNNEL_DOWNLOAD,导出行为。例如,下载数据。', + 'type' => 'string', + 'required' => false, + 'example' => 'SQL_SELECT', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'OpSensitiveData' => [ + 'description' => '返回的敏感数据记录信息。包括totalCount(敏感数据总条数)和opRiskDatas(风险数据列表)。'."\n" + .'其中opRiskDatas(风险数据列表)包括:'."\n" + .'- sensType:敏感类型。'."\n" + .'- sensLevel:敏感级别(数字越大表示敏感程度越高)。'."\n" + .'- opType:操作类型。'."\n" + .'- sql:操作执行的sql语句。'."\n" + .'- opAccount:执行操作的账号。'."\n" + .'- opTime:执行操作的时间。', + 'type' => 'string', + 'example' => '"opSensDatas": [ { "sensLevel": "L4", "opTime": "2021-02-07 00:14:51", "opAccount": "ALIYUN$dsg_test", "sensType": "Mobile phone number", "sql": "select * from dsg_demo.tbl_phonebook where phone_no = '1331111****';" } ], "totalCount": 6', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Param', + 'errorMessage' => 'The request parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.NoTenant', + 'errorMessage' => 'The tenant information cannot be obtained using user ID.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DQC.BizError', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"OpSensitiveData\\": \\"\\\\\\"opSensDatas\\\\\\": [ { \\\\\\"sensLevel\\\\\\": \\\\\\"L4\\\\\\", \\\\\\"opTime\\\\\\": \\\\\\"2021-02-07 00:14:51\\\\\\", \\\\\\"opAccount\\\\\\": \\\\\\"ALIYUN$dsg_test\\\\\\", \\\\\\"sensType\\\\\\": \\\\\\"Mobile phone number\\\\\\", \\\\\\"sql\\\\\\": \\\\\\"select * from dsg_demo.tbl_phonebook where phone_no = '1331111****';\\\\\\" } ], \\\\\\"totalCount\\\\\\": 6\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n \\"opSensDatas\\": [ { \\"sensLevel\\": \\"L4\\", \\"opTime\\": \\"2021-02-07 00:14:51\\", \\"opAccount\\": \\"ALIYUN$dsg_test\\", \\"sensType\\": \\"手机号\\", \\"sql\\": \\"select * from dsg_demo.tbl_phonebook where phone_no = &#39;1331111****&#39;;\\" } ], \\"totalCount\\": 6\\n 0000-ABCD-EFG****\\n","errorExample":""}]', + 'title' => '获取敏感数据访问记录', + 'summary' => '获取租户下所有DataWorks工作空间指定日期的敏感数据访问记录。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DesensitizeData' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'Data', + 'in' => 'formData', + 'schema' => [ + 'description' => '输入的待脱敏数据。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '15365291784', + ], + ], + [ + 'name' => 'SceneCode', + 'in' => 'formData', + 'schema' => [ + 'description' => '脱敏场景码。您可以进入DataWorks管控台的数据保护伞,在数据脱敏管理页面查看。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '_default_scene_code', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'DesensitizeData' => [ + 'description' => '脱敏后的结果数据。', + 'type' => 'string', + 'example' => '{ "desensData": "**198807120510**" }', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => 'BCA321BA-46C5-40E9-8A08-6******', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.NoTenant', + 'errorMessage' => 'The tenant information cannot be obtained using user ID.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DQC.BizError', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"DesensitizeData\\": \\"{ \\\\\\"desensData\\\\\\": \\\\\\"**198807120510**\\\\\\" }\\",\\n \\"RequestId\\": \\"BCA321BA-46C5-40E9-8A08-6******\\"\\n}","errorExample":""},{"type":"xml","example":"BCA321BA-46C5-40E9-8A08-6******\\n{ \\"desensData\\": \\"**198807120510**\\" }","errorExample":""}]', + 'title' => '数据脱敏', + 'summary' => '输入待脱敏数据,返回脱敏后的结果数据。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetOpRiskData' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页返回的数据量,最大值为1000。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '1000', + 'minimum' => '1', + 'example' => '10', + ], + ], + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => [ + 'description' => '页码数,最小值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '1000', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '获取访问记录的条件设置。可选的参数如下:'."\n" + .'- dbType:数据类型。'."\n" + .'- instanceName:实例名称。'."\n" + .'- databaseName:数据库名称。'."\n" + .'- projectName:项目名称。'."\n" + .'- clusterName:集群名称。'."\n" + ."\n" + .'示例获取Hologres中ABC实例的abc数据库的敏感数据访问记录:'."\n" + .'[ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"} ]'."\n" + ."\n" + .'实际使用时,您需要根据业务使用的引擎进行配置。', + 'type' => 'string', + 'required' => false, + 'example' => '[ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"}, {"dbType":"ODPS.ODPS","projectName":"adbc"} ]', + ], + ], + [ + 'name' => 'Date', + 'in' => 'query', + 'schema' => [ + 'description' => '获取访问记录的日期。格式为:yyyyMMdd。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '20210221', + ], + ], + [ + 'name' => 'RiskType', + 'in' => 'query', + 'schema' => [ + 'description' => '指通过什么方式识别风险类型。取值如下:'."\n" + .'- 手工识别。'."\n" + .'- 风险规则名称,您可以进入DataWorks的数据保护伞,在风险识别管理页面获取。', + 'type' => 'string', + 'required' => false, + 'example' => 'Manual identification', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回参数', + 'type' => 'object', + 'properties' => [ + 'RiskData' => [ + 'description' => '返回的有风险的敏感数据信息。包括totalCount(敏感数据总条数)和opRiskDatas(风险数据列表)。'."\n" + .'其中opRiskDatas(风险数据列表)包括:'."\n" + .'- sensType:敏感类型。'."\n" + .'- sensLevel:敏感级别。'."\n" + .'- opType:操作类型。'."\n" + .'- sql:操作执行的sql语句。'."\n" + .'- opAccount:执行操作的账号。'."\n" + .'- opTime:执行操作的时间。', + 'type' => 'string', + 'example' => '{ "opRiskDatas": [ { "riskType": "Hierarchical dimension, EMR engine dimension and project dimension, EMR engine project dimension operation data, export method dimension, EMR engine", "opTime": "2021-01-04 23:39:13", "opType": "SQL_SELECT", "opAccount": "user", "sensType": "Email/name/mobile phone number", "sql": "SELECT * FROM default.jiade_1219_test_create LIMIT 20" } ], "totalCount": 499 }', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Param', + 'errorMessage' => 'The request parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.NoTenant', + 'errorMessage' => 'The tenant information cannot be obtained using user ID.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DQC.BizError', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RiskData\\": \\"{ \\\\\\"opRiskDatas\\\\\\": [ { \\\\\\"riskType\\\\\\": \\\\\\"Hierarchical dimension, EMR engine dimension and project dimension, EMR engine project dimension operation data, export method dimension, EMR engine\\\\\\", \\\\\\"opTime\\\\\\": \\\\\\"2021-01-04 23:39:13\\\\\\", \\\\\\"opType\\\\\\": \\\\\\"SQL_SELECT\\\\\\", \\\\\\"opAccount\\\\\\": \\\\\\"user\\\\\\", \\\\\\"sensType\\\\\\": \\\\\\"Email/name/mobile phone number\\\\\\", \\\\\\"sql\\\\\\": \\\\\\"SELECT * FROM default.jiade_1219_test_create LIMIT 20\\\\\\" } ], \\\\\\"totalCount\\\\\\": 499 }\\",\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\n { \\"opRiskDatas\\": [ { \\"riskType\\": \\"分级维度,EMR引擎维度and项目维度,EMR引擎项目维度的操作数据,导出方式维度,EMR引擎\\", \\"opTime\\": \\"2021-01-04 23:39:13\\", \\"opType\\": \\"SQL_SELECT\\", \\"opAccount\\": \\"user\\", \\"sensType\\": \\"邮箱/姓名/手机号\\", \\"sql\\": \\"SELECT * FROM default.jiade_1219_test_create LIMIT 20\\" } ], \\"totalCount\\": 499 }\\n","errorExample":""}]', + 'title' => '获取有风险的敏感数据访问记录', + 'summary' => '获取租户下所有DataWorks工作空间指定日期中有风险的敏感数据访问记录。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetSensitiveData' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页返回的数据量,最大值为1000。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '1000', + 'minimum' => '1', + 'example' => '1000', + ], + ], + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => [ + 'description' => '页码数,最小值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '1000', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '获取访问记录的条件设置。可选的参数如下:'."\n" + .'- dbType:数据类型。'."\n" + .'- instanceName:实例名称。'."\n" + .'- databaseName:数据库名称。'."\n" + .'- projectName:项目名称。'."\n" + .'- clusterName:集群名称。'."\n" + ."\n" + .'示例获取Hologres中ABC实例的abc数据库的敏感数据访问记录。实际使用时,您需要根据业务使用的引擎进行配置。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '[ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"}, {"dbType":"ODPS.ODPS","projectName":"adbc"} ]', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回参数', + 'type' => 'object', + 'properties' => [ + 'SensitiveData' => [ + 'description' => '返回的敏感数据信息。包括totalCount(敏感数据总条数)和sensDatas(敏感数据列表)。'."\n" + .'其中sensDatas(敏感数据列表)包括:'."\n" + .'- guid:租户元数据的唯一id,例如ODPS.ODPS类型数据的guid由project.table.column组成。'."\n" + .'- sensType:敏感类型。'."\n" + .'- sensLevel:敏感级别。', + 'type' => 'object', + 'example' => '{ "sensDatas": [ { "sensLevel": "L1", "guid": "dsg_demo.animal.dog", "sensType": "姓名" } ], "totalCount": 2171 }', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Param', + 'errorMessage' => 'The request parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.NoTenant', + 'errorMessage' => 'The tenant information cannot be obtained using user ID.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DQC.BizError', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"SensitiveData\\": {\\n \\"sensDatas\\": [\\n {\\n \\"sensLevel\\": \\"L1\\",\\n \\"guid\\": \\"dsg_demo.animal.dog\\",\\n \\"sensType\\": \\"姓名\\"\\n }\\n ],\\n \\"totalCount\\": 2171\\n },\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\n","errorExample":""}]', + 'title' => '获取敏感数据', + 'summary' => '调用GetSensitiveData,获取租户下所有DataWorks工作空间的最新敏感数据识别结果。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ScanSensitiveData' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'Data', + 'in' => 'query', + 'schema' => [ + 'description' => '待识别的数据。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '13900001234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'Sensitives' => [ + 'description' => '识别出的敏感数据信息。'."\n" + .'sensDatas表示识别出的敏感数据规则列表,包括:'."\n" + .'- hitCount:命中率,该数据命中规则的次数。'."\n" + .'- ruleName:规则名称。', + 'type' => 'object', + 'example' => '{ "sensDatas": [ { "hitCount": 1, "ruleName": "手机号" } ] }', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DQC.BizError', + 'errorMessage' => 'An internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Sensitives\\": {\\n \\"sensDatas\\": [\\n {\\n \\"hitCount\\": 1,\\n \\"ruleName\\": \\"手机号\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG****\\n","errorExample":""}]', + 'title' => '扫描敏感数据', + 'summary' => '调用ScanSensitiveData识别输入数据中是否存在敏感数据。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DsgQuerySensResult' => [ + 'summary' => '该接口用于获取数据保护伞的敏感数据识别结果。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '215091', + 'abilityTreeNodes' => [ + 'FEATUREdide64ITEV', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + [ + 'name' => 'DbType', + 'in' => 'formData', + 'schema' => [ + 'description' => '数据库类型,取值为:'."\n" + .'- **ODPS.ODPS**'."\n" + .'- **HOLO.POSTGRES**'."\n" + .'- **EMR**', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'ODPS.ODPS', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'project', + ], + ], + [ + 'name' => 'SchemaName', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Schema名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'schema', + ], + ], + [ + 'name' => 'Table', + 'in' => 'formData', + 'schema' => [ + 'description' => '表名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'table', + ], + ], + [ + 'name' => 'Col', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'col', + ], + ], + [ + 'name' => 'NodeName', + 'in' => 'formData', + 'schema' => [ + 'description' => '分类节点名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'Personal information', + ], + ], + [ + 'name' => 'Level', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段等级。', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + ], + [ + 'name' => 'SensStatus', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段敏感状态:'."\n" + ."\n" + .'- 1:敏感'."\n" + .'- -1:非敏感', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => '1', + ], + ], + [ + 'name' => 'SensitiveId', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段ID。', + 'type' => 'string', + 'required' => false, + 'example' => '10241024', + ], + ], + [ + 'name' => 'SensitiveName', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'name', + ], + ], + [ + 'name' => 'Order', + 'in' => 'formData', + 'schema' => [ + 'description' => '排序方式:'."\n" + .'- DESC:降序。'."\n" + .'- ASC:升序。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'DESC', + ], + ], + [ + 'name' => 'OrderField', + 'in' => 'formData', + 'schema' => [ + 'description' => '用于排序的字段:'."\n" + .'- gmt_create'."\n" + .'- gmt_modified', + 'type' => 'string', + 'required' => false, + 'example' => 'gmt_create', + ], + ], + [ + 'name' => 'PageNo', + 'in' => 'formData', + 'schema' => [ + 'description' => '页码数,最小值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大为20条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。'."\n" + ."\n", + 'type' => 'string', + 'example' => '400', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'any', + 'example' => '1234', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。'."\n", + 'type' => 'string', + 'example' => '900000001', + ], + 'DynamicErrorCode' => [ + 'description' => '错误码。取值同ErrorCode。', + 'type' => 'string', + 'example' => '400', + ], + 'DynamicErrorMessage' => [ + 'description' => '错误信息。取值同ErrorMessage。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"400\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": \\"1234\\",\\n \\"RequestId\\": \\"900000001\\",\\n \\"DynamicErrorCode\\": \\"400\\",\\n \\"DynamicErrorMessage\\": \\"Missing parameter\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 400\\n 缺少参数\\n 400\\n 1234\\n 900000001\\n 400\\n 缺少参数\\n","errorExample":""}]', + 'title' => '获取敏感数据识别结果', + 'description' => '该API功能对应数据保护伞控制台界面的查询功能,通过与租户ID关联,获取指定租户的敏感数据识别结果。'."\n" + .'- 支持根据数据源类型、项目空间等维度进行筛选。'."\n" + .'- 支持对某个字段进行升降序排序。'."\n" + .'- 支持分页查询。', + ], + 'QueryDefaultTemplate' => [ + 'summary' => '调用QueryDefaultTemplate接口查询数据保护伞定义的默认分类分级模板。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '212265', + 'abilityTreeNodes' => [ + 'FEATUREdideBVSRMP', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '1024102', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'required' => true, + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'required' => true, + 'example' => '9990030003', + 'default' => 'null', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'required' => true, + 'example' => 'Parameter error', + 'default' => 'null', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '400', + ], + 'Data' => [ + 'description' => '返回的默认分类分级模板数据。JSON格式。', + 'type' => 'any', + 'required' => true, + 'example' => '[{"gmtModified":1709022365000,"fileName":"default file","isDelete":false,"isDefaultTemplate":true}]', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'required' => true, + 'example' => '102400001', + 'default' => 'null', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Parameter error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": \\"[{\\\\\\"gmtModified\\\\\\":1709022365000,\\\\\\"fileName\\\\\\":\\\\\\"default file\\\\\\",\\\\\\"isDelete\\\\\\":false,\\\\\\"isDefaultTemplate\\\\\\":true}]\\",\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 参数错误\\n 400\\n [{\\"gmtModified\\":1709022365000,\\"fileName\\":\\"默认文件\\",\\"isDelete\\":false,\\"isDefaultTemplate\\":true}]\\n 102400001\\n","errorExample":""}]', + 'title' => '查询默认分类分级模板', + ], + 'DsgStopSensIdentify' => [ + 'summary' => '调用DsgStopSensIdentify接口,停止数据保护伞定义的分类分级敏感数据识别任务。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '213660', + 'abilityTreeNodes' => [ + 'FEATUREdide1B7LSC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + [ + 'name' => 'JobId', + 'in' => 'formData', + 'schema' => [ + 'description' => '数据保护伞的识别任务ID。可通过调用[DsgRunSensIdentify](~~2744039~~)接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '1000001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回数据,布尔型。', + 'type' => 'any', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '10000111', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"true\\",\\n \\"RequestId\\": \\"10000111\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 200\\n true\\n 10000001\\n","errorExample":""}]', + 'title' => '停止分类分级敏感数据识别任务', + ], + 'QuerySensClassification' => [ + 'summary' => '调用QuerySensClassification接口,查询数据保护伞分类分级中的分类节点。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '212270', + 'abilityTreeNodes' => [ + 'FEATUREdideBVSRMP', + ], + ], + 'parameters' => [ + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '数据保护伞定义的模板ID。可通过调用[QueryDefaultTemplate](~~2743948~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'example' => 'e1970541-6cf5-4d23-b101-d5b66****', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '返回的数据保护伞分类分级中的分类节点信息。JSON格式。', + 'type' => 'any', + 'example' => '[{ "nodeName": "teset1", "sensitiveNotNull": true, "nodeId": "1aac2e35-b437-486b-95c7-a5ae48371024", "nodeOldId": "1aac2e35-b437-486b-95c7-a5ae48371024", "parentId": "0" }]', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '10000001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": \\"[{ \\\\\\"nodeName\\\\\\": \\\\\\"teset1\\\\\\", \\\\\\"sensitiveNotNull\\\\\\": true, \\\\\\"nodeId\\\\\\": \\\\\\"1aac2e35-b437-486b-95c7-a5ae48371024\\\\\\", \\\\\\"nodeOldId\\\\\\": \\\\\\"1aac2e35-b437-486b-95c7-a5ae48371024\\\\\\", \\\\\\"parentId\\\\\\": \\\\\\"0\\\\\\" }]\\",\\n \\"RequestId\\": \\"10000001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 400\\n [{ \\"nodeName\\": \\"teset1\\", \\"sensitiveNotNull\\": true, \\"nodeId\\": \\"1aac2e35-b437-486b-95c7-a5ae48371024\\", \\"nodeOldId\\": \\"1aac2e35-b437-486b-95c7-a5ae48371024\\", \\"parentId\\": \\"0\\" }]\\n 10000001\\n","errorExample":""}]', + 'title' => '查询分类分级中的分类节点', + ], + 'QuerySensLevel' => [ + 'summary' => '调用QuerySensLevel接口,查询在数据保护伞定义的敏感数据等级。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '212269', + 'abilityTreeNodes' => [ + 'FEATUREdidePQ4SAC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '数据保护伞定义的模板ID。可通过调用[QueryDefaultTemplate](~~2743948~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'example' => 'e1970541-6cf5-4d23-b101-d5b6****', + ], + ], + [ + 'name' => 'tenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回的数据保护伞定义的敏感数据等级。JSON数组格式。', + 'type' => 'any', + 'example' => '[{"level":1,"isSensitive":false,"levelName":"1level"},{"level":2,"isSensitive":false,"levelName":"2level"}]', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '10000001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"[{\\\\\\"level\\\\\\":1,\\\\\\"isSensitive\\\\\\":false,\\\\\\"levelName\\\\\\":\\\\\\"1level\\\\\\"},{\\\\\\"level\\\\\\":2,\\\\\\"isSensitive\\\\\\":false,\\\\\\"levelName\\\\\\":\\\\\\"2level\\\\\\"}]\\",\\n \\"RequestId\\": \\"10000001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 200\\n [{\\"level\\":1,\\"isSensitive\\":false,\\"levelName\\":\\"1level\\"},{\\"level\\":2,\\"isSensitive\\":false,\\"levelName\\":\\"2level\\"}]\\n 10000001\\n","errorExample":""}]', + 'title' => '查询敏感数据等级', + ], + 'QueryRecognizeRulesType' => [ + 'summary' => '调用QueryRecognizeRulesType接口,查询数据保护伞定义的敏感字段内置识别规则类型。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '212274', + 'abilityTreeNodes' => [ + 'FEATUREdideDCM5VK', + ], + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030002', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回的敏感字段内置识别规则类型,JSON格式。', + 'type' => 'any', + 'example' => '{ "HttpStatusCode": 200, "Data": [ { "Regular Expression": "1" }, { "Recognize Rule": "2" }, { "Sample Library": "3" }, { "Model": "4" } ], "Success": true }', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '10000001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030002\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"{ \\\\\\"HttpStatusCode\\\\\\": 200, \\\\\\"Data\\\\\\": [ { \\\\\\"Regular Expression\\\\\\": \\\\\\"1\\\\\\" }, { \\\\\\"Recognize Rule\\\\\\": \\\\\\"2\\\\\\" }, { \\\\\\"Sample Library\\\\\\": \\\\\\"3\\\\\\" }, { \\\\\\"Model\\\\\\": \\\\\\"4\\\\\\" } ], \\\\\\"Success\\\\\\": true }\\",\\n \\"RequestId\\": \\"10000001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 200\\n { \\"HttpStatusCode\\": 200, \\"Data\\": [ { \\"Regular Expression\\": \\"1\\" }, { \\"Recognize Rule\\": \\"2\\" }, { \\"Sample Library\\": \\"3\\" }, { \\"Model\\": \\"4\\" } ], \\"Success\\": true }\\n 10000001\\n","errorExample":""}]', + 'title' => '查询敏感字段内置识别规则类型', + ], + 'DsgRunSensIdentify' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '212734', + 'abilityTreeNodes' => [ + 'FEATUREdide1B7LSC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + [ + 'name' => 'EsMetaParams', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '指定元数据扫描的参数对象列表。', + 'type' => 'array', + 'items' => [ + 'description' => '指定元数据扫描的参数对象。', + 'type' => 'object', + 'properties' => [ + 'DbType' => [ + 'description' => '数据源类型,取值如下:'."\n" + .'- ODPS.ODPS'."\n" + .'- EMR'."\n" + .'- HOLO.POSTGRES', + 'type' => 'string', + 'required' => false, + 'example' => 'ODPS.ODPS', + ], + 'ClusterId' => [ + 'description' => '集群ID。根据您自己的数据源集群获取。', + 'type' => 'string', + 'required' => false, + 'example' => '101010', + ], + 'ProjectName' => [ + 'description' => 'DataWorks工作空间的名称。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间名称。', + 'type' => 'string', + 'required' => false, + 'example' => '16666767566****', + ], + 'SchemaName' => [ + 'description' => 'Schema名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'default', + ], + 'TableName' => [ + 'description' => '表名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'table1', + ], + 'TableNameList' => [ + 'description' => '表名称列表。', + 'type' => 'array', + 'items' => [ + 'description' => '表名称列表内容。', + 'type' => 'string', + 'required' => false, + 'example' => 'table1,table2', + ], + 'required' => false, + ], + 'User' => [ + 'description' => '操作者的用户名。建议填写您的阿里云账号名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx-uat', + ], + 'InstanceId' => [ + 'description' => '实例ID。根据您的数据源获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => 'hgprecn-cn-9lb37k****', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'DataWorksResult', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '生成的敏感数据识别任务的任务ID。INT 64类型。', + 'type' => 'any', + 'example' => '1000001', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '10000001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"Success\\": true,\\n \\"Data\\": \\"1000001\\",\\n \\"HttpStatusCode\\": 400,\\n \\"RequestId\\": \\"10000001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 9990030003\\n 缺少参数\\n true\\n 1000001\\n 400\\n 10000001\\n","errorExample":""}]', + 'title' => ' 启动敏感数据识别任务', + 'summary' => '调用DsgRunSensIdentify接口启动一个数据保护伞的敏感数据识别任务。', + ], + 'DeleteRecognizeRule' => [ + 'summary' => '调用DeleteRecognizeRule接口,删除在数据保护伞定义的分类分级规则。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '212271', + 'abilityTreeNodes' => [ + 'FEATUREdideDCM5VK', + ], + ], + 'parameters' => [ + [ + 'name' => 'SensitiveId', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段ID。可通过调用[QuerySensNodeInfo](~~2747189~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'example' => '27f5f5e2-ec60-4567-b1e4-77****4', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241023', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回数据:是否删除成功。', + 'type' => 'any', + 'example' => '{ "HttpStatusCode": 200, "Success": true }', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '10000001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + [ + 'errorCode' => 'SENSITIVEDELETEERROR', + 'errorMessage' => 'The sensitive field is not allowed to delete. Check sensitive field status and binding desensitization rule.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"{ \\\\\\"HttpStatusCode\\\\\\": 200, \\\\\\"Success\\\\\\": true }\\",\\n \\"RequestId\\": \\"10000001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 200\\n { \\"HttpStatusCode\\": 200, \\"Success\\": true }\\n 10000001\\n","errorExample":""}]', + 'title' => '删除分类分级规则', + ], + 'QuerySensNodeInfo' => [ + 'summary' => '调用QuerySensNodeInfo接口查询数据保护伞的分类分级识别规则。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '217792', + 'abilityTreeNodes' => [ + 'FEATUREdideDCM5VK', + ], + ], + 'parameters' => [ + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分类分级模板ID。可通过调用[QueryDefaultTemplate](~~2743948~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'example' => 'e1970541-6cf5-4d23-b101-d5b****', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分类分级节点ID。可通过调用[QuerySensClassification](~~2746850~~)接口获取,或登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据保护伞界面直接获取。', + 'type' => 'string', + 'required' => false, + 'example' => '0ce67949-0810-400f-a24a-cc5ffafe1024', + ], + ], + [ + 'name' => 'SensitiveName', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段名称。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据保护伞界面直接获取。', + 'type' => 'string', + 'required' => false, + 'example' => 'ID card', + ], + ], + [ + 'name' => 'PageNo', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页查询页码数。取值:从1开始。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页查询每页显示的条数。取值:10~1000,建议大小为10~100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'status', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段的状态。取值如下:'."\n" + .'- 0:草稿态。'."\n" + .'- 1:发布态。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回的JSON格式业务数据。', + 'type' => 'any', + 'example' => '{"success": true, "httpStatusCode": 200, "data": { "result": [ { "sensitiveName": "certificate expiration date", "sensitiveId": "fd4ff5a2-9537-43d1-8e4f-1d0b5ffaac12", "status": 0, "templateName": "built-in classification and grading template", "keyRuleId": "228248921215042 certificate expiration date"} ], "totalCount": 1, "currentPage": 1, "pageSize": 10 }, "requestId": 10000001}', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '10000001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"{\\\\\\"success\\\\\\": true, \\\\\\"httpStatusCode\\\\\\": 200, \\\\\\"data\\\\\\": { \\\\\\"result\\\\\\": [ { \\\\\\"sensitiveName\\\\\\": \\\\\\"certificate expiration date\\\\\\", \\\\\\"sensitiveId\\\\\\": \\\\\\"fd4ff5a2-9537-43d1-8e4f-1d0b5ffaac12\\\\\\", \\\\\\"status\\\\\\": 0, \\\\\\"templateName\\\\\\": \\\\\\"built-in classification and grading template\\\\\\", \\\\\\"keyRuleId\\\\\\": \\\\\\"228248921215042 certificate expiration date\\\\\\"} ], \\\\\\"totalCount\\\\\\": 1, \\\\\\"currentPage\\\\\\": 1, \\\\\\"pageSize\\\\\\": 10 }, \\\\\\"requestId\\\\\\": 10000001}\\",\\n \\"RequestId\\": \\"10000001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 200\\n { \\"success\\": true, \\"httpStatusCode\\": 200, \\"data\\": { \\"result\\": [ { \\"sensitiveName\\": \\"证件到期日期\\", \\"sensitiveId\\": \\"fd4ff5a2-9537-43d1-8e4f-1d0b5ffaac12\\", \\"status\\": 0, \\"templateName\\": \\"内置分类分级模板\\", \\"keyRuleId\\": \\"228248921215042证件到期日期\\" } ], \\"totalCount\\": 1, \\"currentPage\\": 1, \\"pageSize\\": 10 }, \\"requestId\\": 10000001 }\\n 10000001\\n","errorExample":""}]', + 'title' => ' 查询分类分级识别规则', + ], + 'AddRecognizeRule' => [ + 'summary' => '调用AddRecognizeRule接口新增数据保护伞分类分级定义的敏感字段。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '212268', + 'abilityTreeNodes' => [ + 'FEATUREdideBVSRMP', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + [ + 'name' => 'AccountName', + 'in' => 'formData', + 'schema' => [ + 'description' => '创建敏感数据识别规则的阿里云用户。此处填写用户名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'dsg-uat', + ], + ], + [ + 'name' => 'SensitiveName', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义的敏感字段名称。输入长度小于128的字符串。', + 'type' => 'string', + 'required' => true, + 'example' => 'name', + ], + ], + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '模板ID。调用[QueryDefaultTemplate](~~2743948~~)接口获取当前默认的模板ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'e1970541-6cf5-4d23-b101-****', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分类结点ID。可调用[QuerySensClassification](~~2746850~~)接口获取所有结点ID,选择一个结点新建敏感字段。此处输入所选的结点ID。', + 'type' => 'string', + 'required' => true, + 'example' => '0ce67949-0810-400f-a24a-****', + ], + ], + [ + 'name' => 'NodeParent', + 'in' => 'formData', + 'schema' => [ + 'description' => '分类结点的父结点信息。可调用[QuerySensClassification](~~2746850~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'example' => 'Customer/personal/personal_Natural _Information/personal basic_profile_information', + ], + ], + [ + 'name' => 'Level', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段分级。根据模板定义的分级信息,选择其中一级作为新增敏感字段的等级。例如1~10级。', + 'type' => 'string', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'LevelName', + 'in' => 'formData', + 'schema' => [ + 'description' => '分级名称。可调用[QueryDefaultTemplate](~~2743948~~)接口,获取所选分级在模板中对应的分级名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'Confidential', + ], + ], + [ + 'name' => 'SensitiveDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段描述。长度小于128的字符串。', + 'type' => 'string', + 'required' => false, + 'example' => 'This is a sensitive field that identifies the name.', + ], + ], + [ + 'name' => 'OperationType', + 'in' => 'formData', + 'schema' => [ + 'description' => '运算类型。取值如下:'."\n" + .'- 0:或'."\n" + .'- 1:与', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'RecognizeRulesType', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感数据识别规则类型:'."\n" + .'- 1:正则表达式。'."\n" + .'- 2:内置规则。'."\n" + .'- 3:样本库。'."\n" + .'- 4:自生成模型。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'RecognizeRules', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感数据识别规则内容。可调用[QuerySensNodeInfo](~~2747189~~)接口,参考内置规则同字段的配置。', + 'type' => 'string', + 'required' => false, + 'example' => '{"contentRule":{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.GenderCond"},"_clazz":"com.alipay.dsg.dal.model.RuleContent"}', + ], + ], + [ + 'name' => 'ContentScan', + 'in' => 'formData', + 'schema' => [ + 'description' => '内容识别。可通过调用[QuerySensNodeInfo](~~2747189~~)接口,参考内置规则的同字段配置。', + 'type' => 'string', + 'required' => false, + 'example' => '{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.NationalityCond"}', + ], + ], + [ + 'name' => 'HitThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '命中阈值。若抽样数据中,超过阈值百分比(例如,60%)的数据命中NER模型,则认为命中该敏感字段。取值:0~100之间的整数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '50', + ], + ], + [ + 'name' => 'ColScan', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段扫描,仅识别赋值的字段。'."\n" + .'- 取值格式:${项目空间}.${表名}.${字段名}或${项目空间}.${SCHEMA}.${表名}.${字段名}。'."\n" + .'- 支持*通配符,如default.table.column1*可以匹配default.table.column10等*后面的任意内容。', + 'type' => 'string', + 'required' => false, + 'example' => 'default.qujian.*', + ], + ], + [ + 'name' => 'ColExclude', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段排除,即不识别赋值的字段。'."\n" + .'- 取值格式:${项目空间}.${表名}.${字段名}或${项目空间}.${SCHEMA}.${表名}.${字段名}。'."\n" + .'- 支持*通配符,如default.table.column1*可以匹配default.table.column10等*后面的任意内容。', + 'type' => 'string', + 'required' => false, + 'example' => 'default.qujian.*6', + ], + ], + [ + 'name' => 'CommentScan', + 'in' => 'formData', + 'schema' => [ + 'description' => '内容扫描。取值为您的数据资产中每个字段注释信息的文本,支持模糊匹配。', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + ], + [ + 'name' => 'Status', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段的生效状态。取值如下:'."\n" + .'- 0:草稿。'."\n" + .'- 1:生效。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回结果,JSON格式数据。', + 'type' => 'any', + 'example' => '{ "HttpStatusCode": 200, "Success": true }', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '10000001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"{ \\\\\\"HttpStatusCode\\\\\\": 200, \\\\\\"Success\\\\\\": true }\\",\\n \\"RequestId\\": \\"10000001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 200\\n { \\"HttpStatusCode\\": 200, \\"Success\\": true }\\n 10000001\\n","errorExample":""}]', + 'title' => '新增分类分级定义的敏感字段', + ], + 'EditRecognizeRule' => [ + 'summary' => '调用EditRecognizeRule接口编辑数据保护伞分类分级定义的敏感字段。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '212267', + 'abilityTreeNodes' => [ + 'FEATUREdideDCM5VK', + ], + ], + 'parameters' => [ + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '102410000', + ], + ], + [ + 'name' => 'AccountName', + 'in' => 'formData', + 'schema' => [ + 'description' => '新建敏感数据识别规则的阿里云用户。此处填写用户名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'dsg-uat', + ], + ], + [ + 'name' => 'SensitiveId', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段ID。可调用[QuerySensNodeInfo](~~2747189~~)接口获取全量敏感字段ID,或调用[QueryRecognizeRuleDetail](~~2766023~~)接口查询特定敏感字段ID。', + 'type' => 'string', + 'required' => true, + 'example' => '1a928de7-3962-4e07-93ac-e1973baa1024', + ], + ], + [ + 'name' => 'SensitiveName', + 'in' => 'formData', + 'schema' => [ + 'description' => '自定义的敏感字段名称。输入长度小于128的字符串。', + 'type' => 'string', + 'required' => true, + 'example' => 'name', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '分类结点ID。可调用[QuerySensClassification](~~2746850~~)接口获取所有结点ID,选择一个结点新建敏感字段。此处输入所选的结点ID。', + 'type' => 'string', + 'required' => true, + 'example' => '0ce67949-0810-400f-a24a-cc5ffafe1024', + ], + ], + [ + 'name' => 'NodeParent', + 'in' => 'formData', + 'schema' => [ + 'description' => '分类结点的父结点信息。可调用[QuerySensClassification](~~2746850~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'example' => 'Customer/personal/personal_Natural_Information/personal_basic_profile_information', + ], + ], + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '模板ID。调用[QueryDefaultTemplate](~~2743948~~)接口获取当前默认的模板ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'e1970541-6cf5-4d23-b101-d5b66f6e1024', + ], + ], + [ + 'name' => 'level', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段分级。根据模板定义的分级信息,选择其中一级作为新增敏感字段的等级。例如1~10级。', + 'type' => 'string', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'LevelName', + 'in' => 'formData', + 'schema' => [ + 'description' => '分级名称。可调用[QueryDefaultTemplate](~~2743948~~)接口,获取所选分级在模板中对应的分级名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'Confidential', + ], + ], + [ + 'name' => 'SensitiveDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段描述。长度小于128的字符串。', + 'type' => 'string', + 'required' => false, + 'example' => 'This is a sensitive field that identifies the name.', + ], + ], + [ + 'name' => 'Status', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段的生效状态。取值如下:'."\n" + .'- 0:草稿。'."\n" + .'- 1:生效。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'OperationType', + 'in' => 'formData', + 'schema' => [ + 'description' => '运算类型。取值如下:'."\n" + .'- 0:或'."\n" + .'- 1:与', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'RecognizeRulesType', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感数据识别规则类型:'."\n" + .'- 1:正则表达式。'."\n" + .'- 2:内置规则。'."\n" + .'- 3:样本库。'."\n" + .'- 4:自生成模型。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'RecognizeRules', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感数据识别规则内容。可调用[QuerySensNodeInfo](~~2747189~~)接口,参考内置规则同字段的配置。', + 'type' => 'string', + 'required' => false, + 'example' => '{"contentRule":{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.GenderCond"},"_clazz":"com.alipay.dsg.dal.model.RuleContent"}', + ], + ], + [ + 'name' => 'ContentScan', + 'in' => 'formData', + 'schema' => [ + 'description' => '内容识别。可通过调用[QuerySensNodeInfo](~~2747189~~)接口,参考内置规则的同字段配置。', + 'type' => 'string', + 'required' => false, + 'example' => '{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.NationalityCond"}', + ], + ], + [ + 'name' => 'ColScan', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段扫描,仅识别赋值的字段。'."\n" + .'- 取值格式:${项目空间}.${表名}.${字段名}或${项目空间}.${SCHEMA}.${表名}.${字段名}。'."\n" + .'- 支持*通配符,如default.table.column1*可以匹配default.table.column10等*后面的任意内容。', + 'type' => 'string', + 'required' => false, + 'example' => 'default.qujian.*', + ], + ], + [ + 'name' => 'ColExclude', + 'in' => 'formData', + 'schema' => [ + 'description' => '字段排除,即不识别赋值的字段。'."\n" + .'- 取值格式:${项目空间}.${表名}.${字段名}或${项目空间}.${SCHEMA}.${表名}.${字段名}。'."\n" + .'- 支持*通配符,如default.table.column1*可以匹配default.table.column10等*后面的任意内容。', + 'type' => 'string', + 'required' => false, + 'example' => 'default.qujian.*6', + ], + ], + [ + 'name' => 'CommentScan', + 'in' => 'formData', + 'schema' => [ + 'description' => '内容扫描。取值为您的数据资产中每个字段注释信息的文本,支持模糊匹配。', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + ], + [ + 'name' => 'HitThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '命中阈值。若抽样数据中,超过阈值百分比(例如,60%)的数据命中NER模型,则认为命中该敏感字段。取值:0~100之间的整数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '50', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回结果,JSON格式数据。', + 'type' => 'any', + 'example' => '{ "HttpStatusCode": 200, "Success": true }', + ], + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => '10000001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"{ \\\\\\"HttpStatusCode\\\\\\": 200, \\\\\\"Success\\\\\\": true }\\",\\n \\"RequestId\\": \\"10000001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 200\\n { \\"HttpStatusCode\\": 200, \\"Success\\": true }\\n 10000001\\n","errorExample":""}]', + 'title' => '编辑分类分级定义的敏感字段', + ], + 'QueryRecognizeDataByRuleType' => [ + 'summary' => '调用QueryRecognizeDataByRuleType接口获取数据保护伞的敏感字段识别方式列表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '212273', + 'abilityTreeNodes' => [ + 'FEATUREdideDCM5VK', + ], + ], + 'parameters' => [ + [ + 'name' => 'RecognizeRulesType', + 'in' => 'formData', + 'schema' => [ + 'description' => '识别规则类型。可调用[QueryRecognizeRulesType](~~2746905~~)接口获取规则的类型。'."\n" + .'- 1:正则表达式'."\n" + .'- 2:内置模型'."\n" + .'- 3:样本库'."\n" + .'- 4:自生成模型', + 'type' => 'string', + 'required' => true, + 'example' => '2', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'DataWorksResult', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回数据:JSON格式。', + 'type' => 'any', + 'example' => '[{"custom": false, "name": "EducationDegree", "localeName": "EducationDegree", "templateJsonStr": "{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.EducationDegreeCond"}", "desc": ""}]', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '100000012', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"Success\\": true,\\n \\"Data\\": \\"[{\\\\\\"custom\\\\\\": false, \\\\\\"name\\\\\\": \\\\\\"EducationDegree\\\\\\", \\\\\\"localeName\\\\\\": \\\\\\"EducationDegree\\\\\\", \\\\\\"templateJsonStr\\\\\\": \\\\\\"{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.EducationDegreeCond"}\\\\\\", \\\\\\"desc\\\\\\": \\\\\\"\\\\\\"}]\\",\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"100000012\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 9990030003\\n 缺少参数\\n true\\n [{\\"custom\\": false, \\"name\\": \\"EducationDegree\\", \\"localeName\\": \\"EducationDegree\\", \\"templateJsonStr\\": \\"{&quot;_clazz&quot;:&quot;com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.EducationDegreeCond&quot;}\\", \\"desc\\": \\"\\"}]\\n 200\\n 10000001\\n","errorExample":""}]', + 'title' => '获取敏感字段识别方式列表', + ], + 'QueryRecognizeRuleDetail' => [ + 'summary' => '调用QueryRecognizeRuleDetail接口查询数据保护伞的指定敏感字段详情。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '212990', + 'abilityTreeNodes' => [ + 'FEATUREdideDCM5VK', + ], + ], + 'parameters' => [ + [ + 'name' => 'SensitiveName', + 'in' => 'formData', + 'schema' => [ + 'description' => '敏感字段名称。可调用[QuerySensNodeInfo](~~2747189~~)接口,或进入[DataWorks控制台](https://workbench.data.aliyun.com/console),在数据保护伞的分类分级界面获取敏感字段名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'Name', + ], + ], + [ + 'name' => 'TenantId', + 'in' => 'formData', + 'schema' => [ + 'description' => '租户ID。您可登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。', + 'type' => 'string', + 'required' => true, + 'example' => '10241024', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '9990030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Missing parameter', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回的敏感字段详情,JSON格式。', + 'type' => 'any', + 'example' => '{"nodeName":"basic unit overview","gmtModified":1709017449000,"hitThreshold":30,"sensitiveName":"mobile-yinni","templateId":"8222abeb-9784-4417-b420-0322926d5cbf","recognizeRulesType":2,"delete":false,"bydAccuracy":1,"colScan":"," defineType ":1,": ydAccuracy ":{" contentRule ":))," operationType ":0}," nodeParent ":" unit/unit basic information/unit basic overview "," level ":6," keyRuleId ":" 228248921215042mobile-yinni "," isDelete ":false," levelName ":" 6level "," sensitive ":false," operationType ":0," sourceName ": dsg-test-zuoyue","nodeId":"bea2fc81-90c9-45f3-b7a9-26d534208a0d","status":1}', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '100000012', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'BADPARAMETERS', + 'errorMessage' => 'Parameters are missing or in the wrong format.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"9990030003\\",\\n \\"ErrorMessage\\": \\"Missing parameter\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"{\\\\\\"nodeName\\\\\\":\\\\\\"basic unit overview\\\\\\",\\\\\\"gmtModified\\\\\\":1709017449000,\\\\\\"hitThreshold\\\\\\":30,\\\\\\"sensitiveName\\\\\\":\\\\\\"mobile-yinni\\\\\\",\\\\\\"templateId\\\\\\":\\\\\\"8222abeb-9784-4417-b420-0322926d5cbf\\\\\\",\\\\\\"recognizeRulesType\\\\\\":2,\\\\\\"delete\\\\\\":false,\\\\\\"bydAccuracy\\\\\\":1,\\\\\\"colScan\\\\\\":\\\\\\",\\\\\\" defineType \\\\\\":1,\\\\\\": ydAccuracy \\\\\\":{\\\\\\" contentRule \\\\\\":)),\\\\\\" operationType \\\\\\":0},\\\\\\" nodeParent \\\\\\":\\\\\\" unit/unit basic information/unit basic overview \\\\\\",\\\\\\" level \\\\\\":6,\\\\\\" keyRuleId \\\\\\":\\\\\\" 228248921215042mobile-yinni \\\\\\",\\\\\\" isDelete \\\\\\":false,\\\\\\" levelName \\\\\\":\\\\\\" 6level \\\\\\",\\\\\\" sensitive \\\\\\":false,\\\\\\" operationType \\\\\\":0,\\\\\\" sourceName \\\\\\": dsg-test-zuoyue\\\\\\",\\\\\\"nodeId\\\\\\":\\\\\\"bea2fc81-90c9-45f3-b7a9-26d534208a0d\\\\\\",\\\\\\"status\\\\\\":1}\\",\\n \\"RequestId\\": \\"100000012\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 9990030003\\n 缺少参数\\n 200\\n {\\"nodeName\\":\\"单位基本概况\\",\\"gmtModified\\":1709017449000,\\"hitThreshold\\":30,\\"sensitiveName\\":\\"mobile-yinni\\",\\"templateId\\":\\"8222abeb-9784-4417-b420-0322926d5cbf\\",\\"recognizeRulesType\\":2,\\"delete\\":false,\\"bydAccuracy\\":1,\\"colScan\\":\\"\\",\\"defineType\\":1,\\"ydAccuracy\\":1,\\"contentRule\\":{\\"contentRule\\":{},\\"operationType\\":0},\\"nodeParent\\":\\"单位/单位基本信息/单位基本概况\\",\\"level\\":6,\\"keyRuleId\\":\\"228248921215042mobile-yinni\\",\\"isDelete\\":false,\\"levelName\\":\\"6level\\",\\"sensitive\\":false,\\"operationType\\":0,\\"sourceName\\":\\"dsg-test-zuoyue\\",\\"nodeId\\":\\"bea2fc81-90c9-45f3-b7a9-26d534208a0d\\",\\"status\\":1}\\n 10000001\\n","errorExample":""}]', + 'title' => '查询指定敏感字段详情', + ], + 'DsgUserGroupGetOdpsRoleGroups' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '220985', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectName', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute项目名称。您可通过调用[DsgPlatformQueryProjectsAndSchemaFromMeta](~~2786303~~)接口获取MaxCompute项目列表。', + 'type' => 'string', + 'required' => true, + 'example' => 'test_project', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel>', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '返回结果数据。', + 'type' => 'array', + 'items' => [ + 'description' => 'MaxCompute角色名称。', + 'type' => 'string', + 'example' => 'test_role', + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'USERGROUP.ACCOUNTLISTSIZE.ERROR', + 'errorMessage' => 'The number of account exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.ID.ERROR', + 'errorMessage' => 'The user group ID does not match the tenant or does not exist.', + ], + [ + 'errorCode' => 'USERGROUP.LISTSIZE.ERROR', + 'errorMessage' => 'The number of user groups exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'USERACCOUNT.OWNER.ERROR', + 'errorMessage' => 'User list or owner user does not exist.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": [\\n \\"test_role\\"\\n ],\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n test_role\\n 102400001\\n","errorExample":""}]', + 'title' => '查询可选择的MaxCompute角色列表', + 'summary' => '调用DsgUserGroupGetOdpsRoleGroups接口,查询该租户在数据保护伞创建或修改用户组时,用户组成员可选择的MaxCompute角色列表。 ', + ], + 'DsgDesensPlanAddOrUpdate' => [ + 'summary' => '调用DsgDesensPlanAddOrUpdate接口新建或编辑数据脱敏规则。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219759', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'DesensRules', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '需要新增或编辑的脱敏规则集合。', + 'type' => 'array', + 'items' => [ + 'description' => '脱敏规则信息。', + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'description' => '脱敏规则ID。您可调用[DsgDesensPlanQueryList](~~2786578~~)接口查询。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '123', + ], + 'DataType' => [ + 'description' => '敏感字段类型。', + 'type' => 'string', + 'required' => true, + 'example' => 'phone', + ], + 'RuleName' => [ + 'description' => '脱敏规则名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'phone_hash', + ], + 'Status' => [ + 'description' => '脱敏规则的生效状态。取值如下:'."\n" + .'- 0:失效。'."\n" + .'- 1:生效。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + 'SceneIds' => [ + 'description' => '二级脱敏场景。', + 'type' => 'array', + 'items' => [ + 'description' => '二级脱敏场景ID。此处输入的二级脱敏场景需要未配置DataType参数指定的敏感字段类型脱敏规则。您可调用[DsgSceneQuerySceneListByName](~~2786322~~)查询脱敏场景ID。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '123', + ], + 'required' => true, + ], + 'Owner' => [ + 'description' => '脱敏规则的负责人。', + 'type' => 'string', + 'required' => true, + 'example' => 'test_user', + ], + 'CheckWatermark' => [ + 'description' => '是否添加水印。取值如下:'."\n" + .'- true:是'."\n" + .'- false:否', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + 'DesensPlan' => [ + 'description' => '脱敏规则。', + 'type' => 'object', + 'properties' => [ + 'DesensPlanType' => [ + 'description' => '脱敏规则中配置的脱敏方式。取值如下:'."\n" + .'- 哈希:hash'."\n" + .'- 假名:mapping'."\n" + .'- 掩盖:mask'."\n" + .'- 字符替换:charreplacement'."\n" + .'- 区间变换:intervalselect'."\n" + .'- 取整:decimalpoint'."\n" + .'- 置空:emptydesens', + 'type' => 'string', + 'required' => true, + 'example' => 'hash', + ], + 'ExtParam' => [ + 'description' => '脱敏规则参数。', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'any', + 'description' => '脱敏规则参数配置,根据您要配置的脱敏规则添加不同参数,具体内容请参见下文示例。', + 'example' => '{ "algo": "MD5", "salt":6 }', + ], + ], + ], + 'required' => true, + ], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'true:调用成功。'."\n" + .'false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '新增或编辑的执行结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + [ + 'errorCode' => 'DESENSPLAN.DATATYPE.ERROR', + 'errorMessage' => 'Sensitive type already has a desensitization rule.', + ], + [ + 'errorCode' => 'DESENSPLAN.DATATYPENOTEXIST.ERROR', + 'errorMessage' => 'Sensitive type not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.ID.ERROR', + 'errorMessage' => 'Desensitization rule ID does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'DESENSPLAN.PARAM.ERROR', + 'errorMessage' => 'Desensitization rule parameter error.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENECODE.ERROR', + 'errorMessage' => 'Scene code does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENEID.ERROR', + 'errorMessage' => 'Scene ID does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENEIDLEVEL.ERROR', + 'errorMessage' => 'The scene is not a secondary scene.', + ], + [ + 'errorCode' => 'DESENSPLAN.SIZE.ERROR', + 'errorMessage' => 'The number of desens plan exceeds the limit.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '新建或编辑数据脱敏规则', + 'requestParamsDescription' => 'ExtParam为动态参数,对于不同脱敏规则配置不同,参考示例如下:'."\n" + ."\n" + .'```'."\n" + .'哈希:'."\n" + .'{'."\n" + .' "algo": "MD5",'."\n" + .' "salt": 6'."\n" + .'}'."\n" + .'假名:'."\n" + .'{'."\n" + .' "charset": "Aa",'."\n" + .' "salt": 6'."\n" + .'}'."\n" + .'掩盖:'."\n" + .'{'."\n" + .' "before": 3,'."\n" + .' "after": 4'."\n" + .'}'."\n" + .'自定义掩盖:'."\n" + .'{'."\n" + .' "separatorList": ['."\n" + .' {'."\n" + .' "desens": true,'."\n" + .' "left": 3'."\n" + .' },'."\n" + .' {'."\n" + .' "desens": false,'."\n" + .' "left": 6'."\n" + .' },'."\n" + .' {'."\n" + .' "desens": true,'."\n" + .' "left": -99'."\n" + .' }'."\n" + .' ]'."\n" + .'}'."\n" + .'样本值字符替换:'."\n" + .'{'."\n" + .' "library": "test_library",'."\n" + .' "position": 3'."\n" + .'}'."\n" + .'固定值字符替换:'."\n" + .'{'."\n" + .' "replace": "repData",'."\n" + .' "position": 3'."\n" + .'}'."\n" + .'随机字符替换:'."\n" + .'{'."\n" + .' "replace": "repData"'."\n" + .'}'."\n" + .'自定义字符替换:'."\n" + .'{'."\n" + .' "separatorList": ['."\n" + .' {'."\n" + .' "desensParam": {'."\n" + .' "replace": "repData"'."\n" + .' },'."\n" + .' "left": 3'."\n" + .' },'."\n" + .' {'."\n" + .' "desensParam": {'."\n" + .' "library": "test_library"'."\n" + .' },'."\n" + .' "left": 6'."\n" + .' },'."\n" + .' {'."\n" + .' "desensParam": {'."\n" + .' },'."\n" + .' "left": 99'."\n" + .' }'."\n" + .' ]'."\n" + .'}'."\n" + .'区间变换:'."\n" + .'{'."\n" + .' "intervalselects": ['."\n" + .' {'."\n" + .' "desens": "1",'."\n" + .' "interval": ['."\n" + .' "1",'."\n" + .' "100"'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .'}'."\n" + .'取整:'."\n" + .'{'."\n" + .'"point":3'."\n" + .'}'."\n" + .'置空:'."\n" + .'{}'."\n" + .'```'."\n" + ."\n" + .'具体支持的脱敏方式及相关规则,可参考[DsgQueryDefaultTemplates](~~2786306~~)接口查询。', + ], + 'DsgPlatformQueryProjectsAndSchemaFromMeta' => [ + 'summary' => '调用DsgPlatformQueryProjectsAndSchemaFromMeta接口,查询当前租户下不同类型的引擎实例列表。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219458', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'EngineName', + 'in' => 'query', + 'schema' => [ + 'title' => '引擎名称', + 'description' => '引擎类型。取值如下:'."\n" + .'- ODPS.ODPS'."\n" + .'- EMR'."\n" + .'- HOLO.POSTGRES', + 'type' => 'string', + 'required' => true, + 'example' => 'EMR', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel>', + 'description' => 'OpenApiResultModel>', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Project' => [ + 'description' => '引擎名称。', + 'type' => 'string', + 'example' => 'emr_test_project', + ], + 'ClusterId' => [ + 'description' => 'EMR集群ID。仅当请求参数EngineName(引擎类型)取值为EMR时,返回数据才会生成该参数。', + 'type' => 'string', + 'example' => 'c-12345', + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + [ + 'errorCode' => 'ENGINE.NOT.ALLOW', + 'errorMessage' => 'engine not allow.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": [\\n {\\n \\"Project\\": \\"emr_test_project\\",\\n \\"ClusterId\\": \\"c-12345\\"\\n }\\n ],\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n \\n emr_test_project\\n c-12345\\n \\n 102400001\\n","errorExample":""}]', + 'title' => '查询当前租户下的引擎实例列表', + ], + 'DsgUserGroupDelete' => [ + 'summary' => '调用DsgUserGroupDelete接口,删除数据保护伞配置的用户组。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219457', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'Ids', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '用户组信息。', + 'type' => 'array', + 'items' => [ + 'description' => '用户组ID。您可调用[DsgUserGroupQueryList](~~2786441~~)接口查询。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '123', + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '操作结果。取值如下:'."\n" + .'- true:删除用户组成功。'."\n" + .'- false:删除用户组失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'USERGROUP.ACCOUNTLISTSIZE.ERROR', + 'errorMessage' => 'The number of account exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.ID.ERROR', + 'errorMessage' => 'The user group ID does not match the tenant or does not exist.', + ], + [ + 'errorCode' => 'USERGROUP.LISTSIZE.ERROR', + 'errorMessage' => 'The number of user groups exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'USERACCOUNT.OWNER.ERROR', + 'errorMessage' => 'User list or owner user does not exist.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '删除数据保护伞配置的用户组', + ], + 'DsgWhiteListDeleteList' => [ + 'summary' => '调用DsgWhiteListDeleteList接口,删除数据保护伞中配置的脱敏白名单。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219462', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'Ids', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '白名单ID。', + 'type' => 'array', + 'items' => [ + 'description' => '白名单ID。您可调用[DsgWhiteListQueryList](~~2786508~~)接口获取。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '123', + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '操作结果。取值如下:'."\n" + .'- true:操作成功。'."\n" + .'- false:操作失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'WHITELIST.DESENSID.ERROR', + 'errorMessage' => 'The desensitization rule ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.ENDTIME.ERROR', + 'errorMessage' => 'end time cannot be earlier than start time.', + ], + [ + 'errorCode' => 'WHITELIST.ID.ERROR', + 'errorMessage' => 'The whitelist ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.MCPROJECT.ERROR', + 'errorMessage' => 'The projectName on the bottom layer desensitization whitelist of MC cannot be empty.', + ], + [ + 'errorCode' => 'WHITELIST.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'WHITELIST.SIZE.ERROR', + 'errorMessage' => 'The number of white list exceeds the limit.', + ], + [ + 'errorCode' => 'WHITELIST.STARTTIME.ERROR', + 'errorMessage' => 'start time cannot be earlier than today.', + ], + [ + 'errorCode' => 'WHITELIST.TIMEFORMAT.ERROR', + 'errorMessage' => 'The time format is incorrect, please use yyyy MM dd HH: mm: ss format.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUP.ERROR', + 'errorMessage' => 'The user group ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUPEMPTY.ERROR', + 'errorMessage' => 'User group ID cannot be empty.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUPLISTSIZE.ERROR', + 'errorMessage' => 'The number of user group exceeds the limit.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '删除脱敏白名单', + ], + 'DsgScenedDeleteScene' => [ + 'summary' => '调用DsgScenedDeleteScene接口,删除数据保护伞中已创建的二级脱敏场景。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219460', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'Ids', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '二级脱敏场景的ID列表。', + 'type' => 'array', + 'items' => [ + 'description' => '二级脱敏场景的ID列表。您可调用[DsgSceneQuerySceneListByName](~~2786322~~)接口获取。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '123', + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '操作结果。取值如下:'."\n" + .'- true:操作成功。'."\n" + .'- false:操作失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'DESENSSCENE.ID.ERROR', + 'errorMessage' => 'The desensitization scenario ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'DESENSSCENE.IDLEVEL.ERROR', + 'errorMessage' => 'The desensitization scenario is not a secondary scenario.', + ], + [ + 'errorCode' => 'DESENSSCENE.PROJECT.ERROR', + 'errorMessage' => 'The project space does not exist.', + ], + [ + 'errorCode' => 'DESENSSCENE.SIZE.ERROR', + 'errorMessage' => 'The number of desens scene exceeds the limit.', + ], + [ + 'errorCode' => 'DESENSSCENE.UESRGROUP.ERROR', + 'errorMessage' => 'The user group ID does not match the tenant or does not exist.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '删除二级脱敏场景', + ], + 'DsgDesensPlanDelete' => [ + 'summary' => '调用DsgDesensPlanDelete接口,删除数据保护伞中已创建的脱敏规则。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '219620', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'Ids', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '脱敏规则的ID集合。', + 'type' => 'array', + 'items' => [ + 'description' => '脱敏规则ID。您可调用[DsgDesensPlanQueryList](~~2786578~~)接口获取。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '123', + ], + 'required' => true, + ], + ], + [ + 'name' => 'SceneCode', + 'in' => 'query', + 'schema' => [ + 'description' => '脱敏规则所属的一级脱敏场景Code。取值如下:'."\n" + .'- 数据开发/数据地图展示脱敏:dataworks_display_desense_code'."\n" + .'- MaxCompute引擎层脱敏:maxcompute_desense_code'."\n" + .'- MaxCompute引擎层脱敏(新):maxcompute_new_desense_code'."\n" + .'- Hologres引擎层脱敏:hologres_display_desense_code'."\n" + .'- 数据集成静态脱敏:dataworks_data_integration_desense_code'."\n" + .'- 数据分析展示脱敏:dataworks_analysis_desense_code', + 'type' => 'string', + 'required' => true, + 'example' => 'dataworks_display_desense_code', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '操作结果。取值如下:'."\n" + .'- true:操作成功。'."\n" + .'- false:操作失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + [ + 'errorCode' => 'DESENSPLAN.DATATYPE.ERROR', + 'errorMessage' => 'Sensitive type already has a desensitization rule.', + ], + [ + 'errorCode' => 'DESENSPLAN.DATATYPENOTEXIST.ERROR', + 'errorMessage' => 'Sensitive type not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.ID.ERROR', + 'errorMessage' => 'Desensitization rule ID does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'DESENSPLAN.PARAM.ERROR', + 'errorMessage' => 'Desensitization rule parameter error.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENECODE.ERROR', + 'errorMessage' => 'Scene code does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENEID.ERROR', + 'errorMessage' => 'Scene ID does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENEIDLEVEL.ERROR', + 'errorMessage' => 'The scene is not a secondary scene.', + ], + [ + 'errorCode' => 'DESENSPLAN.SIZE.ERROR', + 'errorMessage' => 'The number of desens plan exceeds the limit.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '删除脱敏规则', + ], + 'DsgDesensPlanUpdateStatus' => [ + 'summary' => '调用DsgDesensPlanUpdateStatus接口,修改脱敏规则的生效状态。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '219619', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'Ids', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '需要修改状态的脱敏规则ID集合。', + 'type' => 'array', + 'items' => [ + 'description' => '脱敏规则ID。您可调用[DsgDesensPlanQueryList](~~2786578~~)接口获取。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '123', + ], + 'required' => true, + ], + ], + [ + 'name' => 'SceneCode', + 'in' => 'query', + 'schema' => [ + 'description' => '脱敏规则所属的一级脱敏场景Code。取值如下:'."\n" + .'- 数据开发/数据地图展示脱敏:dataworks_display_desense_code'."\n" + .'- MaxCompute引擎层脱敏:maxcompute_desense_code'."\n" + .'- MaxCompute引擎层脱敏(新):maxcompute_new_desense_code'."\n" + .'- Hologres引擎层脱敏:hologres_display_desense_code'."\n" + .'- 数据集成静态脱敏:dataworks_data_integration_desense_code'."\n" + .'- 数据分析展示脱敏:dataworks_analysis_desense_code', + 'type' => 'string', + 'required' => true, + 'example' => 'dataworks_display_desense_code', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '脱敏规则的生效状态。取值如下:'."\n" + .'- 0:失效。'."\n" + .'- 1:生效。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '操作结果。取值如下:'."\n" + .'- true:操作成功。'."\n" + .'- false:操作失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + [ + 'errorCode' => 'DESENSPLAN.DATATYPE.ERROR', + 'errorMessage' => 'Sensitive type already has a desensitization rule.', + ], + [ + 'errorCode' => 'DESENSPLAN.DATATYPENOTEXIST.ERROR', + 'errorMessage' => 'Sensitive type not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.ID.ERROR', + 'errorMessage' => 'Desensitization rule ID does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'DESENSPLAN.PARAM.ERROR', + 'errorMessage' => 'Desensitization rule parameter error.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENECODE.ERROR', + 'errorMessage' => 'Scene code does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENEID.ERROR', + 'errorMessage' => 'Scene ID does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENEIDLEVEL.ERROR', + 'errorMessage' => 'The scene is not a secondary scene.', + ], + [ + 'errorCode' => 'DESENSPLAN.SIZE.ERROR', + 'errorMessage' => 'The number of desens plan exceeds the limit.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '修改脱敏规则的生效状态', + ], + 'DsgWhiteListQueryList' => [ + 'summary' => '调用DsgWhiteListQueryList接口,查询数据保护伞中配置的脱敏白名单。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219250', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码', + 'description' => '分页的页数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小', + 'description' => '每页显示的条数,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'SceneId', + 'in' => 'query', + 'schema' => [ + 'title' => '二级场景Id', + 'description' => '二级脱敏场景ID。您可调用[DsgSceneQuerySceneListByName](~~2786322~~)接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '123', + ], + ], + [ + 'name' => 'DataType', + 'in' => 'query', + 'schema' => [ + 'title' => '敏感类型关键字', + 'description' => '敏感字段类型的关键字。', + 'type' => 'string', + 'required' => false, + 'example' => 'phone', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel>', + 'description' => 'OpenApiResultModel>', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'PageData' => [ + 'description' => '分页数据。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '分页的页数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '返回的脱敏白名单总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Data' => [ + 'description' => '白名单集合。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'description' => '脱敏白名单ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'Type' => [ + 'description' => '敏感字段类型。', + 'type' => 'string', + 'example' => 'phone', + ], + 'UserGroups' => [ + 'description' => '用户组名称集合。', + 'type' => 'array', + 'items' => [ + 'description' => '用户组名称。', + 'type' => 'string', + 'example' => 'test_group', + ], + ], + 'GmtCreate' => [ + 'description' => '脱敏白名单的创建时间。', + 'type' => 'string', + 'example' => '2024-05-09 15:46:20', + ], + 'GmtModified' => [ + 'description' => '脱敏白名单的修改时间。', + 'type' => 'string', + 'example' => '2024-05-09 15:46:20', + ], + 'RuleId' => [ + 'description' => '脱敏规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'SceneId' => [ + 'description' => '二级脱敏场景ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'StartTime' => [ + 'description' => '脱敏白名单的生效时间,不能早于当前时间。单位为天。', + 'type' => 'string', + 'example' => '2024-05-09 15:46:20', + ], + 'EndTime' => [ + 'description' => '脱敏白名单的失效时间,不能早于生效时间。单位为天。', + 'type' => 'string', + 'example' => '2024-05-10 15:46:20', + ], + ], + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'WHITELIST.DESENSID.ERROR', + 'errorMessage' => 'The desensitization rule ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.ENDTIME.ERROR', + 'errorMessage' => 'end time cannot be earlier than start time.', + ], + [ + 'errorCode' => 'WHITELIST.ID.ERROR', + 'errorMessage' => 'The whitelist ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.MCPROJECT.ERROR', + 'errorMessage' => 'The projectName on the bottom layer desensitization whitelist of MC cannot be empty.', + ], + [ + 'errorCode' => 'WHITELIST.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'WHITELIST.SIZE.ERROR', + 'errorMessage' => 'The number of white list exceeds the limit.', + ], + [ + 'errorCode' => 'WHITELIST.STARTTIME.ERROR', + 'errorMessage' => 'start time cannot be earlier than today.', + ], + [ + 'errorCode' => 'WHITELIST.TIMEFORMAT.ERROR', + 'errorMessage' => 'The time format is incorrect, please use yyyy MM dd HH: mm: ss format.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUP.ERROR', + 'errorMessage' => 'The user group ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUPEMPTY.ERROR', + 'errorMessage' => 'User group ID cannot be empty.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUPLISTSIZE.ERROR', + 'errorMessage' => 'The number of user group exceeds the limit.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"PageData\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Id\\": 123,\\n \\"Type\\": \\"phone\\",\\n \\"UserGroups\\": [\\n \\"test_group\\"\\n ],\\n \\"GmtCreate\\": \\"2024-05-09 15:46:20\\",\\n \\"GmtModified\\": \\"2024-05-09 15:46:20\\",\\n \\"RuleId\\": 123,\\n \\"SceneId\\": 123,\\n \\"StartTime\\": \\"2024-05-09 15:46:20\\",\\n \\"EndTime\\": \\"2024-05-10 15:46:20\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n \\n 1\\n 10\\n 100\\n \\n 123\\n phone\\n test_group\\n 2024-05-09 15:46:20\\n 2024-05-09 15:46:20\\n 123\\n 123\\n 2024-05-09 15:46:20\\n 2024-05-10 15:46:20\\n \\n \\n 102400001\\n","errorExample":""}]', + 'title' => '查询脱敏白名单', + ], + 'DsgSceneAddOrUpdateScene' => [ + 'summary' => '调用DsgSceneAddOrUpdateScene接口,新增或编辑二级脱敏场景。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219459', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'scenes', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '二级脱敏场景信息。', + 'type' => 'array', + 'items' => [ + 'description' => '二级脱敏场景信息。', + 'type' => 'object', + 'properties' => [ + 'id' => [ + 'description' => '二级脱敏场景ID。'."\n" + .'- 不配置该参数:表示当前操作为新增二级脱敏场景。'."\n" + .'- 配置该参数:表示编辑指定二级脱敏场景信息。您可调用[DsgSceneQuerySceneListByName](~~2786322~~)接口查询二级脱敏场景ID。', + 'type' => 'string', + 'required' => false, + 'example' => '10000', + ], + 'sceneName' => [ + 'description' => '二级脱敏场景名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'dev_scene', + ], + 'sceneCode' => [ + 'description' => '二级脱敏场景所属的一级脱敏场景Code。取值如下:'."\n" + .'- 数据开发/数据地图展示脱敏:dataworks_display_desense_code'."\n" + .'- MaxCompute引擎层脱敏:maxcompute_desense_code'."\n" + .'- MaxCompute引擎层脱敏(新):maxcompute_new_desense_code'."\n" + .'- 数据分析展示脱敏:dataworks_analysis_desense_code', + 'type' => 'string', + 'required' => true, + 'example' => 'dataworks_display_desense_code', + ], + 'projects' => [ + 'description' => '脱敏场景生效的引擎信息。', + 'type' => 'array', + 'items' => [ + 'description' => '脱敏场景生效的引擎信息。', + 'type' => 'object', + 'properties' => [ + 'clusterId' => [ + 'description' => '若脱敏场景生效的数据范围为EMR引擎,此处需输入EMR集群ID。仅当使用EMR引擎时需配置该参数。', + 'type' => 'string', + 'required' => false, + 'example' => 'c-1234', + ], + 'projectName' => [ + 'description' => '脱敏场景生效的引擎实例名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'dev_project', + ], + 'dbType' => [ + 'description' => '脱敏场景生效的引擎类型。取值如下:'."\n" + .'- ODPS:ODPS.ODPS'."\n" + .'- HOLO:HOLO.POSTGRES'."\n" + .'- EMR:EMR', + 'type' => 'string', + 'required' => false, + 'example' => 'ODPS.ODPS', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'desc' => [ + 'description' => '描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'Test scenarios', + ], + 'userGroupIds' => [ + 'description' => '脱敏场景生效的用户组信息。', + 'type' => 'array', + 'items' => [ + 'description' => '脱敏场景生效的用户组ID。您可调用[DsgUserGroupQueryList](~~2786441~~)接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '123', + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '操作结果。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'DESENSSCENE.ID.ERROR', + 'errorMessage' => 'The desensitization scenario ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'DESENSSCENE.IDLEVEL.ERROR', + 'errorMessage' => 'The desensitization scenario is not a secondary scenario.', + ], + [ + 'errorCode' => 'DESENSSCENE.PROJECT.ERROR', + 'errorMessage' => 'The project space does not exist.', + ], + [ + 'errorCode' => 'DESENSSCENE.SIZE.ERROR', + 'errorMessage' => 'The number of desens scene exceeds the limit.', + ], + [ + 'errorCode' => 'DESENSSCENE.UESRGROUP.ERROR', + 'errorMessage' => 'The user group ID does not match the tenant or does not exist.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '新增或编辑二级脱敏场景', + ], + 'DsgSceneQuerySceneListByName' => [ + 'summary' => '调用DsgSceneQuerySceneListByName接口,获取脱敏场景列表。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219224', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'SceneName', + 'in' => 'query', + 'schema' => [ + 'title' => '场景名称关键字', + 'description' => '脱敏场景名称的模糊查询关键字,平台会根据该关键字获取相关脱敏场景信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'dev_', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel>', + 'description' => 'OpenApiResultModel>', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'description' => '脱敏场景ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'SceneCode' => [ + 'description' => '一级脱敏场景Code。取值如下:'."\n" + .'- 数据开发/数据地图展示脱敏:dataworks_display_desense_code'."\n" + .'- MaxCompute引擎层脱敏:maxcompute_desense_code'."\n" + .'- MaxCompute引擎层脱敏(新):maxcompute_new_desense_code'."\n" + .'- Hologres引擎层脱敏:hologres_display_desense_code'."\n" + .'- 数据集成静态脱敏:dataworks_data_integration_desense_code'."\n" + .'- 数据分析展示脱敏:dataworks_analysis_desense_code', + 'type' => 'string', + 'example' => 'dataworks_display_desense_code', + ], + 'Desc' => [ + 'description' => '脱敏场景描述信息。', + 'type' => 'string', + 'example' => 'Test scenarios', + ], + 'SceneName' => [ + 'description' => '脱敏场景名称。', + 'type' => 'string', + 'example' => 'test_scene', + ], + 'UserGroups' => [ + 'description' => '脱敏场景的用户组名称列表。使用英文逗号(,)隔开。', + 'type' => 'string', + 'example' => 'user1,user2', + ], + 'SceneLevel' => [ + 'description' => '脱敏场景级别。取值如下:'."\n" + .'- 0:一级场景'."\n" + .'- 1:二级场景', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Projects' => [ + 'description' => '脱敏场景生效的引擎信息。', + 'type' => 'array', + 'items' => [ + 'description' => '脱敏场景生效的引擎信息。', + 'type' => 'object', + 'properties' => [ + 'DbType' => [ + 'description' => '引擎类型。取值如下:'."\n" + .'- ODPS:ODPS.ODPS'."\n" + .'- HOLO:HOLO.POSTGRES'."\n" + .'- EMR:EMR', + 'type' => 'string', + 'example' => 'ODPS.ODPS', + ], + 'ProjectName' => [ + 'description' => '引擎实例名称。', + 'type' => 'string', + 'example' => 'dev_project', + ], + 'ClusterId' => [ + 'description' => 'EMR集群ID。仅当脱敏场景生效的数据范围为EMR引擎时,会返回该参数。', + 'type' => 'string', + 'example' => 'c-123456', + ], + ], + ], + ], + 'Children' => [ + 'description' => '多级脱敏场景参数信息。', + 'type' => 'array', + 'items' => [ + 'description' => '若存在多级脱敏场景(即脱敏场景存在父子节点嵌套),则此处为嵌套的脱敏场景信息。参数与外层参数相同。', + 'type' => 'any', + 'example' => '$ref', + ], + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'DESENSSCENE.ID.ERROR', + 'errorMessage' => 'The desensitization scenario ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'DESENSSCENE.IDLEVEL.ERROR', + 'errorMessage' => 'The desensitization scenario is not a secondary scenario.', + ], + [ + 'errorCode' => 'DESENSSCENE.PROJECT.ERROR', + 'errorMessage' => 'The project space does not exist.', + ], + [ + 'errorCode' => 'DESENSSCENE.SIZE.ERROR', + 'errorMessage' => 'The number of desens scene exceeds the limit.', + ], + [ + 'errorCode' => 'DESENSSCENE.UESRGROUP.ERROR', + 'errorMessage' => 'The user group ID does not match the tenant or does not exist.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": [\\n {\\n \\"Id\\": 123,\\n \\"SceneCode\\": \\"dataworks_display_desense_code\\",\\n \\"Desc\\": \\"Test scenarios\\",\\n \\"SceneName\\": \\"test_scene\\",\\n \\"UserGroups\\": \\"user1,user2\\",\\n \\"SceneLevel\\": 1,\\n \\"Projects\\": [\\n {\\n \\"DbType\\": \\"ODPS.ODPS\\",\\n \\"ProjectName\\": \\"dev_project\\",\\n \\"ClusterId\\": \\"c-123456\\"\\n }\\n ],\\n \\"Children\\": [\\n \\"$ref\\"\\n ]\\n }\\n ],\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n \\n 123\\n dataworks_display_desense_code\\n 测试用场景\\n test_scene\\n user1,user2\\n 1\\n \\n ODPS.ODPS\\n dev_project\\n c-1234\\n \\n $ref\\n \\n 102400001\\n","errorExample":""}]', + 'title' => '获取脱敏场景列表', + ], + 'DsgUserGroupAddOrUpdate' => [ + 'summary' => '调用DsgUserGroupAddOrUpdate接口,新增或编辑数据保护伞中的用户组。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219456', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'UserGroups', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '用户组信息。', + 'type' => 'array', + 'items' => [ + 'description' => '用户组信息。', + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'description' => '用户组ID。'."\n" + .'- 不配置该参数:表示当前操作为新增用户组。'."\n" + .'- 配置该参数:表示编辑指定用户组信息。您可调用[DsgUserGroupQueryList](~~2786441~~)接口查询用户组ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '123', + ], + 'Name' => [ + 'description' => '用户组名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'yun_group', + ], + 'Owner' => [ + 'description' => '用户组的负责人。', + 'type' => 'string', + 'required' => true, + 'example' => 'user1', + ], + 'Accounts' => [ + 'description' => '用户组中的用户列表。'."\n" + .'- 基于阿里云账号及RAM角色创建的用户组:可调用[DsgUserGroupQueryUserList](~~2786445~~)接口查询用户列表。'."\n" + .'- 基于MaxCompute角色创建的用户组:可调用[DsgUserGroupGetOdpsRoleGroups](~~2785695~~)接口查询用户列表。', + 'type' => 'array', + 'items' => [ + 'description' => '输入用户名或MaxCompute角色。该参数需基于UserGroupType参数的取值配置。', + 'type' => 'string', + 'required' => false, + 'example' => 'user1', + ], + 'required' => true, + ], + 'ProjectName' => [ + 'description' => 'MaxCompute项目名称。创建MaxCompute用户组时必须配置该参数。', + 'type' => 'string', + 'required' => false, + 'example' => 'dev_project', + ], + 'UserGroupType' => [ + 'description' => '用户组类型。取值如下:'."\n" + .'- 1:阿里云用户'."\n" + .'- 2:RAM角色'."\n" + .'- 3:MaxCompute角色', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1', + ], + ], + 'required' => true, + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '操作结果。取值如下:'."\n" + .'- true:操作成功。'."\n" + .'- false:操作失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'USERGROUP.ACCOUNTLISTSIZE.ERROR', + 'errorMessage' => 'The number of account exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.ID.ERROR', + 'errorMessage' => 'The user group ID does not match the tenant or does not exist.', + ], + [ + 'errorCode' => 'USERGROUP.LISTSIZE.ERROR', + 'errorMessage' => 'The number of user groups exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'USERACCOUNT.OWNER.ERROR', + 'errorMessage' => 'User list or owner user does not exist.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '新增或编辑数据保护伞中的用户组', + ], + 'DsgUserGroupQueryList' => [ + 'summary' => '调用DsgUserGroupQueryList接口,查询数据保护伞的用户组列表。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219454', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码', + 'description' => '分页的页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小', + 'description' => '每页显示的条数,最大为100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '用户组名称', + 'description' => '用户组名称关键字。平台会根据该关键字模糊匹配,查询相关用户组信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'yun_group', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'query', + 'schema' => [ + 'title' => '负责人', + 'description' => '用户组的负责人。', + 'type' => 'string', + 'required' => false, + 'example' => 'user1', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'query', + 'schema' => [ + 'description' => '引擎名称。如需查询MaxCompute用户组信息,可配置该参数。', + 'type' => 'string', + 'required' => false, + 'example' => 'dev_project', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel>', + 'description' => 'OpenApiResultModel>', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'PageData' => [ + 'description' => '分页数据查询结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '分页的页码数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,最大为100。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '返回的用户组总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Data' => [ + 'description' => '用户组列表。', + 'type' => 'array', + 'items' => [ + 'description' => '用户组信息。', + 'type' => 'object', + 'properties' => [ + 'Accounts' => [ + 'description' => '用户组中的用户名集合。', + 'type' => 'array', + 'items' => [ + 'description' => '用户名。', + 'type' => 'string', + 'example' => 'user1', + ], + ], + 'Id' => [ + 'description' => '用户组ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '123', + ], + 'GmtCreate' => [ + 'description' => '用户组的创建时间。', + 'type' => 'string', + 'example' => '2024-05-10 17:14:44', + ], + 'GmtModified' => [ + 'description' => '用户组的修改时间。', + 'type' => 'string', + 'example' => '2024-05-10 17:14:44', + ], + 'Name' => [ + 'description' => '用户组名称。', + 'type' => 'string', + 'example' => 'test_group', + ], + 'Owner' => [ + 'description' => '用户组负责人。', + 'type' => 'string', + 'example' => 'user1', + ], + ], + ], + 'example' => '{ "accounts": [ "role_project_scheduler" ], "gmtCreate": "2024-05-10 15:22:18", "gmtModified": "2024-05-10 15:22:18", "id": 1955, "name": "dsg_fin_test-复制", "owner": "UAT" }', + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + [ + 'errorCode' => 'USERGROUP.ACCOUNTLISTSIZE.ERROR', + 'errorMessage' => 'The number of account exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.ID.ERROR', + 'errorMessage' => 'The user group ID does not match the tenant or does not exist.', + ], + [ + 'errorCode' => 'USERGROUP.LISTSIZE.ERROR', + 'errorMessage' => 'The number of user groups exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'USERACCOUNT.OWNER.ERROR', + 'errorMessage' => 'User list or owner user does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"PageData\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Accounts\\": [\\n \\"user1\\"\\n ],\\n \\"Id\\": 123,\\n \\"GmtCreate\\": \\"2024-05-10 17:14:44\\",\\n \\"GmtModified\\": \\"2024-05-10 17:14:44\\",\\n \\"Name\\": \\"test_group\\",\\n \\"Owner\\": \\"user1\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n \\n 1\\n 10\\n 100\\n \\n user1\\n 123\\n 2024-05-10 17:14:44\\n 2024-05-10 17:14:44\\n test_group\\n user1\\n \\n \\n 102400001\\n","errorExample":""}]', + 'title' => '查询数据保护伞的用户组列表', + ], + 'DsgUserGroupQueryUserList' => [ + 'summary' => '调用DsgUserGroupQueryUserList接口,查询当前租户下的用户或角色列表。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '219455', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel>', + 'description' => 'OpenApiResultModel>', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的用户信息。', + 'type' => 'object', + 'properties' => [ + 'AccountName' => [ + 'description' => '用户名称。', + 'type' => 'string', + 'example' => 'user1', + ], + 'YunAccount' => [ + 'description' => '阿里云用户名称或RAM角色名称。基于阿里云账号或RAM角色创建用户组时需使用该参数的返回值。', + 'type' => 'string', + 'example' => 'user:user1', + ], + 'AccountType' => [ + 'description' => '用户类型。取值如下:'."\n" + .'- 1~5:表示阿里云用户。'."\n" + .'- 6:表示RAM角色。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'BaseId' => [ + 'description' => '用户ID或角色ID。', + 'type' => 'string', + 'example' => '234', + ], + 'ParentAccountId' => [ + 'description' => '父用户ID。RAM用户会涉及该参数。', + 'type' => 'string', + 'example' => '123', + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'USERGROUP.ACCOUNTLISTSIZE.ERROR', + 'errorMessage' => 'The number of account exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.ID.ERROR', + 'errorMessage' => 'The user group ID does not match the tenant or does not exist.', + ], + [ + 'errorCode' => 'USERGROUP.LISTSIZE.ERROR', + 'errorMessage' => 'The number of user groups exceeds the limit.', + ], + [ + 'errorCode' => 'USERGROUP.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'USERACCOUNT.OWNER.ERROR', + 'errorMessage' => 'User list or owner user does not exist.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": [\\n {\\n \\"AccountName\\": \\"user1\\",\\n \\"YunAccount\\": \\"user:user1\\",\\n \\"AccountType\\": 2,\\n \\"BaseId\\": \\"234\\",\\n \\"ParentAccountId\\": \\"123\\"\\n }\\n ],\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n \\n user1\\n user:user1\\n 2\\n 234\\n 123\\n \\n 102400001\\n","errorExample":""}]', + 'title' => '查询当前租户下的用户或角色列表', + ], + 'DsgDesensPlanQueryList' => [ + 'summary' => '调用DsgDesensPlanQueryList接口,查询数据保护伞的脱敏规则列表。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219758', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页的页数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的数据条数,最大为100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'SceneId', + 'in' => 'query', + 'schema' => [ + 'description' => '二级脱敏场景ID。您可调用[DsgSceneQuerySceneListByName](~~2786322~~)接口获取。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '123', + ], + ], + [ + 'name' => 'RuleName', + 'in' => 'query', + 'schema' => [ + 'description' => '敏感字段名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'phone', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'query', + 'schema' => [ + 'description' => '脱敏规则的负责人。', + 'type' => 'string', + 'required' => false, + 'example' => 'user1', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '脱敏规则的生效状态。取值如下:'."\n" + .'- 0:失效。'."\n" + .'- 1:生效。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel>', + 'description' => 'OpenApiResultModel>', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'PageData' => [ + 'description' => '分页数据。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的数据条数,最大为100。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '返回的脱敏规则条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Data' => [ + 'description' => '脱敏规则信息。', + 'type' => 'array', + 'items' => [ + 'description' => '脱敏规则信息。', + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'title' => '脱敏规则id', + 'description' => '脱敏规则ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'DataType' => [ + 'title' => '敏感类型', + 'description' => '敏感字段类型。', + 'type' => 'string', + 'example' => 'phone', + ], + 'RuleName' => [ + 'title' => '脱敏规则名称', + 'description' => '脱敏规则名称。', + 'type' => 'string', + 'example' => 'phone_hash', + ], + 'DesensPlan' => [ + 'title' => '脱敏规则详情', + 'description' => '脱敏规则详情。', + 'type' => 'object', + 'properties' => [ + 'DesensPlanType' => [ + 'description' => '脱敏规则类型。', + 'type' => 'string', + 'example' => 'hash', + ], + 'ExtParam' => [ + 'description' => '脱敏规则参数。参数信息可参考[DsgDesensPlanAddOrUpdate](~~2786295~~)接口文档。', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'any', + 'example' => '"extParam": { "algo":"MD5", "salt":"5" }', + 'description' => '脱敏规则参数详情。', + ], + ], + ], + ], + 'Owner' => [ + 'title' => '负责人', + 'description' => '脱敏规则的负责人。', + 'type' => 'string', + 'example' => 'user1', + ], + 'GmtCreate' => [ + 'title' => '规则创建时间', + 'description' => '脱敏规则的创建时间。', + 'type' => 'string', + 'example' => '2024-05-09 15:46:20', + ], + 'GmtModified' => [ + 'title' => '规则修改时间', + 'description' => '脱敏规则的修改时间。', + 'type' => 'string', + 'example' => '2024-05-09 15:46:20', + ], + 'Status' => [ + 'title' => '生效状态0/1', + 'description' => '脱敏规则的生效状态。取值如下:'."\n" + .'- 0:失效。'."\n" + .'- 1:生效。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'DesensWay' => [ + 'title' => '脱敏方式', + 'description' => '脱敏方式。', + 'type' => 'string', + 'example' => 'HASH', + ], + 'DesenMode' => [ + 'title' => '脱敏方式类型', + 'description' => '脱敏方式类型。', + 'type' => 'string', + 'example' => 'HASH', + ], + 'DesensRule' => [ + 'title' => '脱敏规则', + 'description' => '脱敏规则。', + 'type' => 'string', + 'example' => 'HASH', + ], + 'SceneCode' => [ + 'title' => '一级场景code', + 'description' => '脱敏规则所属的一级脱敏场景Code。取值如下:'."\n" + .'- 数据开发/数据地图展示脱敏:dataworks_display_desense_code'."\n" + .'- MaxCompute引擎层脱敏:maxcompute_desense_code'."\n" + .'- MaxCompute引擎层脱敏(新):maxcompute_new_desense_code'."\n" + .'- Hologres引擎层脱敏:hologres_display_desense_code'."\n" + .'- 数据集成静态脱敏:dataworks_data_integration_desense_code'."\n" + .'- 数据分析展示脱敏:dataworks_analysis_desense_code', + 'type' => 'string', + 'example' => 'dataworks_display_desense_code', + ], + 'CheckWatermark' => [ + 'title' => '是否插入水印', + 'description' => '是否添加水印。取值如下:'."\n" + .'- true:添加。'."\n" + .'- false:不添加。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'SceneName' => [ + 'title' => '二级场景名称', + 'description' => '脱敏规则所属的二级脱敏场景名称。', + 'type' => 'string', + 'example' => 'test_scene', + ], + ], + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'DESENSPLAN.DATATYPE.ERROR', + 'errorMessage' => 'Sensitive type already has a desensitization rule.', + ], + [ + 'errorCode' => 'DESENSPLAN.DATATYPENOTEXIST.ERROR', + 'errorMessage' => 'Sensitive type not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.ID.ERROR', + 'errorMessage' => 'Desensitization rule ID does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'DESENSPLAN.PARAM.ERROR', + 'errorMessage' => 'Desensitization rule parameter error.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENECODE.ERROR', + 'errorMessage' => 'Scene code does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENEID.ERROR', + 'errorMessage' => 'Scene ID does not exist.', + ], + [ + 'errorCode' => 'DESENSPLAN.SCENEIDLEVEL.ERROR', + 'errorMessage' => 'The scene is not a secondary scene.', + ], + [ + 'errorCode' => 'DESENSPLAN.SIZE.ERROR', + 'errorMessage' => 'The number of desens plan exceeds the limit.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"PageData\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Id\\": 123,\\n \\"DataType\\": \\"phone\\",\\n \\"RuleName\\": \\"phone_hash\\",\\n \\"DesensPlan\\": {\\n \\"DesensPlanType\\": \\"hash\\",\\n \\"ExtParam\\": {\\n \\"key\\": \\"\\\\\\"extParam\\\\\\": { \\\\\\"algo\\\\\\":\\\\\\"MD5\\\\\\", \\\\\\"salt\\\\\\":\\\\\\"5\\\\\\" }\\"\\n }\\n },\\n \\"Owner\\": \\"user1\\",\\n \\"GmtCreate\\": \\"2024-05-09 15:46:20\\",\\n \\"GmtModified\\": \\"2024-05-09 15:46:20\\",\\n \\"Status\\": 1,\\n \\"DesensWay\\": \\"HASH\\",\\n \\"DesenMode\\": \\"HASH\\",\\n \\"DesensRule\\": \\"HASH\\",\\n \\"SceneCode\\": \\"dataworks_display_desense_code\\",\\n \\"CheckWatermark\\": true,\\n \\"SceneName\\": \\"test_scene\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n \\n 1\\n 10\\n 100\\n \\n 123\\n phone\\n phone_hash\\n \\n hash\\n \\n \\"extParam\\": { \\"algo\\":\\"MD5\\", \\"salt\\":\\"5\\" }\\n \\n \\n user1\\n 2024-05-09 15:46:20\\n 2024-05-09 15:46:20\\n 1\\n HASH\\n HASH\\n HASH\\n dataworks_display_desense_code\\n true\\n test_scene\\n \\n \\n 102400001\\n","errorExample":""}]', + 'title' => '脱敏规则列表', + ], + 'DsgWhiteListAddOrUpdate' => [ + 'summary' => '调用DsgWhiteListAddOrUpdate接口,新增或编辑脱敏白名单。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219461', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'WhiteLists', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '白名单集合。', + 'type' => 'array', + 'items' => [ + 'description' => '白名单信息。', + 'type' => 'object', + 'properties' => [ + 'RuleId' => [ + 'description' => '脱敏规则ID。您可调用[DsgDesensPlanQueryList](~~2786578~~)接口获取。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '123', + ], + 'Id' => [ + 'description' => '脱敏白名单ID。'."\n" + .'- 不配置该参数:表示当前操作为新增脱敏白名单。'."\n" + .'- 配置该参数:表示编辑指定脱敏白名单信息。您可调用[DsgWhiteListQueryList](~~2786508~~)接口查询白名单ID。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '123', + ], + 'StartTime' => [ + 'description' => '脱敏白名单的生效时间。', + 'type' => 'string', + 'required' => true, + 'example' => '2024-04-10 00:00:00', + ], + 'EndTime' => [ + 'description' => '脱敏白名单的失效时间。输入null表示白名单永久生效。', + 'type' => 'string', + 'required' => false, + 'example' => 'null', + ], + 'UserGroupIds' => [ + 'description' => '用户组ID集合。', + 'type' => 'array', + 'items' => [ + 'description' => '用户组ID。您可调用[DsgUserGroupQueryList](~~2786441~~)接口获取。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '123', + ], + 'required' => true, + ], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel', + 'description' => 'OpenApiResultModel', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '操作结果。取值如下:'."\n" + .'- true:操作成功。'."\n" + .'- false:操作失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'WHITELIST.DESENSID.ERROR', + 'errorMessage' => 'The desensitization rule ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.ENDTIME.ERROR', + 'errorMessage' => 'end time cannot be earlier than start time.', + ], + [ + 'errorCode' => 'WHITELIST.ID.ERROR', + 'errorMessage' => 'The whitelist ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.MCPROJECT.ERROR', + 'errorMessage' => 'The projectName on the bottom layer desensitization whitelist of MC cannot be empty.', + ], + [ + 'errorCode' => 'WHITELIST.PAGESIZE.ERROR', + 'errorMessage' => 'Page size is too large, maximum of 100.', + ], + [ + 'errorCode' => 'WHITELIST.SIZE.ERROR', + 'errorMessage' => 'The number of white list exceeds the limit.', + ], + [ + 'errorCode' => 'WHITELIST.STARTTIME.ERROR', + 'errorMessage' => 'start time cannot be earlier than today.', + ], + [ + 'errorCode' => 'WHITELIST.TIMEFORMAT.ERROR', + 'errorMessage' => 'The time format is incorrect, please use yyyy MM dd HH: mm: ss format.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUP.ERROR', + 'errorMessage' => 'The user group ID does not match or does not exist with the tenant.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUPEMPTY.ERROR', + 'errorMessage' => 'User group ID cannot be empty.', + ], + [ + 'errorCode' => 'WHITELIST.USERGROUPLISTSIZE.ERROR', + 'errorMessage' => 'The number of user group exceeds the limit.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": true,\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n true\\n 102400001\\n","errorExample":""}]', + 'title' => '新增或编辑脱敏白名单', + ], + 'DsgQueryDefaultTemplates' => [ + 'summary' => '调用DsgQueryDefaultTemplates接口,查询可选择的敏感类型模版列表及该模版支持的脱敏规则。您可参考该接口的返回参数配置脱敏规则。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '219249', + 'abilityTreeNodes' => [ + 'FEATUREdideRZM9W6', + ], + ], + 'parameters' => [ + [ + 'name' => 'SceneId', + 'in' => 'query', + 'schema' => [ + 'title' => '二级场景id', + 'description' => '二级脱敏场景ID。您可调用[DsgSceneQuerySceneListByName](~~2786322~~)接口获取。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '123', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiResultModel>', + 'description' => 'OpenApiResultModel>', + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1029030003', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'param error', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '400', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'DataType' => [ + 'description' => '敏感字段类型。', + 'type' => 'string', + 'example' => 'phone', + ], + 'DesensPlanTemplate' => [ + 'description' => '支持的脱敏方式及参数说明列表。', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'type' => 'string', + 'example' => 'hash', + 'description' => '脱敏方式名称。', + ], + 'SupportWaterMark' => [ + 'type' => 'boolean', + 'example' => 'true', + 'description' => '是否允许添加水印。取值如下:'."\n" + .'- true:允许。'."\n" + .'- false:不允许。', + ], + 'ExtParamTemplate' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'any', + 'description' => '支持的脱敏规则及相关参数配置参考,Json格式。'."\n" + .'该返回结果仅作为脱敏规则相关参数的解释说明,不能够直接作为用于创建或编辑脱敏规则的输入参数使用。', + 'example' => '{ "key": "algo", "valueEnum": [ "MD5", "SHA256", "SHA512", "SM3" ], "valueType": "string" }, { "key": "salt", "valueEnum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "valueType": "int" }', + ], + 'description' => '脱敏参数及其说明列表。', + ], + ], + 'description' => '脱敏方式及参数信息。', + ], + 'description' => '脱敏方式及参数信息。', + ], + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '102400001', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'DESENSTEMPLATE.SCENE.ERROR', + 'errorMessage' => 'Scene ID does not exist.', + ], + [ + 'errorCode' => 'DESENSTEMPLATE.SCENELEVEL.ERROR', + 'errorMessage' => 'The scene is not a secondary scene.', + ], + [ + 'errorCode' => 'PARAMS.ERROR', + 'errorMessage' => 'param error.', + ], + ], + 403 => [ + [ + 'errorCode' => 'PERMISSION.DENIED.ERROR', + 'errorMessage' => 'Permission denied', + ], + ], + 500 => [ + [ + 'errorCode' => 'UNKNOWN.ERROR', + 'errorMessage' => 'unknown error.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1029030003\\",\\n \\"ErrorMessage\\": \\"param error\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Data\\": [\\n {\\n \\"DataType\\": \\"phone\\",\\n \\"DesensPlanTemplate\\": {\\n \\"key\\": [\\n {\\n \\"Name\\": \\"hash\\",\\n \\"SupportWaterMark\\": true,\\n \\"ExtParamTemplate\\": [\\n \\"{ \\\\\\"key\\\\\\": \\\\\\"algo\\\\\\", \\\\\\"valueEnum\\\\\\": [ \\\\\\"MD5\\\\\\", \\\\\\"SHA256\\\\\\", \\\\\\"SHA512\\\\\\", \\\\\\"SM3\\\\\\" ], \\\\\\"valueType\\\\\\": \\\\\\"string\\\\\\" }, { \\\\\\"key\\\\\\": \\\\\\"salt\\\\\\", \\\\\\"valueEnum\\\\\\": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ], \\\\\\"valueType\\\\\\": \\\\\\"int\\\\\\" }\\"\\n ]\\n }\\n ]\\n }\\n }\\n ],\\n \\"RequestId\\": \\"102400001\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 1029030003\\n param error\\n 400\\n \\n phone\\n \\n hash\\n true\\n { \\"key\\": \\"algo\\", \\"valueEnum\\": [ \\"MD5\\", \\"SHA256\\", \\"SHA512\\", \\"SM3\\" ], \\"valueType\\": \\"string\\" }, { \\"key\\": \\"salt\\", \\"valueEnum\\": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ], \\"valueType\\": \\"int\\" }\\n \\n \\n 102400001\\n","errorExample":""}]', + 'title' => '查询可选择的敏感类型模版列表及详情', + ], + 'CreateImportMigration' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78187', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks管控台,进入工作空间配置页面获取工作空间ID。'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '123456', + ], + ], + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '创建的导入任务的名称。项目空间内该名称必须唯一。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test_import_001', + ], + ], + [ + 'name' => 'PackageType', + 'in' => 'formData', + 'schema' => [ + 'description' => '导入导出包的类型,取值如下:'."\n" + .'- DATAWORKS_MODEL(标准格式)'."\n" + .'- DATAWORKS_V2(专有云(V3.6.1-V3.11))'."\n" + .'- DATAWORKS_V3(专有云(V3.12及以上))'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DATAWORKS_MODEL', + 'enum' => [ + 'DATAWORKS_MODEL', + 'DATAWOKRS_V2', + 'DATAWORKS_V3', + 'SPEC', + ], + ], + ], + [ + 'name' => 'PackageFile', + 'in' => 'formData', + 'schema' => [ + 'description' => '导入包文件路径。'."\n" + .'**注意:本接口导入文件涉及文件上传。方式调用举例如下:**'."\n" + ."\n" + .'```java'."\n" + .' Config config = new Config();'."\n" + .' config.setAccessKeyId(accessId);'."\n" + .' config.setAccessKeySecret(accessKey);'."\n" + .' config.setEndpoint(popEndpoint);'."\n" + .' config.setRegionId(regionId);'."\n" + ."\n" + .' Client client = new Client(config);'."\n" + ."\n" + .' CreateImportMigrationAdvanceRequest request = new CreateImportMigrationAdvanceRequest();'."\n" + .' request.setName("test_migration_api_" + System.currentTimeMillis());'."\n" + .' request.setProjectId(123456L); '."\n" + .' request.setPackageType("DATAWORKS_MODEL");'."\n" + .' request.setPackageFileObject(new FileInputStream("/home/admin/Downloads/test.zip"));'."\n" + ."\n" + .' RuntimeOptions runtime = new RuntimeOptions();'."\n" + .' CreateImportMigrationResponse response = client.createImportMigrationAdvance(request, runtime);'."\n" + .'```', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '/home/admin/xxx/import.zip', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ResourceGroupMap', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度资源组和数据集成资源组的映射关系。映射的key和value均为资源组的标识符(identifier), 格式如下:'."\n" + ."\n" + .'```json'."\n" + .'{'."\n" + .' "SCHEDULER_RESOURCE_GROUP": {'."\n" + .' "xxx": "yyy"'."\n" + .' },'."\n" + .' "DI_RESOURCE_GROUP": {'."\n" + .' "ccc": "dfdd"'."\n" + .' }'."\n" + .'}'."\n" + .'```', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '{"SCHEDULER_RESOURCE_GROUP": {"xxx":"yyy"},"DI_RESOURCE_GROUP":{"ccc":"ddd"}}', + ], + ], + [ + 'name' => 'WorkspaceMap', + 'in' => 'formData', + 'schema' => [ + 'description' => '用于在执行导入导出操作时,根据该映射关系,修改导入导出包里的输入输出项目空间名称为映射后的项目空间名称。例如,导入时会根据映射关系,把输入输出里的项目空间名称的前缀做相应替换。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '{"test_workspace_src": "test_workspace_target"}', + ], + ], + [ + 'name' => 'CalculateEngineMap', + 'in' => 'formData', + 'schema' => [ + 'description' => '导入任务中,导入的源计算引擎到导出的目标计算引擎实例的映射关系。'."\n" + .'计算引擎的类型,包括ODPS、EMR、HADOOP_CDH、HOLOGRES等。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '{ "ODPS": { "zxy_8221431_engine": "wzp_kaifazheban_engine" }, "EMR": { "aaaa": "bbb" } }', + ], + ], + [ + 'name' => 'CommitRule', + 'in' => 'formData', + 'schema' => [ + 'description' => '执行导入操作时,设定的自动提交发布任务的规则。参数如下:'."\n" + .'- resourceAutoCommit:资源是否自动提交。true 表示是,false表示否。'."\n" + .'- resourceAutoDeploy:资源是否自动发布。true 表示是,false表示否。'."\n" + .'- functionAutoCommit:函数是否自动提交。true 表示是,false表示否。'."\n" + .'- functionAutoDeploy: 函数是否自动发布。true 表示是,false表示否。'."\n" + .'- tableAutoCommitToDev:表是否自动提交到开发环境。true 表示是,false表示否。'."\n" + .'- tableAutoCommitToProd:表是否自动提交到生产环境。true 表示是,false表示否。'."\n" + .'- ignoreLock:是否自动绕过锁定。true 表示是,false表示否。当任务被其他人编辑锁定时,如果选择绕过锁定,则可以强制更新当前任务。'."\n" + .'- fileAutoCommit:文件是否自动提交,true 表示是,false表示否。'."\n" + .'- fileAutoDeploy:文件是否自动发布,true 表示是,false表示否。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '{ "resourceAutoCommit": false, "resourceAutoDeploy": false, "functionAutoCommit": false, "functionAutoDeploy": false, "tableAutoCommitToDev": false, "tableAutoCommitToProd": false, "ignoreLock": false, "fileAutoCommit": false, "fileAutoDeploy": false }', + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '导入导出包的描述信息。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'test description', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '导入导出包ID。作为后续执行导入任务或获取导入任务执行进度的入参。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123456', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'test error message', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'ADFASDFASDFA-ADFASDF-ASDFADSDF-AFFADS', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '110001123456', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 123456,\\n \\"ErrorMessage\\": \\"test error message\\",\\n \\"RequestId\\": \\"ADFASDFASDFA-ADFASDF-ASDFADSDF-AFFADS\\",\\n \\"ErrorCode\\": \\"110001123456\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n 123456\\n test error message\\n ADFASDFASDFA-ADFASDF-ASDFADSDF-AFFADS\\n 110001123456\\n true\\n","errorExample":""}]', + 'title' => '创建导入迁移', + 'summary' => '调用CreateImportMigration创建导入任务,导入任务包含数据源信息、任务、表等对象的DataWorks导入导出包。', + 'description' => '注意:本接口导入文件涉及文件上传,方式调用举例如下:'."\n" + ."\n\n" + ."\n" + .' Config config = new Config();'."\n" + .' config.setAccessKeyId(accessId);'."\n" + .' config.setAccessKeySecret(accessKey);'."\n" + .' config.setEndpoint(popEndpoint);'."\n" + .' config.setRegionId(regionId);'."\n" + .' '."\n" + .' Client client = new Client(config);'."\n" + ."\n" + .' CreateImportMigrationAdvanceRequest request = new CreateImportMigrationAdvanceRequest();'."\n" + .' request.setName("test_migration_api_" + System.currentTimeMillis());'."\n" + .' request.setProjectId(123456L); '."\n" + .' request.setPackageType("DATAWORKS_MODEL");'."\n" + .' request.setPackageFileObject(new FileInputStream("/home/admin/Downloads/test.zip"));'."\n" + ."\n" + .' RuntimeOptions runtime = new RuntimeOptions();'."\n" + .' CreateImportMigrationResponse response = client.createImportMigrationAdvance(request, runtime);'."\n" + .' ...'."\n", + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetMigrationProcess' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '78271', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '项目空间的ID。您可以进入DataWorks项目空间的设置页面查看。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '123456', + ], + ], + [ + 'name' => 'MigrationId', + 'in' => 'formData', + 'schema' => [ + 'description' => '导入导出包的ID。您可以调用CreateImportMigration接口获取。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '123456', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'SADFSDFSD-SDFSDF-XDXCVX-ESWW', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'test error msg', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '110001123456', + ], + 'Data' => [ + 'description' => '导入导出任务的进度信息,包括导入导出任务所有步骤的名称和进度状态。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的任务状态。', + 'type' => 'object', + 'properties' => [ + 'TaskStatus' => [ + 'description' => '导入导出任务的步骤运行状态。取值如下:'."\n" + ."\n" + .'- INIT,初始状态。'."\n" + .'- RUNNING,运行中。'."\n" + .'- FAILURE,运行失败。'."\n" + .'- SUCCESS,运行成功。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'TaskName' => [ + 'description' => '导入导出任务的步骤名称。', + 'type' => 'string', + 'example' => 'IMPORE_PREPARE', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"SADFSDFSD-SDFSDF-XDXCVX-ESWW\\",\\n \\"ErrorMessage\\": \\"test error msg\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"110001123456\\",\\n \\"Data\\": [\\n {\\n \\"TaskStatus\\": \\"SUCCESS\\",\\n \\"TaskName\\": \\"IMPORE_PREPARE\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n SADFSDFSD-SDFSDF-XDXCVX-ESWW\\n test error msg\\n true\\n 110001123456\\n \\n SUCCESS\\n IMPORE_PREPARE\\n \\n","errorExample":""}]', + 'title' => '获取迁移过程', + 'summary' => '调用GetMigrationProcess获取导入导出任务的进度状态。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'StartMigration' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78357', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '项目空间的ID。您可以进入DataWorks项目空间的设置页面查看。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '123456', + ], + ], + [ + 'name' => 'MigrationId', + 'in' => 'formData', + 'schema' => [ + 'description' => '导入导出包的ID。您可以调用[CreateImportMigration](~~206094~~)接口获取导入包ID,调用[CreateExportMigration](~~349325~~)接口获取导出包ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '123456', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '启动执行导入导出任务的状态信息。'."\n" + .'- true,任务启动成功。'."\n" + .'- false,任务启动失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'test error msg', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'FSDFSDF-WERWER-XVCX-DSFSDF', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '110001123445', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": true,\\n \\"ErrorMessage\\": \\"test error msg\\",\\n \\"RequestId\\": \\"FSDFSDF-WERWER-XVCX-DSFSDF\\",\\n \\"ErrorCode\\": \\"110001123445\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n true\\n test error msg\\n FSDFSDF-WERWER-XVCX-DSFSDF\\n 110001123445\\n true\\n","errorExample":""}]', + 'title' => '开始迁移', + 'summary' => '调用StartMigration启动执行导入导出任务。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateExportMigration' => [ + 'summary' => '使用CreateExportMigration,新建DataWorks导出任务且仅创建导出任务。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '86657', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '导出任务的名称。'."\n" + ."\n" + .'名称必须唯一,即当前DataWorks工作空间中不能存在名称重复的导出任务。', + 'type' => 'string', + 'required' => true, + 'example' => 'test_export_01', + ], + ], + [ + 'name' => 'ExportMode', + 'in' => 'formData', + 'schema' => [ + 'description' => '任务的导出模式,取值如下:'."\n" + .'- FULL:全量导出目标任务。'."\n" + .'- INCREMENTAL:从指定的时间点开始,增量导出目标任务。选择该模式时,需要同时配置IncrementalSince参数。', + 'type' => 'string', + 'required' => true, + 'example' => 'FULL', + 'enum' => [ + 'FULL', + 'INCREMENTAL', + ], + ], + ], + [ + 'name' => 'IncrementalSince', + 'in' => 'formData', + 'schema' => [ + 'description' => '增量导出目标任务的起始时间。'."\n" + ."\n" + .'当ExportMode参数配置为INCREMENTAL时,IncrementalSince参数才生效。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1589904000000', + ], + ], + [ + 'name' => 'ExportObjectStatus', + 'in' => 'formData', + 'schema' => [ + 'description' => '导出任务的状态。系统会根据所选状态导出指定状态的任务。取值如下:'."\n" + .'- SAVED:保存状态,即导出已保存的任务。'."\n" + .'- SUBMITTED:提交状态,即导出已提交的任务。'."\n" + .'- DEPLOYED:发布状态,即导出已发布的任务。', + 'type' => 'string', + 'required' => false, + 'example' => 'SAVED', + 'default' => 'SAVED', + 'enum' => [ + 'SAVED', + 'SUBMITTED', + 'DEPLOYED', + ], + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'description' => '导出任务的描述信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '34267E2E-0335-1A60-A1F0-ADA530890CBA', + ], + 'Data' => [ + 'description' => '导出任务的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败,您可以根据请求ID定位具体问题。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"34267E2E-0335-1A60-A1F0-ADA530890CBA\\",\\n \\"Data\\": 1234,\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 34267E2E-0335-1A60-A1F0-ADA530890CBA\\n 1234\\n true\\n","errorExample":""}]', + 'title' => '创建导出任务', + ], + 'GetMigrationSummary' => [ + 'summary' => '调用GetMigrationSummary,获取导入导出任务的信息。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '86668', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '12345', + ], + ], + [ + 'name' => 'MigrationId', + 'in' => 'formData', + 'schema' => [ + 'description' => '导入导出任务的ID。'."\n" + ."\n" + .'您可以调用[CreateImportMigration](~~2780280~~)接口获取导入任务的ID,调用[CreateExportMigration](~~2780281~~)接口获取导出任务的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '19999A96-71BA-1845-B455-ED620EF4E37F', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + .'- true:调用成功。'."\n" + .'- false:调用失败。您可以通过请求ID定位问题。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '请求返回的导入导出任务详情。', + 'type' => 'object', + 'properties' => [ + 'MigrationId' => [ + 'description' => '任务的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'Name' => [ + 'description' => '任务的名称。', + 'type' => 'string', + 'example' => 'test_export_01', + ], + 'GmtCreate' => [ + 'description' => '任务的创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589904000000', + ], + 'GmtModified' => [ + 'description' => '任务的修改时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589904000000', + ], + 'CreateUser' => [ + 'description' => '任务创建人的用户ID。', + 'type' => 'string', + 'example' => '982293332403****', + ], + 'OpUser' => [ + 'description' => '任务操作人的用户ID。', + 'type' => 'string', + 'example' => '982293332403****', + ], + 'Status' => [ + 'description' => '导入导出任务的执行状态。取值如下:'."\n" + .'- INIT:任务为初始状态。'."\n" + .'- EDITING:任务在编辑中。'."\n" + .'- IMPORTING:任务在导入中。'."\n" + .'- IMPORT_ERROR:任务导入失败。'."\n" + .'- IMPORT_SUCCESS:任务导入成功。'."\n" + .'- EXPORTING:任务在导出中。'."\n" + .'- EXPORT_ERROR:任务导出失败。'."\n" + .'- EXPORT_SUCCESS:任务导出成功。'."\n" + .'- REVOKED:任务被取消。'."\n" + .'- PARTIAL_SUCCESS:仅部分任务导入或导出成功。', + 'type' => 'string', + 'example' => 'EXPORT_SUCCESS', + ], + 'ProjectId' => [ + 'description' => '任务所在DataWorks空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'DownloadUrl' => [ + 'description' => '导出任务包的下载链接。您可以通过该链接下载导出任务。', + 'type' => 'string', + 'example' => 'https://shanghai-xxx-oss.oss-cn-shanghai.aliyuncs.com/pre/store/f10_bf47_b4fa7df0860f.zip?Expires=1639540903&OSSAccessKeyId=****&Signature=qxxxxx', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"19999A96-71BA-1845-B455-ED620EF4E37F\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"MigrationId\\": 1234,\\n \\"Name\\": \\"test_export_01\\",\\n \\"GmtCreate\\": 1589904000000,\\n \\"GmtModified\\": 1589904000000,\\n \\"CreateUser\\": \\"982293332403****\\",\\n \\"OpUser\\": \\"982293332403****\\",\\n \\"Status\\": \\"EXPORT_SUCCESS\\",\\n \\"ProjectId\\": 12345,\\n \\"DownloadUrl\\": \\"https://shanghai-xxx-oss.oss-cn-shanghai.aliyuncs.com/pre/store/f10_bf47_b4fa7df0860f.zip?Expires=1639540903&OSSAccessKeyId=****&Signature=qxxxxx\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 19999A96-71BA-1845-B455-ED620EF4E37F\\n true\\n \\n 1234\\n test_export_01\\n 1589904000000\\n 1589904000000\\n 982293332403****\\n 982293332403****\\n EXPORT_SUCCESS\\n 12345\\n https://shanghai-xxx-oss.oss-cn-shanghai.aliyuncs.com/pre/store/f10_bf47_b4fa7df0860f.zip?Expires=1639540903&OSSAccessKeyId=XXXXXXeF4Lv5j&Signature=qxxxxx\\n \\n","errorExample":""}]', + 'title' => '获取导入导出任务的信息', + ], + 'ListMigrations' => [ + 'summary' => '获取导入导出迁移任务列表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '134647', + 'abilityTreeNodes' => [ + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'title' => 'Workspace Id', + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'exclusiveMinimum' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'MigrationType', + 'in' => 'formData', + 'schema' => [ + 'title' => 'Migration operation type, IMPORT/EXPORT', + 'description' => '迁移任务的操作类型。包括:IMPORT、EXPORT。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [], + 'example' => 'IMPORT', + 'enum' => [ + 'IMPORT', + 'EXPORT', + ], + ], + ], + [ + 'name' => 'Owner', + 'in' => 'formData', + 'schema' => [ + 'description' => '负责人的ID。', + 'type' => 'string', + 'required' => false, + 'example' => '193379****', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求数据的页码数。默认值:1 ,最大值100'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '每页显示的数据条数,默认值10,最大值为100。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '10', + 'example' => '10', + 'default' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,一次请求的唯一标识。', + 'type' => 'string', + 'example' => 'F9198AA3-9010-53D5-9714-DC4****', + ], + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Migrations' => [ + 'description' => '迁移任务列表。', + 'type' => 'array', + 'items' => [ + 'description' => '迁移任务。', + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'description' => '主键ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '436064', + ], + 'Name' => [ + 'description' => '任务名称。', + 'type' => 'string', + 'example' => 'test_task_1638498642279', + ], + 'PackageType' => [ + 'description' => '导入导出包的类型,取值如下:'."\n" + .'- DWMA(标准格式)'."\n" + .'- DATAWORKS_MODEL(标准格式)'."\n" + .'- DATAWORKS_V2(专有云(V3.6.1-V3.11))'."\n" + .'- DATAWORKS_V3(专有云(V3.12及以上))'."\n" + ."\n" + .'DWMA和DATAWORKS_MODEL可通用'."\n", + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'DATAWORKS_MODEL', + ], + 'MigrationType' => [ + 'description' => '迁移任务的操作类型。'."\n" + ."\n" + .'- IMPORT'."\n" + .'- EXPORT', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'EXPORT', + ], + 'CreateTime' => [ + 'description' => '创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123124123123123', + ], + 'UpdateTime' => [ + 'description' => '更新时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123123123123123', + ], + 'CreateUser' => [ + 'description' => '创建人。', + 'type' => 'string', + 'example' => '123123****', + ], + 'CreateUserName' => [ + 'description' => '创建人名称。', + 'type' => 'string', + 'example' => '3h1_test', + ], + 'UpdateUser' => [ + 'description' => '更新人。', + 'type' => 'string', + 'example' => '1231****', + ], + 'UpdateUserName' => [ + 'description' => '更新人名称。', + 'type' => 'string', + 'example' => '3h1_test', + ], + 'ProjectId' => [ + 'description' => '任务所在DataWorks空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '72132', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '16307', + ], + 'Status' => [ + 'description' => '导入导出迁移任务的执行状态。取值如下:'."\n" + .'- INIT:任务为初始状态。'."\n" + .'- EDITING:任务在编辑中。'."\n" + .'- RUNNING,任务在运行中。'."\n" + .'- FAILURE,任务运行失败。'."\n" + .'- SUCCESS,任务运行成功。', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'SUCCESS', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'An internal system error occurred. datasource kafka region is not cn-chengdu, can\'t open network for it', + ], + 'DownloadUrl' => [ + 'description' => '导出任务包的下载链接。您可以通过该链接下载导出任务。', + 'type' => 'string', + 'example' => 'http://geoip-sdk-user.oss-cn-zhangjiakou.aliyuncs.com/product/v1/ipv4/trace/v1.20220424123842.dex?Expires=1650780849&OSSAccessKeyId=*****&Signature=qxxxxx', + ], + 'Description' => [ + 'description' => '导出任务的描述信息。', + 'type' => 'string', + 'example' => 'Automated Test creation', + ], + ], + ], + ], + 'PageNumber' => [ + 'description' => '当前的页数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大为50条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '20', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"F9198AA3-9010-53D5-9714-DC4****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Migrations\\": [\\n {\\n \\"Id\\": 436064,\\n \\"Name\\": \\"test_task_1638498642279\\",\\n \\"PackageType\\": \\"DATAWORKS_MODEL\\",\\n \\"MigrationType\\": \\"EXPORT\\",\\n \\"CreateTime\\": 123124123123123,\\n \\"UpdateTime\\": 123123123123123,\\n \\"CreateUser\\": \\"123123****\\",\\n \\"CreateUserName\\": \\"3h1_test\\",\\n \\"UpdateUser\\": \\"1231****\\",\\n \\"UpdateUserName\\": \\"3h1_test\\",\\n \\"ProjectId\\": 72132,\\n \\"TenantId\\": 16307,\\n \\"Status\\": \\"SUCCESS\\",\\n \\"Message\\": \\"An internal system error occurred. datasource kafka region is not cn-chengdu, can\'t open network for it\\",\\n \\"DownloadUrl\\": \\"http://geoip-sdk-user.oss-cn-zhangjiakou.aliyuncs.com/product/v1/ipv4/trace/v1.20220424123842.dex?Expires=1650780849&OSSAccessKeyId=*****&Signature=qxxxxx\\",\\n \\"Description\\": \\"Automated Test creation\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 20\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n F9198AA3-9010-53D5-9714-DC4461427D3E\\n true\\n \\n \\n 436064\\n test_task_1638498642279\\n DATAWORKS_MODEL\\n EXPORT\\n 123124123123123\\n 123123123123123\\n 123123****\\n 3h1_test\\n 1231****\\n 3h1_test\\n 72132\\n 16307\\n SUCCESS\\n An internal system error occurred. datasource kafka region is not cn-chengdu, can\'t open network for it\\n http://geoip-sdk-user.oss-cn-zhangjiakou.aliyuncs.com/product/v1/ipv4/trace/v1.20220424123842.dex?Expires=1650780849&OSSAccessKeyId=XXXXXXeF4Lv5j&Signature=qxxxxx\\n 自动化测试创建\\n \\n 1\\n 10\\n 20\\n \\n","errorExample":""}]', + 'title' => '获取迁移任务列表', + ], + 'CreatePermissionApplyOrder' => [ + 'summary' => '创建一个权限申请单。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78190', + 'abilityTreeNodes' => [ + 'FEATUREdide0DCVNY', + ], + ], + 'parameters' => [ + [ + 'name' => 'ApplyUserIds', + 'in' => 'query', + 'schema' => [ + 'description' => '申请权限的阿里云账户UID,当同时为多个账号申请权限时,使用逗号(,)隔开。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '26784260040899****,26784260040899****', + ], + ], + [ + 'name' => 'Deadline', + 'in' => 'query', + 'schema' => [ + 'description' => '申请权限的到期时间。此处需要输入一个unix时间戳,不输入默认到期时间为2065年1月1日。'."\n" + .'如果MaxCompute项目未开启LabelSecurity,或申请的表字段安全等级为0或小于等于申请账号的安全等级时,只能申请永久权限。'."\n" + .'您可以进入DataWorks工作空间的管理页面,在MaxCompute引擎的高级配置页面,查看是否启动列级别访问控制。'."\n" + .'您可以进入DataWorks工作空间,在数据地图查看字段的安全等级,在成员管理页面查看账号的安全等级。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1617115071885', + ], + ], + [ + 'name' => 'ApplyReason', + 'in' => 'query', + 'schema' => [ + 'description' => '申请的原因。用于管理员进行评估审批。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'I need to use this table', + ], + ], + [ + 'name' => 'MaxComputeProjectName', + 'in' => 'query', + 'schema' => [ + 'description' => '申请权限的MaxCompute项目名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'aMaxcomputeProjectName', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '申请权限的MaxCompute项目所属的DataWorks工作空间ID,您可以进入DataWorks工作空间配置页面,查询工作空间ID。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => false, + 'maximum' => '999999', + 'minimum' => '0', + 'example' => '12345', + ], + ], + [ + 'name' => 'OrderType', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => [ + 'description' => '该字段已废弃,设置为空即可', + 'type' => 'integer', + 'format' => 'int32', + 'deprecated' => true, + 'required' => false, + 'example' => '1', + 'enum' => [ + '1', + ], + ], + ], + [ + 'name' => 'EngineType', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => [ + 'description' => '该字段已废弃,设置为空即可', + 'type' => 'string', + 'deprecated' => true, + 'required' => false, + 'example' => 'odps', + 'enum' => [ + 'odps', + ], + ], + ], + [ + 'name' => 'ApplyObject', + 'in' => 'query', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '申请对象列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象。', + 'type' => 'object', + 'properties' => [ + 'Actions' => [ + 'description' => '申请的权限类型,一次申请多种类型权限时使用逗号(,)分隔。目前仅支持申请Select、Describe、Drop、Alter、Update、Download类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'Select,Describe', + ], + 'ColumnMetaList' => [ + 'description' => '字段对象列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '申请目标列的权限,此处输入列名称。如果申请全表的权限,则需要输入表的所有列名。'."\n" + .'仅当MaxCompute项目开启了labelSecurity,才可以申请部分列的权限。如果MaxCompute项目没有开启labelSecurity,则只能申请全表的权限。', + 'type' => 'string', + 'required' => false, + 'example' => 'aColumnName', + ], + 'Actions' => [ + 'description' => '申请的权限类型,一次申请多种类型权限时使用逗号(,)分隔。目前仅支持申请Select、Describe、Download类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'Select', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 200, + ], + 'Name' => [ + 'description' => '申请的对象。目前仅支持申请MaxCompute表的权限,此处需要输入目标表的名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'aTableName', + ], + ], + 'required' => false, + ], + 'required' => true, + 'maxItems' => 50, + ], + ], + [ + 'name' => 'ApplyType', + 'in' => 'query', + 'schema' => [ + 'description' => '设置申请单类型,枚举值为:'."\n" + ."\n" + .'- [ MaxComputeTable] MaxCompute表权限申请单'."\n" + .'- [ MaxComputeFunction] MaxCompute函数申请单'."\n" + .'- [ MaxComputeResource] MaxCompute资源申请单'."\n" + .'- [ DLFSchema] DLF1.0版本Schema权限申请单'."\n" + .'- [ DLFTable] DLF1.0版本表权限申请单'."\n" + .'- [ DLFColumn] DLF1.0版本列权限申请单'."\n" + .'- [ DsApiDeploy] 发布数据服务权限申请单', + 'type' => 'string', + 'required' => false, + 'example' => 'MaxComputeTable', + 'default' => 'MaxComputeTable', + 'enum' => [ + 'MaxComputeTable', + 'DLFSchema', + 'DLFTable', + 'DLFColumn', + 'DsApiDeploy', + ], + ], + ], + [ + 'name' => 'CatalogName', + 'in' => 'query', + 'schema' => [ + 'description' => '查询的数据目录名称。您可前往[数据湖控制台](https://dlf.console.aliyun.com/cn-hangzhou/metadata/catalog?spm=a2c4g.11186623.0.0.5a225658pT4Dkr)查看数据目录名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'hive', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376****', + ], + 'FlowId' => [ + 'description' => '流程id列表。', + 'type' => 'array', + 'items' => [ + 'description' => '生成的申请单ID。当同时申请多个对象并且各个对象的审批人不同时,会根据不同的审批人生成多张申请单,此时会返回一个数组。', + 'type' => 'string', + 'example' => 'ee276e6e-5d34-46d8-b848-bca7879ed233', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0bc1ec92159376****\\",\\n \\"FlowId\\": [\\n \\"ee276e6e-5d34-46d8-b848-bca7879ed233\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 0bc1ec92159376****\\n ee276e6e-5d34-46d8-b848-bca7879ed233\\n","errorExample":""}]', + 'title' => '创建权限申请单', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetPermissionApplyOrderDetail' => [ + 'summary' => '查询一个权限申请单的详细信息。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78280', + 'abilityTreeNodes' => [ + 'FEATUREdideGWNJ45', + ], + ], + 'parameters' => [ + [ + 'name' => 'FlowId', + 'in' => 'query', + 'schema' => [ + 'description' => '权限申请单ID。您可以调用[ListPermissionApplyOrders](~~211008~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '48f36729-05f9-4a40-9286-933fd940****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。'."\n", + 'type' => 'string', + 'example' => '0bc1ec92159376****', + ], + 'ApplyOrderDetail' => [ + 'description' => '申请单详情。', + 'type' => 'object', + 'properties' => [ + 'ApplyBaseId' => [ + 'description' => '提交申请单的阿里云用户UID。', + 'type' => 'string', + 'example' => '26784260040899****', + ], + 'ApplyTimestamp' => [ + 'description' => '发起申请单的时间,显示为一个unix时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1615284086000', + ], + 'FlowId' => [ + 'description' => '申请单ID。', + 'type' => 'string', + 'example' => 'ad8da78d-8135-455e-9486-27cf213f****', + ], + 'FlowStatus' => [ + 'description' => '申请单的状态。取值如下:'."\n" + .'- 1:待审批。'."\n" + .'- 2:审批通过,授权成功。'."\n" + .'- 3:审批通过,授权失败。'."\n" + .'- 4:审批拒绝。'."\n" + .'- 5:撤回申请单。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'ApproveAccountList' => [ + 'description' => '审批申请单的阿里云账号列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'BaseId' => [ + 'description' => '审批申请单的阿里云用户UID。', + 'type' => 'string', + 'example' => '182293110403****', + ], + ], + ], + ], + 'GranteeObjectList' => [ + 'description' => '申请权限的账号信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'GranteeType' => [ + 'description' => '申请权限的主体类型。目前只支持1(用户)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'GranteeTypeSub' => [ + 'description' => '申请权限的主体子类型,取值如下:'."\n" + .'- 101:生产云账号。'."\n" + .'- 103:个人云账号。'."\n" + .'- 105:代他人申请云账号。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '103', + ], + 'GranteeName' => [ + 'description' => '申请权限的云账号名称。格式与MaxCompute的账号格式一致。'."\n" + .'- 主账号为ALIYUN$+账号名。'."\n" + .'- 子账号为RAM$+账号名。', + 'type' => 'string', + 'example' => 'RAM$dataworks_3h1_1:StsRamUser(StsRamUser)', + ], + 'GranteeId' => [ + 'description' => '申请权限的阿里云用户UID。', + 'type' => 'string', + 'example' => '26784260040899****', + ], + ], + ], + ], + 'ApproveContent' => [ + 'description' => '申请的具体内容。', + 'type' => 'object', + 'properties' => [ + 'ApplyReason' => [ + 'description' => '申请的原因,用于管理员审批参考。', + 'type' => 'string', + 'example' => 'I need to use this table', + ], + 'Deadline' => [ + 'description' => '申请权限的到期时间。此处显示为一个unix时间戳。'."\n" + .'如果MaxCompute项目未开启LabelSecurity,或申请的表字段安全等级为0或小于等于申请账号的安全等级时,只能申请永久权限。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1617115071885', + ], + 'OrderType' => [ + 'description' => '申请单类型。目前仅支持取值为1,表示对象ACL权限申请。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectMeta' => [ + 'description' => '申请对象所属的项目和工作空间信息。', + 'type' => 'object', + 'properties' => [ + 'MaxComputeProjectName' => [ + 'description' => '申请对象所在的MaxCompute项目。', + 'type' => 'string', + 'example' => 'aMaxComputeProject', + ], + 'WorkspaceId' => [ + 'description' => '申请对象所在的DataWorks工作空间ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '123456', + ], + 'ObjectMetaList' => [ + 'description' => '申请对象的详细信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'ObjectName' => [ + 'description' => '申请的表名。', + 'type' => 'string', + 'example' => 'aTableName', + ], + 'ColumnMetaList' => [ + 'description' => '申请对象的列字段信息。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结构。', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '申请的列名称。', + 'type' => 'string', + 'example' => 'aColumnName', + ], + 'ColumnComment' => [ + 'description' => '申请的列描述。', + 'type' => 'string', + 'example' => 'Field description', + ], + 'SecurityLevel' => [ + 'description' => '申请的列安全级别。取值范围为0~9。', + 'type' => 'string', + 'example' => '9', + ], + 'ColumnActions' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'Actions' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'FinishAapprovalTimestamp' => [ + 'description' => '最终审批结束时间。显示为一个unix时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1757496687000', + ], + 'FinishApprovalComment' => [ + 'description' => '最终审批意见。', + 'type' => 'string', + 'example' => 'agree', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0bc1ec92159376****\\",\\n \\"ApplyOrderDetail\\": {\\n \\"ApplyBaseId\\": \\"26784260040899****\\",\\n \\"ApplyTimestamp\\": 1615284086000,\\n \\"FlowId\\": \\"ad8da78d-8135-455e-9486-27cf213f****\\",\\n \\"FlowStatus\\": 2,\\n \\"ApproveAccountList\\": [\\n {\\n \\"BaseId\\": \\"182293110403****\\"\\n }\\n ],\\n \\"GranteeObjectList\\": [\\n {\\n \\"GranteeType\\": 1,\\n \\"GranteeTypeSub\\": 103,\\n \\"GranteeName\\": \\"RAM$dataworks_3h1_1:StsRamUser(StsRamUser)\\",\\n \\"GranteeId\\": \\"26784260040899****\\"\\n }\\n ],\\n \\"ApproveContent\\": {\\n \\"ApplyReason\\": \\"I need to use this table\\",\\n \\"Deadline\\": 1617115071885,\\n \\"OrderType\\": 1,\\n \\"ProjectMeta\\": {\\n \\"MaxComputeProjectName\\": \\"aMaxComputeProject\\",\\n \\"WorkspaceId\\": 123456,\\n \\"ObjectMetaList\\": [\\n {\\n \\"ObjectName\\": \\"aTableName\\",\\n \\"ColumnMetaList\\": [\\n {\\n \\"ColumnName\\": \\"aColumnName\\",\\n \\"ColumnComment\\": \\"Field description\\",\\n \\"SecurityLevel\\": \\"9\\",\\n \\"ColumnActions\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"Actions\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n }\\n },\\n \\"FinishAapprovalTimestamp\\": 1757496687000,\\n \\"FinishApprovalComment\\": \\"agree\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0bc1ec92159376****\\n \\n 26784260040899****\\n 1615284086000\\n ad8da78d-8135-455e-9486-27cf213f****\\n 2\\n \\n 182293110403****\\n \\n \\n 1\\n 103\\n RAM$dataworks_3h1_1:StsRamUser(StsRamUser)\\n 26784260040899****\\n \\n \\n I need to use this table\\n 1617115071885\\n 1\\n \\n aMaxComputeProject\\n 12345\\n \\n aTableName\\n \\n aColumnName\\n 字段描述\\n 9\\n \\n \\n \\n \\n \\n","errorExample":""}]', + 'title' => '查询权限申请单的详细信息', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListPermissionApplyOrders' => [ + 'summary' => '查询权限申请单列表。', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78323', + 'abilityTreeNodes' => [ + 'FEATUREdide0DCVNY', + ], + ], + 'parameters' => [ + [ + 'name' => 'FlowStatus', + 'in' => 'query', + 'schema' => [ + 'description' => '申请单的状态。取值如下:'."\n" + .'- 1:待审批。'."\n" + .'- 2:审批通过,授权成功。'."\n" + .'- 3:审批通过,授权失败。'."\n" + .'- 4:审批拒绝。'."\n" + .'- 5: 撤回申请单', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + 'enum' => [ + '0', + '1', + '2', + '3', + '4', + '5', + ], + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '申请单所属的工作空间ID,不输入则返回所有工作空间的申请单。您可登录DataWorks控制台,进入工作空间配置页面,查询工作空间ID。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'OrderType', + 'in' => 'query', + 'schema' => [ + 'description' => '该字段已废弃,不会生效', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => false, + 'maximum' => '1', + 'minimum' => '0', + 'example' => '1', + 'enum' => [ + '1', + '0', + ], + ], + ], + [ + 'name' => 'MaxComputeProjectName', + 'in' => 'query', + 'schema' => [ + 'description' => '申请单所属的MaxCompute项目名称,不输入则返回所有MaxCompute项目的申请单。', + 'type' => 'string', + 'required' => false, + 'example' => 'aMaxComputeProject', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => '申请单包含的表名称,不输入则返回所有表的申请单。', + 'type' => 'string', + 'required' => false, + 'example' => 'aTableName', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'description' => '查询目标起始时间发起的申请单,配置为一个unix时间戳。不输入则表示查询所有的申请单。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1616200471885', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'description' => '查询目标截至时间的申请单,配置为一个unix时间戳。不输入则表示查询截至当前时间的申请单。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1617200471885', + ], + ], + [ + 'name' => 'EngineType', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => [ + 'description' => '该字段已废弃,不会生效', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'odps', + 'enum' => [ + 'odps', + ], + ], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询页码。大于等于1的正整数,默认为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '100', + 'default' => '10', + ], + ], + [ + 'name' => 'QueryType', + 'in' => 'query', + 'schema' => [ + 'description' => '申请单的查询类型。取值如下:'."\n" + .'- 0:我提交的申请单。'."\n" + .'- 1:由我审批的申请单。'."\n" + .'- 2: 全部申请单', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '2', + 'minimum' => '0', + 'example' => '1', + 'enum' => [ + '0', + '1', + '2', + ], + ], + ], + [ + 'name' => 'ApplyType', + 'in' => 'query', + 'schema' => [ + 'description' => '设置申请单类型,枚举值为:'."\n" + ."\n" + .'- [ MaxComputeTable] MaxCompute表权限申请单'."\n" + .'- [ MaxComputeFunction] MaxCompute函数申请单'."\n" + .'- [ MaxComputeResource] MaxCompute资源申请单'."\n" + .'- [ DLFSchema] DLF1.0版本Schema权限申请单'."\n" + .'- [ DLFTable] DLF1.0版本表权限申请单'."\n" + .'- [ DLFColumn] DLF1.0版本列权限申请单'."\n" + .'- [ DsApiDeploy] 发布数据服务权限申请单', + 'type' => 'string', + 'required' => false, + 'example' => 'MaxComputeTable', + 'default' => 'MaxComputeTable', + 'enum' => [ + 'MaxComputeTable', + 'MaxComputeFunction', + 'MaxComputeResource', + 'DLFSchema', + 'DLFTable', + 'DLFColumn', + 'HologresTable', + 'StarRocksTable', + 'StarRocksSchema', + 'EmrSchema', + 'EmrTable', + 'LindormTable', + 'DsApiDeploy', + 'DIJobs', + 'ExtensionSet', + 'DgcCheckerOperation', + ], + ], + ], + [ + 'name' => 'CatalogName', + 'in' => 'query', + 'schema' => [ + 'description' => '查询的数据目录名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'hive', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376****', + ], + 'ApplyOrders' => [ + 'description' => '权限申请单的分页查询结果。', + 'type' => 'object', + 'properties' => [ + 'PageSize' => [ + 'description' => '每页显示的条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'PageNumber' => [ + 'description' => '页码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TotalCount' => [ + 'description' => '返回的权限申请单总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '150', + ], + 'ApplyOrder' => [ + 'description' => '权限申请单列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'ApplyBaseId' => [ + 'description' => '提交申请单的阿里云用户UID。', + 'type' => 'string', + 'example' => '267842600408993176', + ], + 'ApplyTimestamp' => [ + 'description' => '申请单的提交时间,显示为一个unix时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1615284086000', + ], + 'FlowId' => [ + 'description' => '申请单ID。'."\n", + 'type' => 'string', + 'example' => 'ad8da78d-8135-455e-9486-27cf213fc140', + ], + 'FlowStatus' => [ + 'description' => '申请单的状态。取值如下:'."\n" + .'- 1:待审批。'."\n" + .'- 2:审批通过,授权成功。'."\n" + .'- 3:审批通过,授权失败。'."\n" + .'- 4:审批拒绝。'."\n" + .'- 5:撤回申请单。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'ApproveContent' => [ + 'description' => '申请单的内容。', + 'type' => 'object', + 'properties' => [ + 'ApplyReason' => [ + 'description' => '申请的原因。用于管理员进行评估审批。', + 'type' => 'string', + 'example' => 'I need to use this table', + ], + 'OrderType' => [ + 'description' => '申请单类型。目前仅支持取值为1,表示对象ACL权限申请。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectMeta' => [ + 'description' => '申请对象的内容。'."\n", + 'type' => 'object', + 'properties' => [ + 'WorkspaceName' => [ + 'description' => '申请权限的MaxCompute项目所属的DataWorks工作空间名称。', + 'type' => 'string', + 'example' => 'aWorkspaceName', + ], + 'ObjectMetaList' => [ + 'description' => '申请的对象信息。'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'ObjectName' => [ + 'description' => '申请的表名称。'."\n", + 'type' => 'string', + 'example' => 'aTableName', + ], + 'Actions' => [ + 'description' => '操作类型。', + 'type' => 'array', + 'items' => [ + 'description' => '申请的权限类型,一次申请多种类型权限时使用英文逗号(,)分隔。'."\n" + .'目前仅支持申请Select、Describe、Drop、Alter、Update、Download类型。', + 'type' => 'string', + 'example' => 'Select,Describe', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'FinishApprovalTimestamp' => [ + 'description' => '最终审批结束时间。显示为一个unix时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1757496687000', + ], + 'FinishApprovalComment' => [ + 'description' => '最终审批意见。', + 'type' => 'string', + 'example' => 'agree', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0bc1ec92159376****\\",\\n \\"ApplyOrders\\": {\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 150,\\n \\"ApplyOrder\\": [\\n {\\n \\"ApplyBaseId\\": \\"267842600408993176\\",\\n \\"ApplyTimestamp\\": 1615284086000,\\n \\"FlowId\\": \\"ad8da78d-8135-455e-9486-27cf213fc140\\",\\n \\"FlowStatus\\": 2,\\n \\"ApproveContent\\": {\\n \\"ApplyReason\\": \\"I need to use this table\\",\\n \\"OrderType\\": 1,\\n \\"ProjectMeta\\": {\\n \\"WorkspaceName\\": \\"aWorkspaceName\\",\\n \\"ObjectMetaList\\": [\\n {\\n \\"ObjectName\\": \\"aTableName\\",\\n \\"Actions\\": [\\n \\"Select,Describe\\"\\n ]\\n }\\n ]\\n }\\n },\\n \\"FinishApprovalTimestamp\\": 1757496687000,\\n \\"FinishApprovalComment\\": \\"agree\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0bc1ec92159376****\\n \\n 10\\n 1\\n 150\\n \\n 267842600408993176\\n 1615284086000\\n ad8da78d-8135-455e-9486-27cf213fc140\\n 2\\n \\n I need to use this table\\n 1\\n \\n aWorkspaceName\\n \\n aTableName\\n Select,Describe\\n \\n \\n \\n \\n \\n","errorExample":""}]', + 'title' => '查询权限申请单列表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ApprovePermissionApplyOrder' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'FlowId', + 'in' => 'query', + 'schema' => [ + 'description' => '审批的申请单ID,您可以调用[ListPermissionApplyOrders](~~211008~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '48f36729-05f9-4a40-9286-933fd940f30a', + ], + ], + [ + 'name' => 'ApproveComment', + 'in' => 'query', + 'schema' => [ + 'description' => '审批的备注信息。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'agree', + ], + ], + [ + 'name' => 'ApproveAction', + 'in' => 'query', + 'schema' => [ + 'description' => '执行的审批动作,取值如下:'."\n" + .'- 1:同意。'."\n" + .'- 2:拒绝。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '5', + 'minimum' => '0', + 'enumValueTitles' => [], + 'example' => '1', + 'enum' => [ + '0', + '1', + '2', + '3', + '4', + '5', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'ApproveSuccess' => [ + 'description' => '审批是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376****', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"ApproveSuccess\\": true,\\n \\"RequestId\\": \\"0bc1ec92159376****\\"\\n}","errorExample":""},{"type":"xml","example":"0bc1ec92159376****\\ntrue","errorExample":""}]', + 'title' => '审批权限申请单', + 'summary' => '审批一个权限申请单。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'RevokeTablePermission' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '需要撤销权限的MaxCompute表所属的DataWorks工作空间ID。您可以登录DataWorks控制台,进入工作空间配置页面,查询工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9999999', + 'minimum' => '1', + 'example' => '12345', + ], + ], + [ + 'name' => 'MaxComputeProjectName', + 'in' => 'query', + 'schema' => [ + 'description' => '需要撤销权限的表所在的MaxCompute项目名称。您可以登录DataWorks控制台,进入工作空间配置页面,查询DataWorks工作空间绑定的MaxCompute项目名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'aMaxcomputeProjectName', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => '需要撤销权限的MaxCompute表名称。您可以调用[SearchMetaTables](~~173919~~)接口,获取MaxCompute表名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'aTableName', + ], + ], + [ + 'name' => 'Actions', + 'in' => 'query', + 'schema' => [ + 'description' => '需要撤销的表的操作权限,一次撤销多种操作权限时使用逗号(,)分隔。'."\n" + .'目前仅支持撤销MaxCompute表的Select、Describe、Download等操作权限。'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'Select,Describe', + ], + ], + [ + 'name' => 'RevokeUserName', + 'in' => 'query', + 'schema' => [ + 'description' => '撤销表权限的云账号名称。账号格式与MaxCompute的账号格式一致。'."\n" + .'- 主账号为ALIYUN$+账号名。'."\n" + .'- 子账号为RAM$+账号名。'."\n" + ."\n" + .'该参数与RevokeUserId参数配置一个即可。如果同时配置了该参数与RevokeUserId参数,但二者取值不同,则系统会以RevokeUserId参数的配置内容为准。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'RAM$dataworks_3h1_1:stsramuser', + ], + ], + [ + 'name' => 'RevokeUserId', + 'in' => 'query', + 'schema' => [ + 'description' => '撤销表权限的阿里云账号ID。您可以登录DataWorks控制台,进入安全设置页面获取账号ID。'."\n" + .'该参数与RevokeUserName参数配置一个即可。如果同时配置了该参数与RevokeUserName参数,但二者取值不同,则系统会以RevokeUserId参数的配置为准。', + 'type' => 'string', + 'required' => false, + 'example' => '267842600408993176', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RevokeSuccess' => [ + 'description' => '撤销操作是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1ec92159376****', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RevokeSuccess\\": true,\\n \\"RequestId\\": \\"0bc1ec92159376****\\"\\n}","errorExample":""},{"type":"xml","example":"true\\n0bc1ec92159376****","errorExample":""}]', + 'title' => '撤销用户的表权限', + 'summary' => '撤销用户的表权限。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListExtensions' => [ + 'summary' => '拉取开放平台的扩展程序列表。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '0000-ABCD-****', + ], + 'PagingInfo' => [ + 'description' => '分页信息', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '请求的数据页数,用于翻页。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '满足条件的数据总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '12', + ], + 'Extensions' => [ + 'description' => '扩展程序列表', + 'type' => 'array', + 'items' => [ + 'description' => '扩展程序详情', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '扩展程序状态:'."\n" + .'0:测试中,'."\n" + .'1:上线中,'."\n" + .'3:禁用中,'."\n" + .'4:审批中,'."\n" + .'5:审批通过,'."\n" + .'6:审批不通过', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ExtensionDesc' => [ + 'description' => '扩展程序描述', + 'type' => 'string', + 'example' => 'This is a description', + ], + 'ExtensionName' => [ + 'description' => '扩展程序名称', + 'type' => 'string', + 'example' => 'Extension name', + ], + 'Owner' => [ + 'description' => '子账号ID', + 'type' => 'string', + 'example' => '2003****', + ], + 'ExtensionCode' => [ + 'description' => '唯一的扩展程序码', + 'type' => 'string', + 'example' => 'Extension Code', + ], + 'BindEventList' => [ + 'description' => '扩展点事件列表', + 'type' => 'array', + 'items' => [ + 'description' => '事件详情', + 'type' => 'object', + 'properties' => [ + 'EventName' => [ + 'description' => '事件名称', + 'type' => 'string', + 'example' => 'File submission pre-event', + ], + 'EventCode' => [ + 'description' => '事件码', + 'type' => 'string', + 'example' => 'commit-file', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-****\\",\\n \\"PagingInfo\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 12,\\n \\"Extensions\\": [\\n {\\n \\"Status\\": 0,\\n \\"ExtensionDesc\\": \\"This is a description\\",\\n \\"ExtensionName\\": \\"Extension name\\",\\n \\"Owner\\": \\"2003****\\",\\n \\"ExtensionCode\\": \\"Extension Code\\",\\n \\"BindEventList\\": [\\n {\\n \\"EventName\\": \\"File submission pre-event\\",\\n \\"EventCode\\": \\"commit-file\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG\\n \\n 1\\n 10\\n 12\\n \\n 0\\n 这是一个描述\\n 扩展程序名称\\n 2003****\\n 扩展程序码\\n \\n 文件提交前置事件\\n commit-file\\n \\n \\n \\n","errorExample":""}]', + 'title' => '获取扩展程序列表', + ], + 'GetExtension' => [ + 'summary' => '获取某个扩展程序详情。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATUREdideZKHMWN', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExtensionCode', + 'in' => 'query', + 'schema' => [ + 'description' => '扩展程序唯一编码。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'ce4*********086da5', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG', + ], + 'Extension' => [ + 'description' => '扩展程序详情。', + 'type' => 'object', + 'properties' => [ + 'ExtensionCode' => [ + 'description' => '扩展程序唯一码。', + 'type' => 'string', + 'example' => 'ce4*********086da5', + ], + 'ExtensionName' => [ + 'description' => '扩展程序名称。', + 'type' => 'string', + 'example' => 'Extension name', + ], + 'ExtensionDesc' => [ + 'description' => '扩展程序描述。', + 'type' => 'string', + 'example' => 'This is a description', + ], + 'HelpDocUrl' => [ + 'description' => '扩展程序帮助文档链接。', + 'type' => 'string', + 'example' => 'https://www.aliyun.com/', + ], + 'Status' => [ + 'description' => '扩展程序状态: 0:测试中, 1:上线中, 3:禁用中, 4:审批中, 5:审批通过, 6:审批不通过。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ProjectTesting' => [ + 'description' => '测试用的项目空间,当扩展程序处于测试中时,只有测试项目空间可使用。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1355211', + ], + 'DetailUrl' => [ + 'description' => '扩展程序详情地址,用来扩展程序使用者查看本次被卡流程的详情。', + 'type' => 'string', + 'example' => 'https://www.aliyun.com/', + ], + 'ParameterSetting' => [ + 'description' => '参数配置,参考[扩展程序参数配置](~~405354~~)。', + 'type' => 'string', + 'example' => 'extension.project.disabled=projectId1,projectId2,projectId3', + ], + 'OptionSetting' => [ + 'description' => '选项配置。', + 'type' => 'string', + 'example' => 'Option configuration', + ], + 'BindEventList' => [ + 'description' => '扩展点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '扩展点详情。', + 'type' => 'object', + 'properties' => [ + 'EventCode' => [ + 'description' => '扩展点事件编码。', + 'type' => 'string', + 'example' => 'commit-file', + ], + 'EventName' => [ + 'description' => '扩展点事件名称。', + 'type' => 'string', + 'example' => 'File submission pre-event'."\n", + ], + ], + ], + ], + 'EventCategoryList' => [ + 'description' => '事件类型列表。', + 'type' => 'array', + 'items' => [ + 'description' => '事件类型详情。', + 'type' => 'object', + 'properties' => [ + 'CategoryCode' => [ + 'description' => '事件类型编码。', + 'type' => 'string', + 'example' => 'file-change', + ], + 'CategoryName' => [ + 'description' => '事件类型名称。', + 'type' => 'string', + 'example' => 'File change event', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG\\",\\n \\"Extension\\": {\\n \\"ExtensionCode\\": \\"ce4*********086da5\\",\\n \\"ExtensionName\\": \\"Extension name\\",\\n \\"ExtensionDesc\\": \\"This is a description\\",\\n \\"HelpDocUrl\\": \\"https://www.aliyun.com/\\",\\n \\"Status\\": 0,\\n \\"ProjectTesting\\": 1355211,\\n \\"DetailUrl\\": \\"https://www.aliyun.com/\\",\\n \\"ParameterSetting\\": \\"extension.project.disabled=projectId1,projectId2,projectId3\\",\\n \\"OptionSetting\\": \\"Option configuration\\",\\n \\"BindEventList\\": [\\n {\\n \\"EventCode\\": \\"commit-file\\",\\n \\"EventName\\": \\"File submission pre-event\\\\n\\"\\n }\\n ],\\n \\"EventCategoryList\\": [\\n {\\n \\"CategoryCode\\": \\"file-change\\",\\n \\"CategoryName\\": \\"File change event\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 0000-ABCD-EFG\\n \\n ce4*********086da5\\n 扩展程序名称\\n 这是一个描述\\n https://www.aliyun.com/\\n 0\\n 13552\\n https://www.aliyun.com/\\n extension.project.disabled=projectId1,projectId2,projectId3\\n 选项配置\\n \\n commit-file\\n 文件提交前置事件\\n \\n \\n file-change\\n 文件变更事件\\n \\n \\n","errorExample":""}]', + 'title' => '获取扩展程序详情', + ], + 'GetOptionValueForProject' => [ + 'summary' => '获取扩展程序选项配置在项目空间下的配置。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ExtensionCode', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展程序的唯一编码。', + 'type' => 'string', + 'required' => false, + 'example' => 'ce4*********086da5', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'string', + 'required' => false, + 'example' => '234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'OptionValue' => [ + 'description' => '返回数据。示例中的cuNumber为自定义的Key。', + 'type' => 'string', + 'example' => '{"cuNumber":"0"}', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"OptionValue\\": \\"{\\\\\\"cuNumber\\\\\\":\\\\\\"0\\\\\\"}\\"\\n}","errorExample":""},{"type":"xml","example":"\\n E6F0DBDD-5AD****\\n {\\"cuNumber\\":\\"0\\"}\\n","errorExample":""}]', + 'title' => '获取扩展程序选项配置在项目空间下的配置', + ], + 'ListEnabledExtensionsForProject' => [ + 'summary' => '调用ListEnabledExtensionsForProject来获取项目空间下已经开启的扩展程序列表,包含系统扩展程序和自定义扩展程序。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '158027', + 'abilityTreeNodes' => [ + 'FEATUREdideRWC5F7', + ], + ], + 'parameters' => [ + [ + 'name' => 'EventCode', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展点事件编码。', + 'type' => 'string', + 'required' => true, + 'example' => 'commit-file', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以[登录DataWorks控制台](https://workbench.data.aliyun.com/console?spm=a2c4g.11186623.0.0.6b4d4941azHd2k),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'FileType', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件的代码类型。'."\n" + ."\n" + .'不同文件类型其代码不同,详情请参见[DataWorks节点合集](~~600169~~)。'."\n" + .'您也可以调用[ListFileType](~~212428~~)接口,查询文件的代码类型。', + 'type' => 'string', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求唯一ID', + 'type' => 'string', + 'example' => '4F2CA7ED-27E5-59EA-A8C4-F1F7A1FF0B22', + ], + 'Extensions' => [ + 'description' => '扩展程序详情', + 'type' => 'array', + 'items' => [ + 'description' => '扩展程序', + 'type' => 'object', + 'properties' => [ + 'ExtensionCode' => [ + 'description' => '扩展程序唯一编码。', + 'type' => 'string', + 'example' => 'a94a8e23bc0b4dfab9a5e4d2f374d645', + ], + 'ExtensionName' => [ + 'description' => '扩展程序名称', + 'type' => 'string', + 'example' => 'max_pt function is not allowed.', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '52988951865****', + ], + 'CreateUser' => [ + 'description' => '创建人', + 'type' => 'string', + 'example' => '3444434343555', + ], + 'ModifyUser' => [ + 'description' => '修改人', + 'type' => 'string', + 'example' => '34452335611988', + ], + 'ExtensionDesc' => [ + 'description' => '扩展程序描述', + 'type' => 'string', + 'example' => 'ODPS SQL compatible Spark engine detection', + ], + 'Owner' => [ + 'description' => '责任人ID。', + 'type' => 'string', + 'example' => '21323672*******55500', + ], + 'ParameterSetting' => [ + 'description' => '参数配置,参考[扩展程序参数配置](~~405354~~)。', + 'type' => 'string', + 'example' => 'extension.fileType.23.deploy-file.enabled=true', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4F2CA7ED-27E5-59EA-A8C4-F1F7A1FF0B22\\",\\n \\"Extensions\\": [\\n {\\n \\"ExtensionCode\\": \\"a94a8e23bc0b4dfab9a5e4d2f374d645\\",\\n \\"ExtensionName\\": \\"max_pt function is not allowed.\\",\\n \\"TenantId\\": 0,\\n \\"CreateUser\\": \\"3444434343555\\",\\n \\"ModifyUser\\": \\"34452335611988\\",\\n \\"ExtensionDesc\\": \\"ODPS SQL compatible Spark engine detection\\",\\n \\"Owner\\": \\"21323672*******55500\\",\\n \\"ParameterSetting\\": \\"extension.fileType.23.deploy-file.enabled=true\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 4F2CA7ED-27E5-59EA-A8C4-F1F7A1FF0B22\\n \\n a94a8e23bc0b4dfab9a5e4d2f374d645\\n 不允许使用max_pt函数\\n 529889518659842\\n 3444434343555\\n 34452335611988\\n ODPS SQL兼容Spark引擎检测\\n 21323672*******55500\\n extension.fileType.23.deploy-file.enabled=true\\n 1660117173\\n 1569308162000\\n \\n","errorExample":""}]', + 'title' => '获取已经开启的扩展程序列表', + 'description' => 'eventCode取值可参考文档:[扩展事件编码](~~463357~~)。', + ], + 'CallbackExtension' => [ + 'summary' => '用于在DataWorks平台使用过程中触发扩展点时,通过调用CallbackExtension接口,将扩展程序对扩展点事件的检查结果返回给DataWorks平台。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '191317', + 'abilityTreeNodes' => [ + 'FEATUREdideRWC5F7', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExtensionCode', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展程序唯一编码。', + 'type' => 'string', + 'required' => true, + 'example' => '8abcb91f-d266-4073-b907-2****', + ], + ], + [ + 'name' => 'MessageId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks开放消息的消息ID。当触发扩展点事件后,您可以从接收到的事件消息中获取消息ID。'."\n" + ."\n" + .'消息格式,可参考[消息格式](~~215367~~)。'."\n" + ."\n", + 'type' => 'string', + 'required' => true, + 'example' => '034********091', + ], + ], + [ + 'name' => 'CheckResult', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展程序对本次扩展点事件的检查状态。取值如下:'."\n" + .'- OK:扩展程序对本次扩展点事件检查通过。'."\n" + .'- FAIL:扩展程序对本次扩展点事件检查不通过。您需要查看并及时处理报错,以免影响后续程序的正常执行。'."\n" + .'- WARN:扩展程序对本次扩展点事件检查通过,但存在警告。', + 'type' => 'string', + 'required' => true, + 'example' => 'FAIL', + 'enum' => [ + 'OK', + 'FAIL', + 'WARN', + ], + ], + ], + [ + 'name' => 'CheckMessage', + 'in' => 'formData', + 'schema' => [ + 'description' => '当CheckResult设置为FAIL,提供FAIL原因', + 'type' => 'string', + 'required' => false, + 'example' => 'The xxx rule is hit. Modify it and try again.', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '唯一的请求ID', + 'type' => 'string', + 'example' => '7C352CB7-CD88-50CF-9D0D-E81BDF020E7F', + ], + 'Success' => [ + 'description' => '调用是否成功。取值如下:'."\n" + ."\n" + .'true:调用成功。'."\n" + ."\n" + .'false:调用失败。', + 'type' => 'string', + 'example' => 'true', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7C352CB7-CD88-50CF-9D0D-E81BDF020E7F\\",\\n \\"Success\\": \\"true\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 7C352CB7-CD88-50CF-9D0D-E81BDF020E7F\\n true\\n","errorExample":""}]', + 'title' => '返回扩展程序对扩展点事件的检查结果', + ], + 'ListCheckProcesses' => [ + 'summary' => '查询扩展事件的检查列表。', + 'methods' => [ + 'get', + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '240968', + 'abilityTreeNodes' => [ + 'FEATUREdide63BO88', + ], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '123465', + ], + ], + [ + 'name' => 'EventCode', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展点事件编码。', + 'type' => 'string', + 'required' => true, + 'example' => 'commit-file', + ], + ], + [ + 'name' => 'Operator', + 'in' => 'formData', + 'schema' => [ + 'description' => '操作者ID。', + 'type' => 'string', + 'required' => false, + 'example' => '123333', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页查询,每页显示的条数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '10', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '分页查询时的页码,默认值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'Status', + 'in' => 'formData', + 'schema' => [ + 'description' => '扩展程序检查状态。'."\n" + .'- CHECKING 检查中'."\n" + .'- PASSED 检查通过'."\n" + .'- BLOCKED 检查不通过', + 'type' => 'string', + 'required' => false, + 'example' => 'True', + 'enum' => [ + 'CHECKING', + 'PASSED', + 'BLOCKED', + ], + ], + ], + [ + 'name' => 'MessageId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks开放消息的消息ID。当触发扩展点事件后,您可以从接收到的事件消息中获取消息ID。'."\n" + ."\n" + .'消息格式,可参考[消息格式](~~215367~~)。', + 'type' => 'string', + 'required' => false, + 'example' => '03400b03-b721-4c34-8727-2****1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0000-ABCD-EF****', + ], + 'PagingInfo' => [ + 'description' => '分页信息。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '12', + ], + 'CheckProcesses' => [ + 'description' => '扩展程序检查详情。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ProjectId' => [ + 'description' => 'DataWorks 工作空间的 ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '32563', + ], + 'Status' => [ + 'description' => '扩展程序检查状态。'."\n" + .'- CHECKING 检查中'."\n" + .'- PASSED 检查通过'."\n" + .'- BLOCKED 检查不通过', + 'type' => 'string', + 'example' => 'CHECKING', + ], + 'EventCode' => [ + 'description' => '扩展点事件编码。', + 'type' => 'string', + 'example' => 'commit-file', + ], + 'EventName' => [ + 'description' => '扩展点事件名称。', + 'type' => 'string', + 'example' => 'DnsEvent', + ], + 'EventNameEn' => [ + 'description' => '事件的英文名称。', + 'type' => 'string', + 'example' => 'Pre-event for Node Commit', + ], + 'ProcessName' => [ + 'description' => '操作对象的名称,比如文件名称,节点名称等。', + 'type' => 'string', + 'example' => 'odps_sql_test', + ], + 'MessageId' => [ + 'description' => 'DataWorks开放消息的消息ID。当触发扩展点事件后,您可以从接收到的事件消息中获取消息ID。', + 'type' => 'string', + 'example' => 'b824a5de-4223-4315-af3e-c4449d236db4', + ], + 'ProcessId' => [ + 'description' => '流程实例ID。', + 'type' => 'string', + 'example' => 'rdk_generate_d395da25-b0d3-4114-b2a5-d0247444a661_none_3496903_365203', + ], + 'Operator' => [ + 'description' => '操作人id。', + 'type' => 'string', + 'example' => '297635', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EF****\\",\\n \\"PagingInfo\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 12,\\n \\"CheckProcesses\\": [\\n {\\n \\"ProjectId\\": 32563,\\n \\"Status\\": \\"CHECKING\\",\\n \\"EventCode\\": \\"commit-file\\",\\n \\"EventName\\": \\"DnsEvent\\",\\n \\"EventNameEn\\": \\"Pre-event for Node Commit\\",\\n \\"ProcessName\\": \\"odps_sql_test\\",\\n \\"MessageId\\": \\"b824a5de-4223-4315-af3e-c4449d236db4\\",\\n \\"ProcessId\\": \\"rdk_generate_d395da25-b0d3-4114-b2a5-d0247444a661_none_3496903_365203\\",\\n \\"Operator\\": \\"297635\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询扩展事件的检查列表', + ], + 'UpdateTableAddColumn' => [ + 'summary' => '更新MaxCompute表的字段信息。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78383', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute表的唯一标识。格式为odps.projectName.tableName。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'Column', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'description' => '字段对象。', + 'type' => 'object', + 'properties' => [ + 'ColumnNameCn' => [ + 'description' => '字段的中文名称。', + 'type' => 'string', + 'required' => false, + 'example' => '中文', + ], + 'ColumnName' => [ + 'description' => '字段的名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'abc', + ], + 'Comment' => [ + 'description' => '字段的备注信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'Remarks', + ], + 'ColumnType' => [ + 'description' => '字段的类型,请参见MaxCompute支持的字段类型。', + 'type' => 'string', + 'required' => true, + 'example' => 'string', + ], + ], + 'required' => false, + ], + 'required' => true, + 'maxItems' => 100, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'TaskInfo' => [ + 'description' => '请求任务的信息。'."\n" + .'请求任务提交成功后,会被分为多个子任务有序执行。当前子任务执行成功后,才会继续执行下一个子任务,所有子任务执行完毕,该请求任务结束。如下情况,请求任务会终止,您需要根据错误码信息解决问题后重新发起请求任务:'."\n" + .'- 请求任务提交失败。'."\n" + .'- 请求任务提交成功后,任意子任务执行失败。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '当前执行的子任务的状态信息。取值如下:'."\n" + .'- operating表示子任务正在执行中。'."\n" + .'- success表示子任务执行成功。'."\n" + .'- failure表示子任务执行失败。详细的报错信息请参见Content参数。', + 'type' => 'string', + 'example' => 'success', + ], + 'NextTaskId' => [ + 'description' => '即将执行的子任务ID。如果该字段为空,则表示所有子任务均已结束。', + 'type' => 'string', + 'example' => 'abc1', + ], + 'TaskId' => [ + 'description' => '当前执行的子任务ID。', + 'type' => 'string', + 'example' => 'abc2', + ], + 'Content' => [ + 'description' => '当前子任务的执行状态详细信息。具体如下:'."\n" + .'- 执行成功,则显示success。'."\n" + .'- 执行失败则显示对应的报错详情。', + 'type' => 'string', + 'example' => 'success', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'staticInfo' => [ + 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"abc\\",\\n \\"TaskInfo\\": {\\n \\"Status\\": \\"success\\",\\n \\"NextTaskId\\": \\"abc1\\",\\n \\"TaskId\\": \\"abc2\\",\\n \\"Content\\": \\"success\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n success\\n abc2\\n success\\n abc1\\n \\n abc\\n","errorExample":""}]', + 'title' => '更新表的字段信息', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetMetaTableFullInfo' => [ + 'summary' => '获取表的完整信息(包括字段信息)。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78264', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => [ + 'description' => '表的唯一标识。您可以通过调用[GetMetaDBTableList](~~173916~~),获取表的唯一标识。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'odps.engine_name.table_name', + ], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => [ + 'description' => '请求获取的页码数,用于分页。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR集群的ID,仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以登录[EMR的控制台](https://emr.console.aliyun.com/?spm=a2c4g.11186623.0.0.965cc5c2GeiHet#/cn-hangzhou),获取集群ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'C-010A704DA760****', + ], + ], + [ + 'name' => 'DatabaseName', + 'in' => 'query', + 'schema' => [ + 'description' => '数据库的名称。仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以调用[ListMetaDB](~~185662~~)接口获取。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => 'EMR的表名称。仅当数据类型为EMR时,需要配置该参数。'."\n" + ."\n" + .'您可以通过调用[GetMetaDBTableList](~~173916~~)接口,获取表名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据类型,当前仅支持取值为EMR。', + 'type' => 'string', + 'required' => false, + 'example' => 'emr', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回的数据结构。', + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937****', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Data' => [ + 'description' => '业务数据。', + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'example' => 'table_name', + ], + 'Comment' => [ + 'description' => '表的备注信息。', + 'type' => 'string', + 'example' => 'comment', + ], + 'LifeCycle' => [ + 'description' => '表的生命周期,单位为天。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + 'CreateTime' => [ + 'description' => '创建表的时间。该结果显示为时间戳,您可以根据使用的时区将时间戳转换为相应日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589870293000', + ], + 'ProjectName' => [ + 'description' => '表所在工作空间的名称。', + 'type' => 'string', + 'example' => 'test', + ], + 'ProjectId' => [ + 'description' => '表所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '22', + ], + 'OwnerId' => [ + 'description' => '表所有者的ID。', + 'type' => 'string', + 'example' => '123', + ], + 'EnvType' => [ + 'description' => '环境类型,取值如下:'."\n" + .'- 0表示开发环境的表。'."\n" + .'- 1表示生产环境的表。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'LastAccessTime' => [ + 'description' => '最后一次访问表的时间。该结果显示为时间戳,您可以根据使用的时区将时间戳转换为相应日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589870294000', + ], + 'DataSize' => [ + 'description' => '表占用的存储空间,单位为字节(B)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'LastModifyTime' => [ + 'description' => '最后更新表的时间。该结果显示为时间戳,您可以根据使用的时区将时间戳转换为相应日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589870294000', + ], + 'DatabaseName' => [ + 'description' => '数据库的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'IsVisible' => [ + 'description' => '表是否可见,取值如下:'."\n" + .'- 0表示该表对工作空间成员可见。'."\n" + .'- 1表示该表对租户内可见。'."\n" + .'- 2表示该表在租户间均可见。'."\n" + .'- 3表示该表仅对责任人可见。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TotalColumnCount' => [ + 'description' => '字段的总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '22', + ], + 'TableGuid' => [ + 'description' => '表的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name', + ], + 'PartitionKeys' => [ + 'description' => '分区键。', + 'type' => 'string', + 'example' => 'abc', + ], + 'LastDdlTime' => [ + 'description' => '最后变更表结构的时间。该结果显示为时间戳,您可以根据使用的时区将时间戳转换为相应日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589870294000', + ], + 'Location' => [ + 'description' => 'Hive表的存储地址。', + 'type' => 'string', + 'example' => 'hdfs://localhost:777/user/hadoop/test.txt', + ], + 'ClusterId' => [ + 'description' => 'EMR集群的ID。', + 'type' => 'string', + 'example' => 'C-010A704DA760****', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12345', + ], + 'Schema' => [ + 'description' => '表Schema信息。', + 'type' => 'string', + 'example' => 'default', + ], + 'ColumnList' => [ + 'description' => '字段列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回的数据结构。', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => [ + 'description' => '字段的名称。', + 'type' => 'string', + 'example' => '1', + ], + 'ColumnGuid' => [ + 'description' => '字段的唯一标识。', + 'type' => 'string', + 'example' => 'odps.engine_name.table_name.1', + ], + 'IsPartitionColumn' => [ + 'description' => '字段是否为分区字段,取值如下:'."\n" + .'- true,是分区字段。'."\n" + .'- false,不是分区字段。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Comment' => [ + 'description' => '字段的备注。', + 'type' => 'string', + 'example' => 'comment', + ], + 'ColumnType' => [ + 'description' => '字段的类型。', + 'type' => 'string', + 'example' => 'string', + ], + 'IsPrimaryKey' => [ + 'description' => '字段是否为主键,取值如下:'."\n" + .'- true,是主键。'."\n" + .'- false,不是主键。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Position' => [ + 'description' => '字段的排序。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Caption' => [ + 'description' => '字段的描述信息。', + 'type' => 'string', + 'example' => 'data comment', + ], + 'IsForeignKey' => [ + 'description' => '字段是否为外键,取值如下:'."\n" + .'- true,是外键。'."\n" + .'- false,不是外键。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'InvalidParameter.Meta.CommonError', + 'errorMessage' => 'The specified parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.Illegal', + 'errorMessage' => 'The app guid parameter is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalDate', + 'errorMessage' => 'The date format is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.IllegalPageError', + 'errorMessage' => 'The parameter for paging is invalid.', + ], + [ + 'errorCode' => 'InvalidParameter.Meta.NotExist', + 'errorMessage' => 'The object does not exist.', + ], + [ + 'errorCode' => 'InternalError.Meta.NoCalcEngine', + 'errorMessage' => 'An error occurred while retrieving the compute engine based on the MaxCompute project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.Meta.NoTenant', + 'errorMessage' => 'The user is not the owner of any tenants.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Meta.TenantTimeOut', + 'errorMessage' => 'Failed to connect to the interface network.', + ], + [ + 'errorCode' => 'InternalError.Meta.Unknown', + 'errorMessage' => 'An unknown error occurred while processing your request.', + ], + ], + ], + 'staticInfo' => [ + 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"RequestId\\": \\"0bc1411515937****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Data\\": {\\n \\"TableName\\": \\"table_name\\",\\n \\"Comment\\": \\"comment\\",\\n \\"LifeCycle\\": 5,\\n \\"CreateTime\\": 1589870293000,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 22,\\n \\"OwnerId\\": \\"123\\",\\n \\"EnvType\\": 1,\\n \\"LastAccessTime\\": 1589870294000,\\n \\"DataSize\\": 10,\\n \\"LastModifyTime\\": 1589870294000,\\n \\"DatabaseName\\": \\"abc\\",\\n \\"IsVisible\\": 1,\\n \\"TotalColumnCount\\": 22,\\n \\"TableGuid\\": \\"odps.engine_name.table_name\\",\\n \\"PartitionKeys\\": \\"abc\\",\\n \\"LastDdlTime\\": 1589870294000,\\n \\"Location\\": \\"hdfs://localhost:777/user/hadoop/test.txt\\",\\n \\"ClusterId\\": \\"C-010A704DA760****\\",\\n \\"TenantId\\": 12345,\\n \\"Schema\\": \\"default\\",\\n \\"ColumnList\\": [\\n {\\n \\"ColumnName\\": \\"1\\",\\n \\"ColumnGuid\\": \\"odps.engine_name.table_name.1\\",\\n \\"IsPartitionColumn\\": true,\\n \\"Comment\\": \\"comment\\",\\n \\"ColumnType\\": \\"string\\",\\n \\"IsPrimaryKey\\": false,\\n \\"Position\\": 1,\\n \\"Caption\\": \\"data comment\\",\\n \\"IsForeignKey\\": true\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n The specified parameters are invalid.\\n 0bc1411515937****\\n true\\n 1031203110005\\n \\n table_name\\n comment\\n 5\\n 1589870293000\\n test\\n 22\\n 123\\n 1\\n 1589870294000\\n 10\\n 1589870294000\\n abc\\n 1\\n 22\\n odps.engine_name.table_name\\n abc\\n 1589870294000\\n hdfs://localhost:777/user/hadoop/test.txt\\n C-010A704DA760****\\n 12345\\n default\\n \\n 1\\n odps.engine_name.table_name.1\\n true\\n comment\\n string\\n false\\n 1\\n data comment\\n true\\n \\n \\n","errorExample":""}]', + 'title' => '获取表的完整信息(包括字段信息)', + 'description' => '仅支持获取EMR引擎表的信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' GetMetaTableFullInfo接口的使用示例Demo请参见[DataWorks OpenAPI示例](https://developer.aliyun.com/article/780879?groupCode=dataworks)。', + ], + 'GetDDLJobStatus' => [ + 'summary' => '调用GetDDLJobStatus获取创建表、更新表和删除表的任务状态。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATUREdideX3KVYR', + ], + ], + 'parameters' => [ + [ + 'name' => 'TaskId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DDL任务的ID。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'abc', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Data' => [ + 'description' => '任务的详情。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '任务的状态。', + 'type' => 'string', + 'example' => 'success', + ], + 'NextTaskId' => [ + 'description' => '正在进行的TaskID。如果为空,说明全部任务已经结束。', + 'type' => 'string', + 'example' => 'abc1', + ], + 'TaskId' => [ + 'description' => '任务的ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Content' => [ + 'description' => '任务的内容。', + 'type' => 'string', + 'example' => 'success', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'staticInfo' => [ + 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"abc\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"NextTaskId\\": \\"abc1\\",\\n \\"TaskId\\": \\"abc\\",\\n \\"Content\\": \\"success\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"abc\\n\\n success\\n abc\\n success\\n abc1\\n","errorExample":""}]', + 'title' => '获取创建表、更新表和删除表的任务状态', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteTable' => [ + 'summary' => '删除MaxCompute表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78218', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute表的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'table1', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '引擎或数据源的类型。'."\n" + .'取值范围:'."\n" + .'- cdh'."\n" + .'- analyticdb_for_mysql'."\n" + .'- odps'."\n" + .'- emr'."\n" + .'- hadoop'."\n" + .'- holodb'."\n" + .'- hybriddb_for_postgresql', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'maximum' => '1', + 'minimum' => '0', + 'example' => '1', + ], + ], + [ + 'name' => 'AppGuid', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute项目的唯一标识,格式为odps.{projectName}。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps.test', + ], + ], + [ + 'name' => 'Schema', + 'in' => 'query', + 'schema' => [ + 'description' => '表Schema信息。在ODPS,当您启动了三层模型时需要填写Schema信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'default', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcde', + ], + 'TaskInfo' => [ + 'description' => '删除表的任务信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '已经结束的任务状态。', + 'type' => 'string', + 'example' => 'success', + ], + 'NextTaskId' => [ + 'description' => '正在运行的任务ID。', + 'type' => 'string', + 'example' => 'abc1', + ], + 'TaskId' => [ + 'description' => '已经结束的任务ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Content' => [ + 'description' => '任务的内容。', + 'type' => 'string', + 'example' => 'success', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'staticInfo' => [ + 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"abcde\\",\\n \\"TaskInfo\\": {\\n \\"Status\\": \\"success\\",\\n \\"NextTaskId\\": \\"abc1\\",\\n \\"TaskId\\": \\"abc\\",\\n \\"Content\\": \\"success\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n success\\n abc\\n success\\n abc1\\n\\nabcde","errorExample":""}]', + 'title' => '删除 MaxCompute 表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateTable' => [ + 'summary' => '调用UpdateTable更新MaxCompute表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78382', + 'abilityTreeNodes' => [ + 'FEATUREdideX3KVYR', + ], + ], + 'parameters' => [ + [ + 'name' => 'IsView', + 'in' => 'query', + 'schema' => [ + 'description' => '是否为视图,包括0(否)和1(是)。该字段已废弃,请勿使用。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'Visibility', + 'in' => 'query', + 'schema' => [ + 'description' => '表的可见性,包括0(对所有成员不可见)、1(对所有成员可见)和2(对工作空间成员可见)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'LifeCycle', + 'in' => 'query', + 'schema' => [ + 'description' => '表的生命周期,单位为天。生命周期为空时,表示永久存储。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'CategoryId', + 'in' => 'query', + 'schema' => [ + 'description' => '关联的类目ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + ], + [ + 'name' => 'LogicalLevelId', + 'in' => 'query', + 'schema' => [ + 'description' => '逻辑层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + ], + [ + 'name' => 'PhysicsLevelId', + 'in' => 'query', + 'schema' => [ + 'description' => '物理层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + ], + [ + 'name' => 'ExternalTableType', + 'in' => 'query', + 'schema' => [ + 'description' => '外表的类型,包括0(OSS)、1(TableStore)、2(Volume)和3(MySQL)。该字段已废弃,请勿使用。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'Location', + 'in' => 'query', + 'schema' => [ + 'description' => '外表的存储地址。该字段已废弃,请勿使用。', + 'type' => 'string', + 'required' => false, + 'example' => 'location', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录DataWorks控制台获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute表名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'abc', + ], + ], + [ + 'name' => 'Endpoint', + 'in' => 'formData', + 'schema' => [ + 'description' => 'MaxCompute Endpoint。不填时,默认取项目对应的Endpoint。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps://', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的环境,包括0(开发环境)和1(生产环境)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'AppGuid', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute项目的唯一标识,格式为odps.{projectName}。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps.test', + ], + ], + [ + 'name' => 'CreateIfNotExists', + 'in' => 'query', + 'schema' => [ + 'description' => '表是否存在:'."\n" + .'- true:是,表存在。'."\n" + .'- false:否,表不存在。'."\n" + ."\n" + .'该字段已废弃,请勿使用。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'HasPart', + 'in' => 'query', + 'schema' => [ + 'description' => '需要更新的MaxCompute表是否为分区表,包括0(否)和1(是)。该字段已废弃,请勿使用。'."\n" + .'目前代码会根据Column.N.isPartitionCol参数判断MaxCompute表是否为分区表,当Column.N.isPartition参数取值为1时,则认为MaxCompute表为分区表。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'query', + 'schema' => [ + 'description' => '备注信息。', + 'type' => 'string', + 'required' => false, + 'example' => '备注', + ], + ], + [ + 'name' => 'Schema', + 'in' => 'query', + 'schema' => [ + 'description' => '表Schema信息。在ODPS,当您启动了三层模型时需要填写Schema信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'default', + ], + ], + [ + 'name' => 'Columns', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ColumnNameCn' => [ + 'description' => '字段的中文名称。', + 'type' => 'string', + 'required' => false, + 'example' => '中文', + ], + 'ColumnName' => [ + 'description' => '字段的名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'abc', + ], + 'Comment' => [ + 'description' => '字段的备注。', + 'type' => 'string', + 'required' => false, + 'example' => '备注', + ], + 'ColumnType' => [ + 'description' => '字段的类型,请参见MaxCompute支持的字段类型。', + 'type' => 'string', + 'required' => true, + 'example' => 'string', + ], + 'SeqNumber' => [ + 'description' => '字段的序号。如果字段为分区字段,则不支持配置Columns.N.SeqNumber。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + 'Length' => [ + 'description' => '字段的长度。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + 'IsPartitionCol' => [ + 'description' => '是否为分区字段,包括0(否)和1(是)。', + 'type' => 'boolean', + 'required' => false, + 'example' => '0', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 100, + ], + ], + [ + 'name' => 'Themes', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ThemeId' => [ + 'description' => '关联的主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + 'ThemeLevel' => [ + 'description' => '主题ID对应的层级。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '101', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 100, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcde', + ], + 'TaskInfo' => [ + 'description' => '请求任务的信息。'."\n" + .'请求任务提交成功后,会被分为多个子任务有序执行。当前子任务执行成功后,才会继续执行下一个子任务,所有子任务执行完毕,该请求任务结束。如下情况,请求任务会终止,您需要根据错误码信息解决问题后重新发起请求任务:'."\n" + .'- 请求任务提交失败。'."\n" + .'- 请求任务提交成功后,任意子任务执行失败。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '当前执行的子任务的状态信息。取值如下:'."\n" + .'- operating表示子任务正在执行中。'."\n" + .'- success表示子任务执行成功。'."\n" + .'- failure表示子任务执行失败。详细的报错信息请参见Content参数。', + 'type' => 'string', + 'example' => 'success', + ], + 'NextTaskId' => [ + 'description' => '即将执行的子任务ID。如果该字段为空,则表示所有子任务均已结束。您可以使用获取到的ID,从[GetDDLJobStatus](~~185659~~)接口查询对应子任务的状态。', + 'type' => 'string', + 'example' => 'abc1', + ], + 'TaskId' => [ + 'description' => '当前执行的子任务ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Content' => [ + 'description' => '当前子任务的执行状态详细信息。具体如下:'."\n" + .'- 执行成功,则显示success。'."\n" + .'- 执行失败则显示对应的报错详情。', + 'type' => 'string', + 'example' => 'success', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'staticInfo' => [ + 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"abcde\\",\\n \\"TaskInfo\\": {\\n \\"Status\\": \\"success\\",\\n \\"NextTaskId\\": \\"abc1\\",\\n \\"TaskId\\": \\"abc\\",\\n \\"Content\\": \\"success\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n success\\n abc\\n success\\n abc1\\n \\n abcde\\n","errorExample":""}]', + 'title' => '更新MaxCompute表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateTable' => [ + 'summary' => '创建一个MaxCompute的表。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '78197', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'IsView', + 'in' => 'query', + 'schema' => [ + 'description' => '指定创建视图或创建表:'."\n" + .'- 0为创建表。'."\n" + .'- 1为创建视图。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'Visibility', + 'in' => 'query', + 'schema' => [ + 'description' => '表或工作空间是否可见:'."\n" + .'- 0为表和工作空间均不可见。'."\n" + .'- 1为表和工作空间均可见。'."\n" + .'- 2为仅工作空间可见。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'LifeCycle', + 'in' => 'query', + 'schema' => [ + 'description' => '表的生命周期,单位为天。默认取值为空,表示永久存储。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'CategoryId', + 'in' => 'query', + 'schema' => [ + 'description' => '关联类目的ID。您可以通过[GetMetaCategory](~~173932~~)接口查询可以关联的类目ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + ], + [ + 'name' => 'LogicalLevelId', + 'in' => 'query', + 'schema' => [ + 'description' => '逻辑层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + ], + [ + 'name' => 'PhysicsLevelId', + 'in' => 'query', + 'schema' => [ + 'description' => '物理层级ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + ], + [ + 'name' => 'ExternalTableType', + 'in' => 'query', + 'schema' => [ + 'description' => '外部表的存储类型。取值如下:'."\n" + .'- 0表示OSS。'."\n" + .'- 1表示TableStore。'."\n" + .'- 2表示Volume。'."\n" + .'- 3表示MySQL。', + 'type' => 'string', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'Location', + 'in' => 'query', + 'schema' => [ + 'description' => '外部表的存储地址。', + 'type' => 'string', + 'required' => false, + 'example' => 'location', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '23', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'description' => '表的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'tableName1', + ], + ], + [ + 'name' => 'Endpoint', + 'in' => 'formData', + 'schema' => [ + 'description' => 'MaxCompute的Endpoint。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps://abc', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的环境。取值如下:'."\n" + .'- 0表示开发环境。'."\n" + .'- 1表示生产环境。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'AppGuid', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute项目的ID,格式为odps.{projectName}。', + 'type' => 'string', + 'required' => false, + 'example' => 'odps.test', + ], + ], + [ + 'name' => 'Comment', + 'in' => 'query', + 'schema' => [ + 'description' => '备注信息。', + 'type' => 'string', + 'required' => false, + 'example' => '备注', + ], + ], + [ + 'name' => 'HasPart', + 'in' => 'query', + 'schema' => [ + 'description' => '创建的MaxCompute表是否为分区表,包括1(是)和0(否)。该字段已废弃,请勿使用。'."\n" + .'目前代码会根据Column.N.isPartitionCol参数判断MaxCompute表是否为分区表,当Column.N.isPartitionCol参数取值为true时,则认为MaxCompute表为分区表。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => [ + 'description' => '保留字段。', + 'type' => 'string', + 'required' => false, + 'example' => '保留字段', + ], + ], + [ + 'name' => 'Schema', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '表Schema信息。在ODPS,当您启动了三层模型时需要填写Schema信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'default', + ], + ], + [ + 'name' => 'Columns', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '字段列表,最大支持1000个字段。', + 'type' => 'array', + 'items' => [ + 'description' => '字段对象', + 'type' => 'object', + 'properties' => [ + 'ColumnNameCn' => [ + 'description' => '字段的中文名称。', + 'type' => 'string', + 'required' => false, + 'example' => '中文名', + ], + 'ColumnName' => [ + 'description' => '字段的名称。'."\n" + .'CreateTable API当前最多支持配置1000个字段。', + 'type' => 'string', + 'required' => true, + 'example' => 'columnName1', + ], + 'Comment' => [ + 'description' => '字段的备注信息。', + 'type' => 'string', + 'required' => false, + 'example' => '备注', + ], + 'ColumnType' => [ + 'description' => '字段的类型。此处支持的字段类型,取决于您MaxCompute项目使用的数据类型版本,各版本支持的数据类型请参见[数据类型版本说明](~~27821~~)。', + 'type' => 'string', + 'required' => true, + 'example' => 'string', + ], + 'SeqNumber' => [ + 'description' => '字段的序列号。您可以指定字段在表中的排序,默认按照创建请求的顺序排序。'."\n" + .'如果字段为分区字段,则不支持配置Columns.N.SeqNumber。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + 'Length' => [ + 'description' => '字段的长度,详情请参见:[数据类型版本](~~159541~~)[数据类型版本](~~159541~~)。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + 'IsPartitionCol' => [ + 'description' => '当前字段是否为分区字段。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + 'required' => false, + ], + 'required' => true, + 'maxItems' => 1000, + ], + ], + [ + 'name' => 'Themes', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'ThemeId' => [ + 'description' => '主题ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '101', + ], + 'ThemeLevel' => [ + 'description' => '主题ID对应的主题层级。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '101', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 100, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回对象', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'abcdef', + ], + 'TaskInfo' => [ + 'description' => '请求任务的信息。'."\n" + .'请求任务提交成功后,会被分为多个子任务有序执行。当前子任务执行成功后,才会继续执行下一个子任务,所有子任务执行完毕,该请求任务结束。'."\n" + ."\n" + .'如下情况,请求任务会终止,您需要根据错误码信息解决问题后重新发起请求任务:'."\n" + .'- 请求任务提交失败。'."\n" + .'- 请求任务提交成功后,任意子任务执行失败。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '当前执行的子任务的状态信息。取值如下:'."\n" + .'- operating表示子任务正在执行中。'."\n" + .'- success表示子任务执行成功。'."\n" + .'- failure表示子任务执行失败。详细的报错信息请参见Content参数。'."\n", + 'type' => 'string', + 'example' => 'success', + ], + 'NextTaskId' => [ + 'description' => '即将执行的子任务ID。如果该字段为空,则表示所有子任务均已结束。', + 'type' => 'string', + 'example' => 'abc1', + ], + 'TaskId' => [ + 'description' => '当前执行的子任务ID。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Content' => [ + 'description' => '当前子任务的执行状态详细信息。具体如下:'."\n" + .'- 执行成功,则显示success。'."\n" + .'- 执行失败则显示对应的报错详情。', + 'type' => 'string', + 'example' => 'success', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'staticInfo' => [ + 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"abcdef\\",\\n \\"TaskInfo\\": {\\n \\"Status\\": \\"success\\",\\n \\"NextTaskId\\": \\"abc1\\",\\n \\"TaskId\\": \\"abc\\",\\n \\"Content\\": \\"success\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n success\\n abc\\n success\\n abc1\\n \\n abcdef\\n","errorExample":""}]', + 'title' => '创建一个MaxCompute表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CheckFileDeployment' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '78171', + 'abilityTreeNodes' => [ + 'FEATUREdide4AR6E0', + 'FEATUREdide8FM783', + ], + ], + 'parameters' => [ + [ + 'name' => 'CheckerInstanceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件检查器所属的实例ID。您可以从文件发布检查事件中的CheckerInstanceId获取。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '66_123455623_2', + ], + ], + [ + 'name' => 'Status', + 'in' => 'formData', + 'schema' => [ + 'description' => '待发布文件的检查状态,取值如下:'."\n" + .'- OK,表示文件检查通过。'."\n" + .'- WARN,表示文件检查通过,但是存在警告。'."\n" + .'- FAIL,表示文件检查未通过。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'OK', + 'enum' => [ + 'OK', + 'FAIL', + 'WARN', + ], + ], + ], + [ + 'name' => 'CheckDetailUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '已废弃。', + 'type' => 'string', + 'required' => false, + 'example' => 'https://result.aliyun.com/?checkerInstanceId=', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,用于后续问题排查。', + 'type' => 'string', + 'example' => '86d5a5ac-0cc0-4c5f-a374-a15713b252ab', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"86d5a5ac-0cc0-4c5f-a374-a15713b252ab\\"\\n}","errorExample":""},{"type":"xml","example":"86d5a5ac-0cc0-4c5f-a374-a15713b252ab","errorExample":""}]', + 'title' => '检查文件部署', + 'summary' => '当您在DataWorks数据开发页面创建的文件提交成功后,文件将进入发布检查状态,DataWorks会将文件发布检查事件返回给您,您需要根据事件内容判断该文件是否可以继续进行发布校验。此时,可以通过将待发布文件的检查结果返回至DataWorks。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListRefDISyncTasks' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'DatasourceName', + 'in' => 'query', + 'schema' => [ + 'description' => '需要查看的目标数据源名称。您可以调用[ListDataSources](~~211431~~)接口获取数据源名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'mysql_datasource', + ], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所关联的数据集成同步任务的任务类型。取值如下:'."\n" + .'- DI_OFFLINE:表示数据集成离线同步任务。'."\n" + .'- DI_REALTIME:表示数据集成实时同步任务。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'DI_OFFLINE', + ], + ], + [ + 'name' => 'RefType', + 'in' => 'query', + 'schema' => [ + 'description' => '选择目标数据源作为数据集成同步任务的源端或目的端。取值如下:'."\n" + .'- from:目标数据源作为数据集成同步任务的源端。'."\n" + .'- to:目标数据源作为数据集成同步任务的目的端。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'from', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '页码数。最小值1,最大值100', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'minimum' => '1', + 'example' => '11', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的数据条数。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '100000', + 'minimum' => '1', + 'example' => '50', + 'default' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '返回的数据结果。', + 'type' => 'object', + 'properties' => [ + 'DISyncTasks' => [ + 'description' => '返回数据结果的数组信息。'."\n" + .'通常,目标数据源会关联多个数据集成同步任务,调用ListRefDISyncTasks接口查询目标数据源关联的同步任务时,返回的结果为目标数据源所关联的同步任务的数组。如下信息为数组中一个同步任务的信息示例。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据结果的数组信息。'."\n" + .'通常,目标数据源会关联多个数据集成同步任务,调用ListRefDISyncTasks接口查询目标数据源关联的同步任务时,返回的结果为目标数据源所关联的同步任务的数组。如下信息为数组中一个同步任务的信息示例。', + 'type' => 'object', + 'properties' => [ + 'DiSourceDatasource' => [ + 'description' => '目标数据源所关联的当前同步任务的源端数据源。'."\n" + .'如果当前同步任务存在多个源端数据源,则会以JSON数组的形式返回多个源端数据源。例如,[\\"odps_writer\\", \\"mysql\\"]。'."\n" + .'当RefType参数取值为from时,即目标数据源作为数据集成同步任务的源端,则当前参数的返回结果为目标数据源本身。', + 'type' => 'string', + 'example' => '[\\"odps_writer\\"]', + ], + 'TaskType' => [ + 'description' => '目标数据源所关联的当前数据集成同步任务的任务类型。取值如下:'."\n" + .'- DI_OFFLINE:数据集成离线同步任务。'."\n" + .'- DI_REALTIME:数据集成实时同步任务。', + 'type' => 'string', + 'example' => 'DI_OFFLINE', + ], + 'DiDestinationDatasource' => [ + 'description' => '目标数据源所关联的当前同步任务的目的端数据源。'."\n" + .'如果当前同步任务存在多个目的端数据源,则会以JSON数组的形式返回多个目的端数据源。例如,[\\"odps_writer\\", \\"mysql\\"]。'."\n" + .'当RefType参数取值为to时,即目标数据源作为数据集成同步任务的目的端,则当前参数的返回结果为目标数据源本身。'."\n", + 'type' => 'string', + 'example' => '[\\"qcc_polardb2\\"]', + ], + 'NodeName' => [ + 'description' => '目标数据源所关联的当前数据集成同步任务的任务名称。', + 'type' => 'string', + 'example' => 'abcd1234', + ], + 'NodeId' => [ + 'description' => '目标数据源所关联的当前数据集成同步任务的任务ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100000', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + [ + 'errorCode' => 'Invalid.DI.Parameter.File.Existed', + 'errorMessage' => 'The file name already exists.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"DISyncTasks\\": [\\n {\\n \\"DiSourceDatasource\\": \\"[\\\\\\\\\\\\\\"odps_writer\\\\\\\\\\\\\\"]\\",\\n \\"TaskType\\": \\"DI_OFFLINE\\",\\n \\"DiDestinationDatasource\\": \\"[\\\\\\\\\\\\\\"qcc_polardb2\\\\\\\\\\\\\\"]\\",\\n \\"NodeName\\": \\"abcd1234\\",\\n \\"NodeId\\": 100000\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查看目标数据源所关联的数据集成同步任务', + 'summary' => '查看目标数据源所关联的数据集成同步任务。', + ], + 'ExportDataSources' => [ + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所在的DataWorks工作空间ID。您可以调用[ListProjects](~~178393~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '待导出的目标数据源名称所包含的关键字。'."\n" + .'当前仅支持配置一个关键字。例如,该参数配置为test(即待导出的目标数据源名称所包含的关键字为test),则调用ExportDataSources接口会导出目标工作空间中所有名称包含test的数据源。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'test', + ], + ], + [ + 'name' => 'DataSourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源的类型。常用的类型如下:'."\n" + .'- odps'."\n" + .'- mysql'."\n" + .'- rds'."\n" + .'- oss'."\n" + .'- sqlserver'."\n" + .'- polardb'."\n" + .'- oracle'."\n" + .'- mongodb'."\n" + .'- emr'."\n" + .'- postgresql'."\n" + .'- analyticdb_for_mysql'."\n" + .'- hybriddb_for_postgresql'."\n" + .'- holo', + 'type' => 'string', + 'required' => false, + 'example' => 'rds', + ], + ], + [ + 'name' => 'SubType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源的子类型。仅当DataSourceType参数配置为RDS时,该参数生效。'."\n" + ."\n" + .'当DataSourceType参数配置为RDS时,该参数可以配置为mysql、sqlserver或postgresql。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所属的环境。取值如下:'."\n" + .'- 0:开发环境。'."\n" + .'- 1:生产环境。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大为100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询的页码。取值为大于等于1的正整数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => '此次调用的返回结果状态。取值如下:'."\n" + .'- 200:表示此次调用的返回结果成功。'."\n" + .'- 其他值:表示此次调用的返回结果异常。您可以根据对应错误码处理相关异常。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc14115159376359****', + ], + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '批量导出数据源的返回结果。'."\n", + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '分页查询的页码。取值为大于等于1的正整数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'PageSize' => [ + 'description' => '每页显示的数据条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TotalCount' => [ + 'description' => '返回满足条件的数据源总条数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'DataSources' => [ + 'description' => '批量导出的数据源的详细信息。'."\n" + .'此次调用的返回结果为导出数据源的详细信息数组,如下信息为数组中的一个数据源的详细信息示例。'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '数据源是否可用。取值如下:'."\n" + .'- 1:表示数据源可用。'."\n" + .'- 0:表示数据源不可用。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectId' => [ + 'description' => '数据源所属的DataWorks工作空间ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '123', + ], + 'SubType' => [ + 'description' => '数据源的子类型。仅当DataSourceType参数配置为RDS时,该参数生效。'."\n" + ."\n" + .'当DataSourceType参数配置为RDS时,该参数可以取值为mysql、sqlserver或postgresql。', + 'type' => 'string', + 'example' => 'mysql', + ], + 'GmtModified' => [ + 'description' => '最近一次修改数据源的时间。格式示例为:Mar 17, 2021 4:09:32 PM。', + 'type' => 'string', + 'example' => 'Mar 17, 2021 4:09:32 PM', + ], + 'EnvType' => [ + 'description' => '数据源所属的环境。取值如下:'."\n" + .'- 0:开发环境。'."\n" + .'- 1:生产环境。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ConnectStatus' => [ + 'description' => '数据源与任意独享资源组的连通性状态。取值如下:'."\n" + .'- 1:表示数据源至少与一个独享资源组连通。'."\n" + .'- 0:表示数据源与所有独享资源组均未连通。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Sequence' => [ + 'description' => '数据源的序列。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '300', + ], + 'Description' => [ + 'description' => '数据源的描述信息。', + 'type' => 'string', + 'example' => 'a connection', + ], + 'DataSourceType' => [ + 'description' => '数据源的类型。常用的类型如下:'."\n" + .'- odps'."\n" + .'- mysql'."\n" + .'- rds'."\n" + .'- oss'."\n" + .'- sqlserver'."\n" + .'- polardb'."\n" + .'- oracle'."\n" + .'- mongodb'."\n" + .'- emr'."\n" + .'- postgresql'."\n" + .'- analyticdb_for_mysql'."\n" + .'- hybriddb_for_postgresql'."\n" + .'- holo', + 'type' => 'string', + 'example' => 'rds', + ], + 'GmtCreate' => [ + 'description' => '数据源的创建时间。格式示例为:Mar 17, 2021 4:09:32 PM。', + 'type' => 'string', + 'example' => 'Mar 17, 2021 4:09:32 PM', + ], + 'DefaultEngine' => [ + 'description' => '数据源所在的引擎是否为默认引擎。取值如下:'."\n" + .'- true:是默认引擎。'."\n" + .'- false:不是默认引擎。'."\n", + 'type' => 'boolean', + 'example' => 'false', + ], + 'Shared' => [ + 'description' => '数据源是否可以分享。取值如下:'."\n" + .'- true:数据源可以分享。'."\n" + .'- false:数据源不可以分享。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Operator' => [ + 'description' => '操作数据源的用户ID。', + 'type' => 'string', + 'example' => '193543050****', + ], + 'Name' => [ + 'description' => '数据源的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Content' => [ + 'description' => '数据源的详细配置。', + 'type' => 'string', + 'example' => '{"pubEndpoint":"http://service.cn.maxcompute.aliyun.com/api","accessId":"TMP.3KecGjvzy3i8MYfn2BGHgF7EHGyBFZcHm7GgngrABVRyvvKQrfF5kskR36xP361C3dqwbGo7SGYptAeGyiTwHXqLaBUvYC","securityToken":null,"endpoint":"http://service.cn.maxcompute.aliyun-inc.com/api","accessKey":"***","name":"PRE_PROJECT_A_engine","project":"PRE_PROJECT_A","vpcEndpoint":"http://service.cn.maxcompute.aliyun-inc.com/api","region":"cn-shanghai","authType":"2"}', + ], + 'Id' => [ + 'description' => '数据源的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BindingCalcEngineId' => [ + 'description' => '数据源所绑定的引擎ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '123', + ], + 'TenantId' => [ + 'description' => '数据源所属租户的租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234567', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0bc14115159376359****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 10,\\n \\"PageSize\\": 1,\\n \\"TotalCount\\": 100,\\n \\"DataSources\\": [\\n {\\n \\"Status\\": 1,\\n \\"ProjectId\\": 123,\\n \\"SubType\\": \\"mysql\\",\\n \\"GmtModified\\": \\"Mar 17, 2021 4:09:32 PM\\",\\n \\"EnvType\\": 1,\\n \\"ConnectStatus\\": 1,\\n \\"Sequence\\": 300,\\n \\"Description\\": \\"a connection\\",\\n \\"DataSourceType\\": \\"rds\\",\\n \\"GmtCreate\\": \\"Mar 17, 2021 4:09:32 PM\\",\\n \\"DefaultEngine\\": false,\\n \\"Shared\\": false,\\n \\"Operator\\": \\"193543050****\\",\\n \\"Name\\": \\"abc\\",\\n \\"Content\\": \\"{\\\\\\"pubEndpoint\\\\\\":\\\\\\"http://service.cn.maxcompute.aliyun.com/api\\\\\\",\\\\\\"accessId\\\\\\":\\\\\\"TMP.3KecGjvzy3i8MYfn2BGHgF7EHGyBFZcHm7GgngrABVRyvvKQrfF5kskR36xP361C3dqwbGo7SGYptAeGyiTwHXqLaBUvYC\\\\\\",\\\\\\"securityToken\\\\\\":null,\\\\\\"endpoint\\\\\\":\\\\\\"http://service.cn.maxcompute.aliyun-inc.com/api\\\\\\",\\\\\\"accessKey\\\\\\":\\\\\\"***\\\\\\",\\\\\\"name\\\\\\":\\\\\\"PRE_PROJECT_A_engine\\\\\\",\\\\\\"project\\\\\\":\\\\\\"PRE_PROJECT_A\\\\\\",\\\\\\"vpcEndpoint\\\\\\":\\\\\\"http://service.cn.maxcompute.aliyun-inc.com/api\\\\\\",\\\\\\"region\\\\\\":\\\\\\"cn-shanghai\\\\\\",\\\\\\"authType\\\\\\":\\\\\\"2\\\\\\"}\\",\\n \\"Id\\": 1,\\n \\"BindingCalcEngineId\\": 123,\\n \\"TenantId\\": 1234567\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"0bc14115159376359****\\n200\\n\\n 100\\n 1\\n 10\\n \\n 1\\n 193543050****\\n 1\\n mysql\\n a connection\\n 123\\n 123\\n Mar 17, 2021 4:09:32 PM\\n 300\\n false\\n 1\\n abc\\n false\\n 1234567\\n Mar 17, 2021 4:09:32 PM\\n {\\"pubEndpoint\\":\\"http://service.cn.maxcompute.aliyun.com/api\\",\\"accessId\\":\\"TMP.3KecGjvzy3i8MYfn2BGHgF7EHGyBFZcHm7GgngrABVRyvvKQrfF5kskR36xP361C3dqwbGo7SGYptAeGyiTwHXqLaBUvYC\\",\\"securityToken\\":null,\\"endpoint\\":\\"http://service.cn.maxcompute.aliyun-inc.com/api\\",\\"accessKey\\":\\"***\\",\\"name\\":\\"PRE_PROJECT_A_engine\\",\\"project\\":\\"PRE_PROJECT_A\\",\\"vpcEndpoint\\":\\"http://service.cn.maxcompute.aliyun-inc.com/api\\",\\"region\\":\\"cn-shanghai\\",\\"authType\\":\\"2\\"}\\n rds\\n 1\\n \\n\\ntrue","errorExample":""}]', + 'title' => '导出数据源列表', + 'summary' => '导出数据源列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ImportDataSources' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。您可以登录[DataWorks控制台](https://workbench.data.aliyun.com/console),进入工作空间配置页面获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'DataSources', + 'in' => 'query', + 'schema' => [ + 'description' => '待导入数据源的数据源内容数组。其中Name,DataSourceType,SubType,Description,Content,EnvType参数为必填参数。参数的详情请参见[CreateDataSource](~~211429~~)接口。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '[{"SubType":"","DataSourceType":"mysql","EnvType":1,"Name":"mysql_dms2","Description":"aaa","Content":"{\\"database\\":\\"mysql_chengdu_old\\",\\"password\\":\\"***\\",\\"instanceName\\":\\"rm-2vcrckb37163g7l3w\\",\\"regionId\\":\\"cn-chengdu\\",\\"tag\\":\\"rds\\",\\"rdsOwnerId\\":\\"333\\",\\"username\\":\\"mysql_chengdu2\\"}"},{"SubType":"","DataSourceType":"mysql","EnvType":1,"Name":"mysql_dms2","Description":"aaa","Content":"{\\"database\\":\\"mysql_chengdu_old\\",\\"password\\":\\"***\\",\\"instanceName\\":\\"rm-2vcrckb37163g7l3w\\",\\"regionId\\":\\"cn-chengdu\\",\\"tag\\":\\"rds\\",\\"rdsOwnerId\\":\\"143\\",\\"username\\":\\"mysql_chengdu2\\"}"}]', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Data' => [ + 'description' => '批量导入数据源的返回结果。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '批量导入数据源的结果状态。取值如下:'."\n" + .'- true:表示全部数据源导入成功。'."\n" + .'- false:表示部分数据源导入失败,您可以查看Message参数定位失败原因。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Message' => [ + 'description' => '批量导入数据源失败后的原因描述。如果批量导入数据源成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => ' Data source DEV XXX already exists', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Data\\": {\\n \\"Status\\": true,\\n \\"Message\\": \\" Data source DEV XXX already exists\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"0bc1411515937635973****\\n\\n true\\n Data source DEV XXX already exists\\n\\ntrue","errorExample":""}]', + 'title' => '批量导入本地数据源', + 'summary' => '批量导入本地数据源至目标DataWorks工作空间。', + 'description' => '您可以选择将本地自建的数据源或从其他工作空间导出至本地的数据源,导入至目标DataWorks工作空间。'."\n" + .'- 您本地自建的数据源类型必须是DataWorks所支持的数据源类型。DataWorks所支持的数据源类型,详情请参见[DataWorks支持的数据源](~~181656~~)。'."\n" + .'- 从其他工作空间导出数据源至本地,详情请参见[ExportDataSources](~~279570~~)接口。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateClusterConfigs' => [ + 'summary' => '更新集群在某个工作空间下分模块的配置信息,目前支持更新 SPARK 参数。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '231401', + 'abilityTreeNodes' => [ + 'FEATUREdideDGBIGO', + ], + ], + 'parameters' => [ + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks 生成的集群 ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '5678', + ], + ], + [ + 'name' => 'ConfigType', + 'in' => 'query', + 'schema' => [ + 'description' => '集群配置的类型,支持的类型如下:'."\n" + .'- SPARK_CONF(SPARK 参数)', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'SPARK_CONF', + ], + ], + [ + 'name' => 'ConfigValues', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '集群分模块的配置信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '集群在某个模块的配置信息。', + 'required' => false, + '$ref' => '#/components/schemas/ClusterConfig', + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiMetaResultModel', + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '是否修改成功:'."\n" + .'- true(成功)'."\n" + .'- false(失败)', + 'type' => 'boolean', + 'enumValueTitles' => [], + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。'."\n" + ."\n", + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Success' => [ + 'description' => '请求是否成功:'."\n" + .'- true(成功)'."\n" + .'- false(失败)', + 'type' => 'boolean', + 'enumValueTitles' => [], + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '101011005', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Invalid.Cluster.ClusterNotFound', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP 状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"101011005\\",\\n \\"ErrorMessage\\": \\"Invalid.Cluster.ClusterNotFound\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]', + 'title' => '更新集群的配置信息', + 'description' => '本接口当前处于试用阶段。需要体验的用户可以提出申请,管理员加入试用名单后即可调用。', + ], + 'ListClusterConfigs' => [ + 'summary' => '列出集群在某个工作空间下分模块的配置信息,目前支持列出 SPARK 参数。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '231400', + 'abilityTreeNodes' => [ + 'FEATUREdideDGBIGO', + ], + ], + 'parameters' => [ + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks 生成的集群 ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks 工作空间的 ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '5678', + ], + ], + [ + 'name' => 'ConfigType', + 'in' => 'query', + 'schema' => [ + 'description' => '集群配置的类型,支持的类型如下:'."\n" + .'- SPARK_CONF(SPARK 参数)', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'SPARK_CONF', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'ClusterConfigs' => [ + 'description' => '集群分模块的配置信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '集群在某个模块的配置信息。', + '$ref' => '#/components/schemas/ClusterConfig', + ], + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-*****', + ], + 'Success' => [ + 'description' => '请求是否成功:'."\n" + .'- true(成功)'."\n" + .'- false(失败)', + 'type' => 'boolean', + 'enumValueTitles' => [], + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '101011005', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Invalid.Cluster.ClusterNotFound', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP 状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ClusterConfigs\\": [\\n {\\n \\"ModuleName\\": \\"ide\\",\\n \\"ConfigValue\\": \\"{\\\\\\"spark.driver.memory\\\\\\":\\\\\\"1g\\\\\\"}\\",\\n \\"EnableOverwrite\\": false\\n }\\n ],\\n \\"RequestId\\": \\"0000-ABCD-*****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"101011005\\",\\n \\"ErrorMessage\\": \\"Invalid.Cluster.ClusterNotFound\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]', + 'title' => '列出集群的配置信息', + 'description' => '本接口当前处于试用阶段。需要体验的用户可以提出申请,管理员加入试用名单后即可调用。', + ], + 'ListClusters' => [ + 'summary' => '列出注册到 DataWorks 的集群信息,目前支持 EMR 集群、CDH 集群。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '231398', + 'abilityTreeNodes' => [ + 'FEATUREdideDGBIGO', + ], + ], + 'parameters' => [ + [ + 'name' => 'ClusterType', + 'in' => 'query', + 'schema' => [ + 'description' => '集群类型,支持的集群类型如下:'."\n" + .'- CDH(CDH 集群)'."\n" + .'- EMR(EMR 集群)', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'EMR', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '页码,大于等于 1 的正整数,默认为 1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页记录数,默认为 10 条,最大 100 条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页记录数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'TotalCount' => [ + 'description' => '总记录数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Clusters' => [ + 'description' => '集群信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '集群信息。', + '$ref' => '#/components/schemas/Cluster', + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的 ID,用于定位日志、排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Success' => [ + 'description' => '请求是否成功:'."\n" + .'- true(成功)'."\n" + .'- false(失败)', + 'type' => 'boolean', + 'enumValueTitles' => [], + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '101011005', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Invalid.Cluster.ClusterNotFound', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP 状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Clusters\\": [\\n {\\n \\"ClusterId\\": 1234,\\n \\"ClusterBizId\\": \\"c-d8a7523****\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"101011005\\",\\n \\"ErrorMessage\\": \\"Invalid.Cluster.ClusterNotFound\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]', + 'title' => '列出集群信息', + 'description' => '本接口当前处于试用阶段。需要体验的用户可以提出申请,管理员加入试用名单后即可调用。', + ], + 'ListEntitiesByTags' => [ + 'summary' => '根据标签列出实体,目前只支持 maxcompute-table 类型的实体。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '187376', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'EntityType', + 'in' => 'query', + 'schema' => [ + 'description' => '实体的类型。', + 'type' => 'string', + 'required' => true, + 'example' => 'maxcompute-table', + ], + ], + [ + 'name' => 'Tags', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签。', + 'required' => false, + '$ref' => '#/components/schemas/UserEntityTag', + ], + 'required' => true, + 'maxItems' => 10, + ], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => [ + 'description' => '分页信息,指定本次读取的起始点。', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + 'default' => '0', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为 10 条、最大 100 条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '1000', + 'example' => '10', + 'default' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiMetaResultModel', + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'NextToken' => [ + 'description' => '分页信息,指定下一页读取的起始点。', + 'type' => 'string', + 'example' => '12345', + ], + 'EntityList' => [ + 'description' => '实体列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实体。', + '$ref' => '#/components/schemas/Entity', + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求的 ID,用于定位日志、排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Success' => [ + 'description' => '请求是否成功:'."\n" + ."\n" + .'true: 成功; '."\n" + .'false: 失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '101011005', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Invalid.Entity.EntityTypeNotSupported', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP 状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": {\\n \\"NextToken\\": \\"12345\\",\\n \\"EntityList\\": [\\n {\\n \\"QualifiedName\\": \\"maxcompute_table.563f0357118d05ef145d6bddf2966cc23e86ca8f2f013f915e565afdf09f7a23\\",\\n \\"TenantId\\": 12345,\\n \\"EntityContent\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n },\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"101011005\\",\\n \\"ErrorMessage\\": \\"Invalid.Entity.EntityTypeNotSupported\\",\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 12345\\n \\n maxcompute_table.563f0357118d05ef145d6bddf2966cc23e86ca8f2f013f915e565afdf09f7a23\\n 12345\\n \\n \\n 0000-ABCD-E****\\n true\\n 101011005\\n Invalid.Entity.EntityTypeNotSupported\\n 200\\n","errorExample":""}]', + 'title' => '根据标签列出实体', + ], + 'RemoveEntityTags' => [ + 'summary' => '移除实体的标签,目前只支持 maxcompute-table 类型的实体。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '187380', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'QualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '实体唯一标识符,例如:maxcompute-table.projectA.tableA。', + 'type' => 'string', + 'required' => true, + 'example' => 'maxcompute-table.projectA.tableA', + ], + ], + [ + 'name' => 'TagKeys', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '标签 Key 列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签 Key。', + 'type' => 'string', + 'required' => false, + 'example' => 'priority', + ], + 'required' => true, + 'maxItems' => 100, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiMetaResultModel', + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '操作是否成功:'."\n" + ."\n" + .'true: 成功; '."\n" + .'false: 失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的 ID,用于定位日志、排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Success' => [ + 'description' => '请求是否成功:'."\n" + ."\n" + .'true: 成功; '."\n" + .'false: 失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '101011005', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Invalid.Entity.EntityTypeNotSupported', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP 状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"101011005\\",\\n \\"ErrorMessage\\": \\"Invalid.Entity.EntityTypeNotSupported\\",\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0000-ABCD-E****\\n true\\n 101011005\\n Invalid.Entity.EntityTypeNotSupported\\n 200\\n","errorExample":""}]', + 'title' => '移除实体的标签', + ], + 'SetEntityTags' => [ + 'summary' => '设置实体的标签,目前只支持 maxcompute-table 类型的实体。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '187379', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'QualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '实体唯一标识符,例如:maxcompute-table.projectA.tableA。', + 'type' => 'string', + 'required' => true, + 'example' => 'maxcompute-table.projectA.tableA', + ], + ], + [ + 'name' => 'Tags', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签。', + 'required' => false, + '$ref' => '#/components/schemas/UserEntityTag', + ], + 'required' => false, + 'maxItems' => 100, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiMetaResultModel', + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '操作是否成功:'."\n" + ."\n" + .'true: 成功;'."\n" + .'false: 失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求的 ID,用于定位日志、排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Success' => [ + 'description' => '请求是否成功:'."\n" + ."\n" + .'true: 成功;'."\n" + .'false: 失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '101011005', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Invalid.Entity.EntityTypeNotSupported', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP 状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"101011005\\",\\n \\"ErrorMessage\\": \\"Invalid.Entity.EntityTypeNotSupported\\",\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n 0000-ABCD-E****\\n true\\n 101011005\\n Invalid.Entity.EntityTypeNotSupported\\n 200\\n","errorExample":""}]', + 'title' => '设置实体的标签', + ], + 'ListEntityTags' => [ + 'summary' => '列出实体的标签,目前只支持 maxcompute-table 类型的实体。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '187352', + 'abilityTreeNodes' => [ + 'FEATUREdideRZEBFC', + ], + ], + 'parameters' => [ + [ + 'name' => 'QualifiedName', + 'in' => 'query', + 'schema' => [ + 'description' => '实体唯一标识符,例如:maxcompute-table.projectA.tableA。', + 'type' => 'string', + 'required' => true, + 'example' => 'maxcompute-table.projectA.tableA', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OpenApiMetaResultModel', + 'description' => '返回结构。', + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签。', + '$ref' => '#/components/schemas/UserEntityTag', + ], + ], + 'RequestId' => [ + 'description' => '请求的 ID,用于定位日志、排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'Success' => [ + 'description' => '请求是否成功:'."\n" + ."\n" + .'true: 成功; '."\n" + .'false: 失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '101011005', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'Invalid.Entity.EntityTypeNotSupported', + ], + 'HttpStatusCode' => [ + 'description' => 'HTTP 状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": [\\n {\\n \\"TagKey\\": \\"priority\\",\\n \\"TagValue\\": \\"p1\\"\\n }\\n ],\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"101011005\\",\\n \\"ErrorMessage\\": \\"Invalid.Entity.EntityTypeNotSupported\\",\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"\\n \\n priority\\n p1\\n \\n 0000-ABCD-E****\\n true\\n 101011005\\n Invalid.Entity.EntityTypeNotSupported\\n 200\\n","errorExample":""}]', + 'title' => '列出实体的标签', + ], + 'SetDataSourceShare' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => true, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所在的DataWorks工作空间ID。您可以调用[ListProjects](~~178393~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '10000000000', + 'minimum' => '1', + 'example' => '10000', + ], + ], + [ + 'name' => 'DatasourceName', + 'in' => 'query', + 'schema' => [ + 'description' => '待分享的目标数据源名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'mysql_name', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '目标数据源所属的环境。取值如下:'."\n" + .'- 0:开发环境。'."\n" + .'- 1:生产环境。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'ProjectPermissions', + 'in' => 'query', + 'schema' => [ + 'description' => '指定需要分享目标数据源的DataWorks工作空间。分享后,该工作空间的所有成员均可查看或使用目标数据源。使用JSONARRAY格式。[{"projectId":1000,"permission":"WRITE","sharedName":"PX_DATAHUB1.shared_name"}],'."\n" + .'参数说明如下:'."\n" + .'- projectId:需要分享目标数据源的工作空间ID。'."\n" + .'- permission:支持READ(读取)和WRITE(写入)两种模式权限。READ(读取)表示指定工作空间的所有成员仅可以读取目标数据源的数据,但是不能修改该数据;WRITE(写入)表示指定工作空间的所有成员可以修改目标数据源的数据。'."\n" + .'- sharedName:待分享的数据源名称。', + 'type' => 'string', + 'required' => false, + 'example' => '[{"projectId":1000,"permission":"WRITE","sharedName":"PX_DATAHUB1.shared_name"}]', + ], + ], + [ + 'name' => 'UserPermissions', + 'in' => 'query', + 'schema' => [ + 'description' => '指定需要分享目标数据源的用户。分享后,该用户可查看或使用目标数据源。使用JSONARRAY格式。[{"projectId":10000,"users":[{"userId":"276184575345452131","permission":"WRITE"}],"sharedName":"PX_DATAHUB1.shared_name"}],'."\n" + .'参数说明如下:'."\n" + .'- projectId:指定DataWorks工作空间的ID。表示需要分享目标数据源的用户仅在该工作空间下可查看或使用目标数据源。'."\n" + .'- userId:需要分享目标数据源的用户ID。'."\n" + .'- permission:支持READ(读取)和WRITE(写入)两种模式权限。READ(读取)表示指定的用户仅可以读取目标数据源的数据,但是不能修改该数据;WRITE(写入)表示指定的用户可以修改目标数据源的数据。'."\n" + .'- sharedName:待分享的数据源名称。'."\n" + ."\n" + .'ProjectPermissions和UserPermissions如果都为空,则该接口不会做任何修改。如果都不为空,则既会UserPermissions生效,ProjectPermissions也会生效'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => '[{"projectId":10000,"users":[{"userId":"276184575345452131","permission":"WRITE"}],"sharedName":"PX_DATAHUB1.shared_name"}]', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Success' => [ + 'description' => '请求是否成功。取值如下:'."\n" + .'- true:成功。'."\n" + .'- false:失败。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。用于出现错误后定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG ', + ], + 'Data' => [ + 'description' => '分享目标数据源的返回数据。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '分享目标数据源的结果状态。取值如下:'."\n" + .'- success:表示目标数据源分享成功。'."\n" + .'- fail:表示目标数据源分享失败。您可以查看Message参数定位失败原因。', + 'type' => 'string', + 'example' => 'success', + ], + 'Message' => [ + 'description' => '分享目标数据源失败后的原因描述。如果分享目标数据源成功,则该参数的返回值为空。', + 'type' => 'string', + 'example' => 'datasource is wrong', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.DI.Parameter', + 'errorMessage' => 'The parameter is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Forbidden.DI.NoPrivilege', + 'errorMessage' => 'No access.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.DI.Parameter', + 'errorMessage' => 'A DI internal error occurred.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"Success\\": true,\\n \\"RequestId\\": \\"0000-ABCD-EFG\\\\t\\",\\n \\"Data\\": {\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"datasource is wrong\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG\\t\\n\\n success\\n datasource is wrong\\n\\ntrue","errorExample":""}]', + 'title' => '分享目标数据源', + 'summary' => '分享目标数据源至指定DataWorks工作空间或指定用户。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateConnection' => [ + 'summary' => '调用CreateConnection创建一个数据源。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'high', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATUREdide7FTVFZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源关联的工作空间ID。您可以通过[ListProjects](~~178393~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'abc', + ], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => [ + 'description' => '连接串的描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'ConnectionType', + 'in' => 'query', + 'schema' => [ + 'description' => '连接串的类型。常用类型枚举如下:'."\n" + .'- odps'."\n" + .'- mysql'."\n" + .'- rds'."\n" + .'- oss'."\n" + .'- sqlserver'."\n" + .'- polardb'."\n" + .'- oracle'."\n" + .'- mongodb'."\n" + .'- emr'."\n" + .'- postgresql'."\n" + .'- analyticdb_for_mysql'."\n" + .'- hybriddb_for_postgresql'."\n" + .'- holo', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'rds', + ], + ], + [ + 'name' => 'SubType', + 'in' => 'query', + 'schema' => [ + 'description' => '连接串的子类型,针对某些父类型type下包含子类型的场景。目前有以下组合:'."\n" + .'- 父类型:`rds`'."\n" + .'- 子类型:`mysql`、`sqlserver`或`postgresql`。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所属的环境,包括0(开发环境)和1(生产环境)。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'Content', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的详细信息。部分常用数据源样例如下:'."\n" + .'- odps'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xssssss",'."\n" + .' "accessKey": "xsaxsaxsa",'."\n" + .' "authType": 2,'."\n" + .' "endpoint": "http://service.odps.aliyun.com/api",'."\n" + .' "project": "xsaxsax",'."\n" + .' "tag": "public"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- mysql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "database": "xsaxsa",'."\n" + .' "instanceName": "rm-xsaxsa",'."\n" + .' "password": "xsaxsa",'."\n" + .' "rdsOwnerId": "xasxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "rds",'."\n" + .' "username": "xsaxsa"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- rds'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "configType": 1,'."\n" + .' "tag": "rds",'."\n" + .' "database": "xsaxsa",'."\n" + .' "username": "xsaxsa",'."\n" + .' "password": "xssaxsa$32050",'."\n" + .' "instanceName": "rm-xsaxs",'."\n" + .' "rdsOwnerId": "11111111"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- oss'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "sssssxx",'."\n" + .' "accessKey": "xsaxaxsaxs",'."\n" + .' "bucket": "xsa-xs-xs",'."\n" + .' "endpoint": "http://oss-cn-shanghai.aliyuncs.com",'."\n" + .' "tag": "public"'."\n" + .'}'."\n" + .'```'."\n" + .'- sqlserver'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:sqlserver://xsaxsa-xsaxsa.database.xxx.cn:123;DatabaseName=xsxs-xsxs",'."\n" + .' "password": "sdasda$fs",'."\n" + .' "tag": "public",'."\n" + .' "username": "sxaxacdacdd"'."\n" + .'}'."\n" + .'```'."\n" + .'- polardb'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "clusterId": "pc-sdadsadsa",'."\n" + .' "database": "dsadsadsa",'."\n" + .' "ownerId": "121212122",'."\n" + .' "password": "sdasdafssa",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "tag": "polardb",'."\n" + .' "username": "asdadsads"'."\n" + .'}'."\n" + .'```'."\n" + .'- oracle'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:oracle:saaa:@xxxxx:1521:PROD",'."\n" + .' "password": "sxasaxsa",'."\n" + .' "tag": "public",'."\n" + .' "username": "sasfadfa"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- mongodb'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "address": "[\\"xsaxxsa.mongodb.rds.aliyuncs.com:3717\\"]",'."\n" + .' "database": "admin",'."\n" + .' "password": "sadsda@",'."\n" + .' "tag": "public",'."\n" + .' "username": "dsadsadas"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- emr'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xsaxsa",'."\n" + .' "emrClusterId": "C-dsads",'."\n" + .' "emrResourceQueueName": "default",'."\n" + .' "emrEndpoint": "emr.aliyuncs.com",'."\n" + .' "accessKey": "dsadsad",'."\n" + .' "emrUserId": "224833315798889783",'."\n" + .' "name": "sasdsadsa",'."\n" + .' "emrAccessMode": "simple",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "authType": "2",'."\n" + .' "emrProjectId": "FP-sdadsad"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- postgresql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:postgresql://xxxx:1921/ssss",'."\n" + .' "password": "sdadsads",'."\n" + .' "tag": "public",'."\n" + .' "username": "sdsasda"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- analyticdb_for_mysql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "instanceId": "am-sadsada",'."\n" + .' "database": "xsxsx",'."\n" + .' "username": "xsxsa",'."\n" + .' "password": "asdadsa",'."\n" + .' "connectionString": "am-xssxsxs.ads.aliyuncs.com:3306"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- hybriddb_for_postgresql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "connectionString": "gp-xsaxsaxa-master.gpdbmaster.rds.aliyuncs.com",'."\n" + .' "database": "xsaxsaxas",'."\n" + .' "password": "xsaxsaxsa@11",'."\n" + .' "instanceId": "gp-xsaxsaxsa",'."\n" + .' "port": "541132",'."\n" + .' "ownerId": "xsaxsaxsas",'."\n" + .' "username": "sadsad"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- holo'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xsaxsaxs",'."\n" + .' "accessKey": "xsaxsaxsa",'."\n" + .' "database": "xsaxsaxsa",'."\n" + .' "instanceId": "xsaxa",'."\n" + .' "tag": "aliyun"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- kafka'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "instanceId": "xsax-cn-xsaxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "aliyun",'."\n" + .' "ownerId": "1212121212112"'."\n" + .'}'."\n" + .'```', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '{"database":"dbname","instanceName":"instancename","password":"password","rdsOwnerId":"123","username":"username"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'string', + 'example' => '200', + ], + 'Data' => [ + 'description' => '数据源ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc141151593763****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + [ + 'errorCode' => 'ConnectionAlreadyExist', + 'errorMessage' => 'The connection with envType %s and name %s already exists.', + ], + [ + 'errorCode' => 'DataSource.CheckRamRoleFailure', + 'errorMessage' => 'Failed to check the RAM role. AccountId %s. roleArn %s.', + ], + [ + 'errorCode' => 'DataSource.ConnectionStrProperty.PatternNotMatch', + 'errorMessage' => 'The pattern value %s is invalid. The correct pattern is %s.', + ], + [ + 'errorCode' => 'Invalid.DataSource.DataSourceTypeNotSupport', + 'errorMessage' => 'The dataSourceType %s and subType %s are not supported.', + ], + [ + 'errorCode' => 'Invalid.Param.Odps.EngineIdOrConnectStrEmpty', + 'errorMessage' => 'Either the compute engine ID or the connection string must be specified when data source type is ODPS.', + ], + [ + 'errorCode' => 'MissingParam.ConnectionStr.Property', + 'errorMessage' => 'You must specify property %s required by the data source connection string.', + ], + [ + 'errorCode' => 'Invalid.DataSource.DataSourceTypeNotExist', + 'errorMessage' => 'The data source type %s does not exist.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'staticInfo' => [ + 'substitutions' => [ + 'dataworks-public::2020-05-18::CreateDataSource', + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"Data\\": 123,\\n \\"RequestId\\": \\"0bc141151593763****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0bc141151593763****\\n200\\n123\\ntrue","errorExample":""}]', + 'title' => '创建一个数据源', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateDagComplement' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'StartBizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '补数据的起始业务日期。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-05-20 00:00:00', + ], + ], + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作流的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'xm_test', + ], + ], + [ + 'name' => 'RootNodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '补数据的起始节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'IncludeNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '包含的节点ID列表。如果只补一个节点的数据,该节点需要在includeNodeIds中。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '74324,74325', + ], + ], + [ + 'name' => 'ExcludeNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '可选参数,排除无需补数据的节点ID列表。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => ' 1234', + ], + ], + [ + 'name' => 'BizBeginTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '可选参数,任务的开始时间。小时调度任务需要设置该参数。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '00:00:00', + ], + ], + [ + 'name' => 'BizEndTime', + 'in' => 'formData', + 'schema' => [ + 'description' => '可选参数,小时调度任务需要,任务的结束时间', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '23:00:00', + ], + ], + [ + 'name' => 'Parallelism', + 'in' => 'formData', + 'schema' => [ + 'description' => '是否可以并发执行。', + 'type' => 'boolean', + 'required' => true, + 'docRequired' => true, + 'example' => 'false', + ], + ], + [ + 'name' => 'EndBizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '补数据的结束业务日期。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-05-21 00:00:00', + ], + ], + [ + 'name' => 'NodeParams', + 'in' => 'formData', + 'schema' => [ + 'description' => '传入一个 json 字符串,Key为节点 ID,Value为参数实际值', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '{74324:"key1=val1 key2=val"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Data' => [ + 'description' => '工作流ID的列表。', + 'type' => 'array', + 'items' => [ + 'description' => '工作流ID的列表。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '111', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Data\\": [\\n 111\\n ]\\n}","errorExample":""},{"type":"xml","example":"E6F0DBDD-5AD****\\n200\\n111\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '创建补数据工作流', + 'summary' => '调用CreateDagComplement创建补数据工作流。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateDagTest' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'Bizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-05-26 00:00:00', + ], + ], + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作流的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'xm_create_test', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + [ + 'name' => 'NodeParams', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的参数。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => 'bizdate=$bizdate tbods=$tbods', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '工作流的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3333333', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 3333333,\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"E6F0DBDD-5AD****\\n200\\n3333333\\nInvalid.Tenant.ConnectionNotExists\\nThe connection does not exist.\\ntrue","errorExample":""}]', + 'title' => '创建冒烟测试工作流', + 'summary' => '调用CreateDagTest创建冒烟测试工作流。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'CreateManualDag' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度运维中心的环境标识。PROD表示生产环境,DEV表示开发环境。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD或者DEV', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '手动业务流程所属的工作空间英文名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test_workspace', + ], + ], + [ + 'name' => 'FlowName', + 'in' => 'formData', + 'schema' => [ + 'description' => '手动业务流程的名称。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test_workflow', + ], + ], + [ + 'name' => 'BizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期的值为小于等于当前日期-1天。例如,今天是2020年11月11日,则业务日期需要是2020年11月10日的00:00:00或者该日期之前的日期。业务日期的时分秒信息均填写00。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-11-11 00:00:00', + ], + ], + [ + 'name' => 'NodeParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '传递手动业务流程执行时的节点参数信息,一个JSON格式:'."\n" + .'`'."\n" + .'{'."\n" + .' "<手动业务流程内部的某个节点ID>": "节点的调度参数信息,和数据开发调度配置里面的参数格式保持一致", '."\n" + .' "<手动业务流程内部的某个节点ID>": "节点的调度参数信息,和数据开发调度配置里面的参数格式保持一致"'."\n" + .'}'."\n" + .'`', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '{"20000123121": "key1=val2 key2=val2", "20000123124": "kkkk=vvvvv aaaa=bbbb"}', + ], + ], + [ + 'name' => 'DagParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务流程参数,该参数会同步至本次Dag的所有实例中。如果内部节点的调度参数引用了DagParameters中的业务流程参数,则节点的对应参数值会被替换为DagParameter中的业务流程参数。', + 'type' => 'string', + 'required' => false, + 'docRequired' => false, + 'example' => '{"kaaaa": "vaaaaa", "kbbbb": "vbbbbb"}', + ], + ], + [ + 'name' => 'IncludeNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要运行的节点ID列表。', + 'type' => 'string', + 'required' => false, + 'example' => '74324,74325', + ], + ], + [ + 'name' => 'ExcludeNodeIds', + 'in' => 'formData', + 'schema' => [ + 'description' => '不需要运行的节点ID列表。', + 'type' => 'string', + 'required' => false, + 'example' => '123,456', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'DagId' => [ + 'description' => '手动业务流程运行Dag的实例ID。您可以通过接口和该DagId查询此次手动业务流程运行的内部节点实例的详细信息和状态。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '700000123123141', + ], + 'RequestId' => [ + 'description' => '请求唯一标识。', + 'type' => 'string', + 'example' => 'AASFDFSDFG-DFSDF-DFSDFD-SDFSDF', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"DagId\\": 700000123123141,\\n \\"RequestId\\": \\"AASFDFSDFG-DFSDF-DFSDFD-SDFSDF\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 700000123123141\\n AASFDFSDFG-DFSDF-DFSDFD-SDFSDF\\n","errorExample":""}]', + 'title' => '触发手动业务流程执行', + 'summary' => '手动业务流程必须已经在界面提交发布,运维中心能够找到对应的手动业务流程,才能使用该接口。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'DeleteConnection' => [ + 'summary' => '调用DeleteConnection删除一个数据源。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'delete', + ], + 'parameters' => [ + [ + 'name' => 'ConnectionId', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源ID,您可以调用[listConnection](~~173911~~)获取数据源的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'string', + 'example' => '200', + ], + 'Data' => [ + 'description' => '是否成功删除。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1411515937635****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc1411515937635****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0bc1411515937635****\\n200\\ntrue\\ntrue","errorExample":""}]', + 'title' => '删除一个数据源', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'UpdateConnection' => [ + 'summary' => '调用UpdateConnection更新一个数据源。', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'high', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATUREdide7FTVFZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => [ + 'description' => '描述数据源。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所属的环境,包括0(开发环境)和1(生产环境)。'."\n" + ."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'docRequired' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'Content', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的详细信息。部分常用数据源样例如下:'."\n" + .'- odps'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xssssss",'."\n" + .' "accessKey": "xsaxsaxsa",'."\n" + .' "authType": 2,'."\n" + .' "endpoint": "http://service.odps.aliyun.com/api",'."\n" + .' "project": "xsaxsax",'."\n" + .' "tag": "public"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- mysql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "database": "xsaxsa",'."\n" + .' "instanceName": "rm-xsaxsa",'."\n" + .' "password": "xsaxsa",'."\n" + .' "rdsOwnerId": "xasxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "rds",'."\n" + .' "username": "xsaxsa"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- rds'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "configType": 1,'."\n" + .' "tag": "rds",'."\n" + .' "database": "xsaxsa",'."\n" + .' "username": "xsaxsa",'."\n" + .' "password": "xssaxsa$32050",'."\n" + .' "instanceName": "rm-xsaxs",'."\n" + .' "rdsOwnerId": "11111111"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- oss'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "sssssxx",'."\n" + .' "accessKey": "xsaxaxsaxs",'."\n" + .' "bucket": "xsa-xs-xs",'."\n" + .' "endpoint": "http://oss-cn-shanghai.aliyuncs.com",'."\n" + .' "tag": "public"'."\n" + .'}'."\n" + .'```'."\n" + .'- sqlserver'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:sqlserver://xsaxsa-xsaxsa.database.xxx.cn:123;DatabaseName=xsxs-xsxs",'."\n" + .' "password": "sdasda$fs",'."\n" + .' "tag": "public",'."\n" + .' "username": "sxaxacdacdd"'."\n" + .'}'."\n" + .'```'."\n" + .'- polardb'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "clusterId": "pc-sdadsadsa",'."\n" + .' "database": "dsadsadsa",'."\n" + .' "ownerId": "121212122",'."\n" + .' "password": "sdasdafssa",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "tag": "polardb",'."\n" + .' "username": "asdadsads"'."\n" + .'}'."\n" + .'```'."\n" + .'- oracle'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:oracle:saaa:@xxxxx:1521:PROD",'."\n" + .' "password": "sxasaxsa",'."\n" + .' "tag": "public",'."\n" + .' "username": "sasfadfa"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- mongodb'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "address": "[\\"xsaxxsa.mongodb.rds.aliyuncs.com:3717\\"]",'."\n" + .' "database": "admin",'."\n" + .' "password": "sadsda@",'."\n" + .' "tag": "public",'."\n" + .' "username": "dsadsadas"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- emr'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xsaxsa",'."\n" + .' "emrClusterId": "C-dsads",'."\n" + .' "emrResourceQueueName": "default",'."\n" + .' "emrEndpoint": "emr.aliyuncs.com",'."\n" + .' "accessKey": "dsadsad",'."\n" + .' "emrUserId": "224833315798889783",'."\n" + .' "name": "sasdsadsa",'."\n" + .' "emrAccessMode": "simple",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "authType": "2",'."\n" + .' "emrProjectId": "FP-sdadsad"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- postgresql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:postgresql://xxxx:1921/ssss",'."\n" + .' "password": "sdadsads",'."\n" + .' "tag": "public",'."\n" + .' "username": "sdsasda"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- analyticdb_for_mysql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "instanceId": "am-sadsada",'."\n" + .' "database": "xsxsx",'."\n" + .' "username": "xsxsa",'."\n" + .' "password": "asdadsa",'."\n" + .' "connectionString": "am-xssxsxs.ads.aliyuncs.com:3306"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- hybriddb_for_postgresql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "connectionString": "gp-xsaxsaxa-master.gpdbmaster.rds.aliyuncs.com",'."\n" + .' "database": "xsaxsaxas",'."\n" + .' "password": "xsaxsaxsa@11",'."\n" + .' "instanceId": "gp-xsaxsaxsa",'."\n" + .' "port": "541132",'."\n" + .' "ownerId": "xsaxsaxsas",'."\n" + .' "username": "sadsad"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- holo'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xsaxsaxs",'."\n" + .' "accessKey": "xsaxsaxsa",'."\n" + .' "database": "xsaxsaxsa",'."\n" + .' "instanceId": "xsaxa",'."\n" + .' "tag": "aliyun"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- kafka'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "instanceId": "xsax-cn-xsaxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "aliyun",'."\n" + .' "ownerId": "1212121212112"'."\n" + .'}'."\n" + .'```', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => '{"database":"dbname","instanceName":"instancename","password":"password","rdsOwnerId":"123","username":"username"}', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的状态,包括ENABLED(正常)和DISABLED(异常)。'."\n" + ."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'ENABLED', + ], + ], + [ + 'name' => 'ConnectionId', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源ID。您可以通过[ListConnections](~~173911~~)接口获取项目空间下的数据源ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'string', + 'example' => '200', + ], + 'Data' => [ + 'description' => '请求是否成功更新。'."\n" + ."\n", + 'type' => 'boolean', + 'example' => 'true', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc14115159376359****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + [ + 'errorCode' => 'Invalid.DataSource.DataSourceStatus', + 'errorMessage' => 'The specified dataSourceStatus %s is invalid.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'staticInfo' => [ + 'substitutions' => [ + 'dataworks-public::2020-05-18::UpdateDataSource', + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"Data\\": true,\\n \\"RequestId\\": \\"0bc14115159376359****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"0bc14115159376359****\\n200\\ntrue\\ntrue","errorExample":""}]', + 'title' => '更新一个数据源', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListConnections' => [ + 'summary' => '调用ListConnections查询数据源列表。', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所在的工作空间ID。您可以通过[ListProjects](~~178393~~)接口获取工作空间ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '76086', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '查询的数据源名称。', + 'type' => 'string', + 'required' => false, + 'docRequired' => true, + 'example' => 'abc', + ], + ], + [ + 'name' => 'ConnectionType', + 'in' => 'query', + 'schema' => [ + 'description' => '连接串的类型。常用类型枚举如下:'."\n" + .'- odps'."\n" + .'- mysql'."\n" + .'- rds'."\n" + .'- oss'."\n" + .'- sqlserver'."\n" + .'- polardb'."\n" + .'- oracle'."\n" + .'- mongodb'."\n" + .'- emr'."\n" + .'- postgresql'."\n" + .'- analyticdb_for_mysql'."\n" + .'- hybriddb_for_postgresql'."\n" + .'- holo', + 'type' => 'string', + 'required' => false, + 'example' => 'rds', + ], + ], + [ + 'name' => 'SubType', + 'in' => 'query', + 'schema' => [ + 'description' => '连接串的子类型,针对某些父类型type中包含子类型的场景。目前有以下组合:'."\n" + .'- 父类型:`rds`'."\n" + .'- 子类型:`mysql`、 `sqlserver`或 `postgresql`。', + 'type' => 'string', + 'required' => false, + 'example' => 'mysql', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源的状态。'."\n" + .'- ENABLED 正常'."\n" + .'- DISABLED 禁用', + 'type' => 'string', + 'required' => false, + 'example' => 'ENABLED', + ], + ], + [ + 'name' => 'EnvType', + 'in' => 'query', + 'schema' => [ + 'description' => '数据源所属的环境,包括0(开发环境)和1(生产环境)。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询页码。取值为大于等于1的正整数。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc14115159376359****', + ], + 'Success' => [ + 'description' => '请求是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '连接串的分页查询结果。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '每页显示的条数,默认为10条,最大100条。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '20', + ], + 'TotalCount' => [ + 'description' => '数据源的总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'Connections' => [ + 'description' => '连接串列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '数据源的状态。'."\n" + .'- 1 正常'."\n" + .'- 2 禁用', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ConnectionType' => [ + 'description' => '数据源的类型。常用类型枚举如下:'."\n" + .'- odps'."\n" + .'- mysql'."\n" + .'- rds'."\n" + .'- oss'."\n" + .'- sqlserver'."\n" + .'- polardb'."\n" + .'- oracle'."\n" + .'- mongodb'."\n" + .'- emr'."\n" + .'- postgresql'."\n" + .'- analyticdb_for_mysql'."\n" + .'- hybriddb_for_postgresql'."\n" + .'- holo', + 'type' => 'string', + 'example' => 'mysql', + ], + 'ProjectId' => [ + 'description' => '数据源关联的工作空间ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '123', + ], + 'SubType' => [ + 'description' => '数据源的子类型。针对某些父类型type中包含子类型的场景。目前有以下组合:'."\n" + .'- 父类型:`rds`'."\n" + .'- 子类型:`mysql`、`sqlserver`或`postgresql`。', + 'type' => 'string', + 'example' => 'mysql', + ], + 'GmtModified' => [ + 'description' => '修改数据源的时间。时间格式示例为Mar 17, 2021 4:09:32 PM。', + 'type' => 'string', + 'example' => 'Mar 17, 2021 4:09:32 PM', + ], + 'EnvType' => [ + 'description' => '数据源所在的环境。'."\n" + .'- 0 开发环境'."\n" + .'- 1 生产环境', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ConnectStatus' => [ + 'description' => '数据源的状态。'."\n" + .'- 1 正常'."\n" + .'- 2 禁用', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Sequence' => [ + 'description' => '排序字段。数据源按此字段从大到小排序。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '300', + ], + 'Description' => [ + 'description' => '描述数据源。', + 'type' => 'string', + 'example' => 'a connection', + ], + 'GmtCreate' => [ + 'description' => '创建数据源的时间。时间格式示例为Mar 17, 2021 4:09:32 PM。', + 'type' => 'string', + 'example' => 'Mar 17, 2021 4:09:32 PM', + ], + 'DefaultEngine' => [ + 'description' => '数据源关联的引擎是否为同类型下的默认引擎。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Shared' => [ + 'description' => '是否为共享的数据源。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'Operator' => [ + 'description' => '最近一次修改数据源的阿里云用户ID。'."\n" + ."\n", + 'type' => 'string', + 'example' => '193543050****', + ], + 'Name' => [ + 'description' => '数据源的名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'Content' => [ + 'description' => '数据源的详细信息。部分常用数据源样例如下:'."\n" + .'- odps'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xssssss",'."\n" + .' "accessKey": "xsaxsaxsa",'."\n" + .' "authType": 2,'."\n" + .' "endpoint": "http://service.odps.aliyun.com/api",'."\n" + .' "project": "xsaxsax",'."\n" + .' "tag": "public"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- mysql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "database": "xsaxsa",'."\n" + .' "instanceName": "rm-xsaxsa",'."\n" + .' "password": "xsaxsa",'."\n" + .' "rdsOwnerId": "xasxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "rds",'."\n" + .' "username": "xsaxsa"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- rds'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "configType": 1,'."\n" + .' "tag": "rds",'."\n" + .' "database": "xsaxsa",'."\n" + .' "username": "xsaxsa",'."\n" + .' "password": "xssaxsa$32050",'."\n" + .' "instanceName": "rm-xsaxs",'."\n" + .' "rdsOwnerId": "11111111"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- oss'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "sssssxx",'."\n" + .' "accessKey": "xsaxaxsaxs",'."\n" + .' "bucket": "xsa-xs-xs",'."\n" + .' "endpoint": "http://oss-cn-shanghai.aliyuncs.com",'."\n" + .' "tag": "public"'."\n" + .'}'."\n" + .'```'."\n" + .'- sqlserver'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:sqlserver://xsaxsa-xsaxsa.database.xxx.cn:123;DatabaseName=xsxs-xsxs",'."\n" + .' "password": "sdasda$fs",'."\n" + .' "tag": "public",'."\n" + .' "username": "sxaxacdacdd"'."\n" + .'}'."\n" + .'```'."\n" + .'- polardb'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "clusterId": "pc-sdadsadsa",'."\n" + .' "database": "dsadsadsa",'."\n" + .' "ownerId": "121212122",'."\n" + .' "password": "sdasdafssa",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "tag": "polardb",'."\n" + .' "username": "asdadsads"'."\n" + .'}'."\n" + .'```'."\n" + .'- oracle'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:oracle:saaa:@xxxxx:1521:PROD",'."\n" + .' "password": "sxasaxsa",'."\n" + .' "tag": "public",'."\n" + .' "username": "sasfadfa"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- mongodb'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "address": "[\\"xsaxxsa.mongodb.rds.aliyuncs.com:3717\\"]",'."\n" + .' "database": "admin",'."\n" + .' "password": "sadsda@",'."\n" + .' "tag": "public",'."\n" + .' "username": "dsadsadas"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- emr'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xsaxsa",'."\n" + .' "emrClusterId": "C-dsads",'."\n" + .' "emrResourceQueueName": "default",'."\n" + .' "emrEndpoint": "emr.aliyuncs.com",'."\n" + .' "accessKey": "dsadsad",'."\n" + .' "emrUserId": "224833315798889783",'."\n" + .' "name": "sasdsadsa",'."\n" + .' "emrAccessMode": "simple",'."\n" + .' "region": "cn-shanghai",'."\n" + .' "authType": "2",'."\n" + .' "emrProjectId": "FP-sdadsad"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- postgresql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "jdbcUrl": "jdbc:postgresql://xxxx:1921/ssss",'."\n" + .' "password": "sdadsads",'."\n" + .' "tag": "public",'."\n" + .' "username": "sdsasda"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- analyticdb_for_mysql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "instanceId": "am-sadsada",'."\n" + .' "database": "xsxsx",'."\n" + .' "username": "xsxsa",'."\n" + .' "password": "asdadsa",'."\n" + .' "connectionString": "am-xssxsxs.ads.aliyuncs.com:3306"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- hybriddb_for_postgresql'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "connectionString": "gp-xsaxsaxa-master.gpdbmaster.rds.aliyuncs.com",'."\n" + .' "database": "xsaxsaxas",'."\n" + .' "password": "xsaxsaxsa@11",'."\n" + .' "instanceId": "gp-xsaxsaxsa",'."\n" + .' "port": "541132",'."\n" + .' "ownerId": "xsaxsaxsas",'."\n" + .' "username": "sadsad"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- holo'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "accessId": "xsaxsaxs",'."\n" + .' "accessKey": "xsaxsaxsa",'."\n" + .' "database": "xsaxsaxsa",'."\n" + .' "instanceId": "xsaxa",'."\n" + .' "tag": "aliyun"'."\n" + .'}'."\n" + .'```'."\n" + ."\n" + .'- kafka'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "instanceId": "xsax-cn-xsaxsa",'."\n" + .' "regionId": "cn-shanghai",'."\n" + .' "tag": "aliyun",'."\n" + .' "ownerId": "1212121212112"'."\n" + .'}'."\n" + .'```', + 'type' => 'string', + 'example' => '{\\"database\\":\\"xxx\\",\\"instanceName\\":\\"xxx\\",\\"password\\":\\"xxx\\",\\"rdsOwnerId\\":\\"xxx\\",\\"tag\\":\\"rds\\",\\"username\\":\\"xxx\\"}', + ], + 'Id' => [ + 'description' => '数据源ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'BindingCalcEngineId' => [ + 'description' => '数据源关联的计算引擎ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '123', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234567', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0bc14115159376359****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 3,\\n \\"Connections\\": [\\n {\\n \\"Status\\": 1,\\n \\"ConnectionType\\": \\"mysql\\",\\n \\"ProjectId\\": 123,\\n \\"SubType\\": \\"mysql\\",\\n \\"GmtModified\\": \\"Mar 17, 2021 4:09:32 PM\\",\\n \\"EnvType\\": 1,\\n \\"ConnectStatus\\": 1,\\n \\"Sequence\\": 300,\\n \\"Description\\": \\"a connection\\",\\n \\"GmtCreate\\": \\"Mar 17, 2021 4:09:32 PM\\",\\n \\"DefaultEngine\\": false,\\n \\"Shared\\": false,\\n \\"Operator\\": \\"193543050****\\",\\n \\"Name\\": \\"abc\\",\\n \\"Content\\": \\"{\\\\\\\\\\\\\\"database\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"xxx\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"instanceName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"xxx\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"password\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"xxx\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"rdsOwnerId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"xxx\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"tag\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"rds\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"username\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"xxx\\\\\\\\\\\\\\"}\\",\\n \\"Id\\": 1,\\n \\"BindingCalcEngineId\\": 123,\\n \\"TenantId\\": 1234567\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"0bc14115159****\\n200\\n\\n \\n 193543050****\\n 1\\n 1\\n a connection\\n mysql\\n 123\\n mysql\\n Oct 10, 2019 3:42:53 PM\\n 123\\n 300\\n false\\n 1\\n false\\n abc\\n Oct 10, 2019 3:42:53 PM\\n 1234567\\n {\\\\\\"database\\\\\\":\\\\\\"xxx\\\\\\",\\\\\\"instanceName\\\\\\":\\\\\\"xxx\\\\\\",\\\\\\"password\\\\\\":\\\\\\"xxx\\\\\\",\\\\\\"rdsOwnerId\\\\\\":\\\\\\"xxx\\\\\\",\\\\\\"tag\\\\\\":\\\\\\"rds\\\\\\",\\\\\\"username\\\\\\":\\\\\\"xxx\\\\\\"}\\n 1\\n \\n 3\\n 20\\n 1\\n\\ntrue","errorExample":""}]', + 'title' => '查询数据源列表', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetProjectDetail' => [ + 'summary' => '查询一个DataWorks工作空间的信息。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '27', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '0bc1411515937635973****', + ], + 'Success' => [ + 'description' => '是否成功查询工作空间的信息。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '工作空间的描述信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '工作空间的状态。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'ResidentArea' => [ + 'description' => '工作空间的类型:private为私有区,swap为交换区。', + 'type' => 'string', + 'example' => 'private', + ], + 'ProjectId' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '27', + ], + 'ProjectIdentifier' => [ + 'description' => '工作空间的标识。', + 'type' => 'string', + 'example' => 'abc', + ], + 'ProjectName' => [ + 'description' => '工作空间的显示名称。', + 'type' => 'string', + 'example' => 'abc', + ], + 'IsAllowDownload' => [ + 'description' => '是否允许下载。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectMode' => [ + 'description' => '工作空间模式:简单工作空间模式为2,标准工作空间模式为3。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ProjectDescription' => [ + 'description' => '工作空间的描述。', + 'type' => 'string', + 'example' => 'abc', + ], + 'GmtModified' => [ + 'description' => '修改工作空间的时间。', + 'type' => 'string', + 'example' => 'Dec 3, 2019 9:12:20 PM', + ], + 'ProjectOwnerBaseId' => [ + 'description' => '工作空间所有者的阿里云ID。', + 'type' => 'string', + 'example' => '18229311****', + ], + 'DevelopmentType' => [ + 'description' => '项目开发类型,目前均为4。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '4', + ], + 'DefaultDiResourceGroupIdentifier' => [ + 'description' => '默认节点的数据集成资源组标识。', + 'type' => 'string', + 'example' => 'group_280749521****', + ], + 'GmtCreate' => [ + 'description' => '创建工作空间的时间。', + 'type' => 'string', + 'example' => 'Oct 10, 2019 3:42:53 PM', + ], + 'SchedulerMaxRetryTimes' => [ + 'description' => '默认出错自动重跑的次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'ProtectedMode' => [ + 'description' => '工作空间是否开启了保护模式。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TenantId' => [ + 'description' => '租户ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '280749521950784', + ], + 'SchedulerRetryInterval' => [ + 'description' => '默认出错自动重跑的时间间隔。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '120000', + ], + 'EnvTypes' => [ + 'description' => '工作空间包含的环境:简单模式只有生产环境(PROD),标准模式包含开发环境(DEV)和生产环境(PROD)。', + 'type' => 'array', + 'items' => [ + 'description' => '工作空间包含的环境:简单模式只有生产环境(PROD),标准模式包含开发环境(DEV)和生产环境(PROD)。', + 'type' => 'string', + 'example' => '["PROD"]', + ], + ], + 'ResourceManagerResourceGroupId' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'example' => 'rg-acfmzbn7pti3zfa', + ], + 'Tags' => [ + 'description' => '标签信息。', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签键。', + 'type' => 'string', + 'example' => 'Env', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'example' => 'Test', + ], + ], + ], + ], + 'DisableDevelopment' => [ + 'description' => '是否禁用开发角色,取值如下:'."\n" + .' - **false**:默认值,开启开发角色。'."\n" + .' - **true**:禁用开发角色。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'UseProxyOdpsAccount' => [ + 'description' => '访问MaxCompute引擎是否使用代理账号。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'TablePrivacyMode' => [ + 'description' => 'MaxCompute表的可见性权限,取值如下:'."\n" + .'- 0,租户内用户不可见MaxCompute表。'."\n" + .'- 1,租户内用户可见MaxCompute表。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'IsDefault' => [ + 'description' => '是否为默认工作空间,取值如下:'."\n" + .'- 1,是。'."\n" + .'- 0,否。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'Invalid.Tenant.ConnectionNotExists', + 'errorMessage' => 'The connection does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.ProjectNotExists', + 'errorMessage' => 'The project does not exist.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInProject', + 'errorMessage' => 'The user is not in the project.', + ], + ], + 403 => [ + [ + 'errorCode' => 'Invalid.Tenant.UserIsNotProjectOwnerOrAdmin', + 'errorMessage' => 'The user is not a project administrator or owner.', + ], + [ + 'errorCode' => 'Invalid.Tenant.UserNotInTenant', + 'errorMessage' => 'The user is not in tenant.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0bc1411515937635973****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Status\\": 0,\\n \\"ResidentArea\\": \\"private\\",\\n \\"ProjectId\\": 27,\\n \\"ProjectIdentifier\\": \\"abc\\",\\n \\"ProjectName\\": \\"abc\\",\\n \\"IsAllowDownload\\": 1,\\n \\"ProjectMode\\": 1,\\n \\"ProjectDescription\\": \\"abc\\",\\n \\"GmtModified\\": \\"Dec 3, 2019 9:12:20 PM\\",\\n \\"ProjectOwnerBaseId\\": \\"18229311****\\",\\n \\"DevelopmentType\\": 4,\\n \\"DefaultDiResourceGroupIdentifier\\": \\"group_280749521****\\",\\n \\"GmtCreate\\": \\"Oct 10, 2019 3:42:53 PM\\",\\n \\"SchedulerMaxRetryTimes\\": 3,\\n \\"ProtectedMode\\": 1,\\n \\"TenantId\\": 280749521950784,\\n \\"SchedulerRetryInterval\\": 120000,\\n \\"EnvTypes\\": [\\n \\"[\\\\\\"PROD\\\\\\"]\\"\\n ],\\n \\"ResourceManagerResourceGroupId\\": \\"rg-acfmzbn7pti3zfa\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"Env\\",\\n \\"Value\\": \\"Test\\"\\n }\\n ],\\n \\"DisableDevelopment\\": true,\\n \\"UseProxyOdpsAccount\\": true,\\n \\"TablePrivacyMode\\": 1,\\n \\"IsDefault\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n false\\n group_280749521****\\n 28\\n 64\\n 4\\n false\\n PROD\\n Oct 10, 2019 3:42:53 PM\\n Dec 3, 2019 9:12:20 PM\\n 1\\n 0\\n 30\\n 64\\n 27\\n abc\\n 2\\n abc\\n 18229311****\\n 1\\n private\\n 3\\n 120000\\n 0\\n 0\\n 280749521950784\\n false\\n\\n200\\n0bc1ec9b15973****\\ntrue","errorExample":""}]', + 'title' => '查询工作空间信息', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListNodeIO' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'NodeId', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的ID。您可参见[ListNodes](~~173979~~)查看NodeId相关信息。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'minimum' => '2', + 'example' => '1234', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括DEV(开发环境)和PROD(生产环境)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'isFileTransferUrl' => false, + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'IoType', + 'in' => 'formData', + 'schema' => [ + 'description' => '指定查询节点为上游节点还是下游节点。包括input和output。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'output', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '请求的ID,用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The project does not exist.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ProjectNotExists', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '上下游信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TableName' => [ + 'description' => '输入或输出表的表名。', + 'type' => 'string', + 'example' => 'dataworks_a.datastudio_tenant_waitres_alarm', + ], + 'Data' => [ + 'description' => '输入或输出名称。', + 'type' => 'string', + 'example' => 'dataworks_a.1234_out', + ], + 'NodeId' => [ + 'description' => '节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123123', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ErrorMessage\\": \\"The project does not exist.\\",\\n \\"ErrorCode\\": \\"Invalid.Tenant.ProjectNotExists\\",\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"TableName\\": \\"dataworks_a.datastudio_tenant_waitres_alarm\\",\\n \\"Data\\": \\"dataworks_a.1234_out\\",\\n \\"NodeId\\": 123123\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"E6F0DBDD-5AD****\\n200\\n\\n 123123\\n dataworks_a.datastudio_tenant_waitres_alarm\\n dataworks_a.1234_out\\n\\nInvalid.Tenant.ProjectNotExists\\nThe project does not exist.\\ntrue","errorExample":""}]', + 'title' => '查询上下游节点信息', + 'summary' => '查询上下游节点的信息,只能查询一层。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetInstanceStatusCount' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '1234', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运行的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'isFileTransferUrl' => false, + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'BizDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '实例的业务日期。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-01-01', + 'isFileTransferUrl' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID,用于定位日志,排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'StatusCount' => [ + 'description' => '实例的状态统计。', + 'type' => 'object', + 'properties' => [ + 'FailureCount' => [ + 'description' => '失败实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'WaitTimeCount' => [ + 'description' => '满足条件开始等待运行的实例数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'RunningCount' => [ + 'description' => '运行中实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'SuccessCount' => [ + 'description' => '成功实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'TotalCount' => [ + 'description' => '实例的总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'NotRunCount' => [ + 'description' => '未运行实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'WaitResCount' => [ + 'description' => '等待资源实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"StatusCount\\": {\\n \\"FailureCount\\": 1,\\n \\"WaitTimeCount\\": 1,\\n \\"RunningCount\\": 1,\\n \\"SuccessCount\\": 1,\\n \\"TotalCount\\": 1,\\n \\"NotRunCount\\": 1,\\n \\"WaitResCount\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 1\\n 1\\n 1\\n 1\\n 1\\n 1\\n 1\\n\\n0000-ABCD-EFG****","errorExample":""}]', + 'title' => '获取实例不同状态的数量统计', + 'summary' => '调用GetInstanceStatusCount获取实例不同状态的数量统计。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'ListProgramTypeCount' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '9223372036854775807', + 'minimum' => '1', + 'example' => '1234', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间的环境,包括PROD和DEV。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'isFileTransferUrl' => false, + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求的ID,用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'E6F0DBDD-5AD****', + ], + 'ProgramTypeAndCounts' => [ + 'description' => '节点的类型和数量。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Count' => [ + 'description' => '节点的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'ProgramType' => [ + 'description' => '节点的类型。', + 'type' => 'string', + 'example' => 'ODPS_SQL', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E6F0DBDD-5AD****\\",\\n \\"ProgramTypeAndCounts\\": [\\n {\\n \\"Count\\": 3,\\n \\"ProgramType\\": \\"ODPS_SQL\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"E6F0DBDD-5AD****\\n\\n ODPS_SQL\\n 3\\n","errorExample":""}]', + 'title' => '获取节点任务类型的分布', + 'summary' => '调用ListProgramTypeCount获取节点任务类型的分布。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetManualDagInstances' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '运维中心的调度环境标识,包括PROD(生产环境)和DEV(开发环境)。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'RPOD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'formData', + 'schema' => [ + 'description' => '手动业务流程所属的工作空间名称。您可以进入DataWorks管控台,在工作空间配置页面获取。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'test_workspace', + ], + ], + [ + 'name' => 'DagId', + 'in' => 'formData', + 'schema' => [ + 'description' => '触发手动业务流程运行的Dag实例ID。您可以调用[CreateManualDag](~~189728~~)接口获取。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '7000001231241', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求的唯一标识。', + 'type' => 'string', + 'example' => 'SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF', + ], + 'Instances' => [ + 'description' => '手动业务流程的内部实例列表。', + 'type' => 'array', + 'items' => [ + 'description' => '返回实体。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'description' => '实例任务的状态,取值如下:'."\n" + .'- NOT_RUN(未运行)'."\n" + .'- WAIT_TIME(等待定时时间dueTime或cycleTime到来)'."\n" + .'- WAIT_RESOURCE(等待资源)'."\n" + .'- RUNNING(运行中)'."\n" + .'- CHECKING(下发给数据质量进行数据校检)'."\n" + .'- CHECKING_CONDITION(正在进行分支条件校检)'."\n" + .'- FAILURE(执行失败)'."\n" + .'- SUCCESS(执行成功)', + 'type' => 'string', + 'example' => 'WAIT_TIME', + ], + 'BeginRunningTime' => [ + 'description' => '实例任务开始运行的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'BizDate' => [ + 'description' => '业务日期。通常为该任务运行时间的前一天。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'CycTime' => [ + 'description' => '实例任务的定时时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'FinishTime' => [ + 'description' => '实例任务运行的结束时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'CreateTime' => [ + 'description' => '实例任务的创建时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'DagId' => [ + 'description' => '手动业务流程实例的DagId。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '350850491', + ], + 'InstanceId' => [ + 'description' => '内部实例ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '11726873619', + ], + 'BeginWaitResTime' => [ + 'description' => '实例任务开始等待资源的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'TaskType' => [ + 'description' => '实例任务的调度类型,取值如下:'."\n" + .'- NORMAL(0):正常调度任务。该任务被日常调度。'."\n" + .'- MANUAL(1):手动任务。该任务不会被日常调度。'."\n" + .'- PAUSE(2):暂停任务。该任务被日常调度,但启动调度时直接被置为失败状态。'."\n" + .'- SKIP(3):空跑任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- SKIP_UNCHOOSE(4):临时工作流中未选择的任务,仅存在于临时工作流中,启动调度时直接被置为成功状态。'."\n" + .'- SKIP_CYCLE(5):未到运行周期的周或月任务。该任务被日常调度,但启动调度时直接被置为成功状态。'."\n" + .'- CONDITION_UNCHOOSE(6):上游实例中有分支(IF)节点,但是该下游节点未被分支节点选中,直接置为空跑任务。'."\n" + .'- REALTIME_DEPRECATED(7):实时生成的已经过期的周期实例,该类型的任务直接被置为成功状态。'."\n", + 'type' => 'string', + 'example' => 'NORMAL(0)', + ], + 'ParamValues' => [ + 'description' => '实例的参数信息。', + 'type' => 'string', + 'example' => 'xxx', + ], + 'DagType' => [ + 'description' => '手动业务流程的类型。', + 'type' => 'string', + 'example' => '5', + ], + 'NodeName' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => 'test2', + ], + 'BeginWaitTimeTime' => [ + 'description' => '实例任务开始等待调度的时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'NodeId' => [ + 'description' => '业务流程的内部节点ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '37851', + ], + 'ModifyTime' => [ + 'description' => '实例任务最新的修改时间。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1605178414676', + ], + 'CreateUser' => [ + 'description' => '操作人。', + 'type' => 'string', + 'example' => 'xxx', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF\\",\\n \\"Instances\\": [\\n {\\n \\"Status\\": \\"WAIT_TIME\\",\\n \\"BeginRunningTime\\": 1605178414676,\\n \\"BizDate\\": 1605178414676,\\n \\"CycTime\\": 1605178414676,\\n \\"FinishTime\\": 1605178414676,\\n \\"CreateTime\\": 1605178414676,\\n \\"DagId\\": 350850491,\\n \\"InstanceId\\": 11726873619,\\n \\"BeginWaitResTime\\": 1605178414676,\\n \\"TaskType\\": \\"NORMAL(0)\\",\\n \\"ParamValues\\": \\"xxx\\",\\n \\"DagType\\": \\"5\\",\\n \\"NodeName\\": \\"test2\\",\\n \\"BeginWaitTimeTime\\": 1605178414676,\\n \\"NodeId\\": 37851,\\n \\"ModifyTime\\": 1605178414676,\\n \\"CreateUser\\": \\"xxx\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF\\n \\n WAIT_TIME\\n 1605178414676\\n 1605178414676\\n 1605178414676\\n 1605178414676\\n 1605178414676\\n 350850491\\n 11726873619\\n 1605178414676\\n NORMAL(0)\\n xxx\\n 5\\n test2\\n 1605178414676\\n 37851\\n 1605178414676\\n xxx\\n \\n","errorExample":""}]', + 'title' => '获取手动业务流程执行实例的信息', + 'summary' => '调用GetManualDagInstances,获取手动执行的业务流程实例的信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'SearchNodesByOutput' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectEnv', + 'in' => 'formData', + 'schema' => [ + 'description' => '调度运维中心环境标识:PROD表示生产环境,DEV表示开发环境。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'PROD', + 'enum' => [ + 'PROD', + 'DEV', + ], + ], + ], + [ + 'name' => 'Outputs', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点的输出串。支持多个值,多个值时请使用英文逗号(,)分隔。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'aaaaa.1231412_out,bbbb.12313123_out', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回数据为一个Map,Key是用户输入的每个output,Value是output对应的节点信息。', + 'type' => 'object', + 'example' => '{ "test_0709_1.630003558_out": { "nodeId": 21673, "nodeName": "hour_sql", "ownerId": 123123123124, "cronExpress": "00 00 00-23/2 * * ?", "repeatability": true, "programType": "ODPS_SQL", "projectId": 11111, "schedulerType": "NORMAL", "priority": 1, "baselineId": 20001721, "connection": "odps_first" }, "test_0709_1.630003556_out": { "nodeId": 21671, "nodeName": "start", "ownerId": 123141231231, "cronExpress": "00 */10 00-23 * * ?", "repeatability": true, "programType": "VIRTUAL", "projectId": 1111, "schedulerType": "NORMAL", "priority": 1, "baselineId": 20001721 } }', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'The connection does not exist.', + ], + 'RequestId' => [ + 'description' => '请求的ID。用于定位日志,排查问题。', + 'type' => 'string', + 'example' => 'SDFSDFSDF-asdfDFSDF-SDFSDf-SDfSFD', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'Invalid.Tenant.ConnectionNotExists', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"test_0709_1.630003558_out\\": {\\n \\"nodeId\\": 21673,\\n \\"nodeName\\": \\"hour_sql\\",\\n \\"ownerId\\": 123123123124,\\n \\"cronExpress\\": \\"00 00 00-23/2 * * ?\\",\\n \\"repeatability\\": true,\\n \\"programType\\": \\"ODPS_SQL\\",\\n \\"projectId\\": 11111,\\n \\"schedulerType\\": \\"NORMAL\\",\\n \\"priority\\": 1,\\n \\"baselineId\\": 20001721,\\n \\"connection\\": \\"odps_first\\"\\n },\\n \\"test_0709_1.630003556_out\\": {\\n \\"nodeId\\": 21671,\\n \\"nodeName\\": \\"start\\",\\n \\"ownerId\\": 123141231231,\\n \\"cronExpress\\": \\"00 */10 00-23 * * ?\\",\\n \\"repeatability\\": true,\\n \\"programType\\": \\"VIRTUAL\\",\\n \\"projectId\\": 1111,\\n \\"schedulerType\\": \\"NORMAL\\",\\n \\"priority\\": 1,\\n \\"baselineId\\": 20001721\\n }\\n },\\n \\"ErrorMessage\\": \\"The connection does not exist.\\",\\n \\"RequestId\\": \\"SDFSDFSDF-asdfDFSDF-SDFSDf-SDfSFD\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Invalid.Tenant.ConnectionNotExists\\"\\n}","errorExample":""},{"type":"xml","example":"true\\n200\\n\\n \\n 21673\\n hour_sql\\n 123123123124\\n 00 00 00-23/2 * * ?\\n true\\n ODPS_SQL\\n 11111\\n NORMAL\\n 1\\n 20001721\\n odps_first\\n \\n \\n 21671\\n start\\n 123141231231\\n 00 */10 00-23 * * ?\\n true\\n VIRTUAL\\n 1111\\n NORMAL\\n 1\\n 20001721\\n \\n","errorExample":""}]', + 'title' => '根据输出精确查询节点', + 'summary' => '调用SearchNodesByOutput,根据输出精确查询节点。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetNodeTypeListInfo' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Dataworks工作空间的ID,您可以单击页面右上角的小扳手图标,进入工作空间管理页面进行查看。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'docRequired' => true, + 'example' => '10000', + ], + ], + [ + 'name' => 'ProjectIdentifier', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Dataworks工作空间的唯一标识符,即数据开发页面顶部切换工作空间处的英文标识。该参数与ProjectId参数二者必须设置其一,以确定本次API调用操作的Dataworks工作空间。', + 'type' => 'string', + 'required' => false, + 'example' => 'dw_project', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求的数据页数,用于翻页。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => [ + 'description' => '请求的数据页大小,最大值为100。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'docRequired' => true, + 'maximum' => '100', + 'minimum' => '0', + 'example' => '50', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'formData', + 'schema' => [ + 'description' => '节点类型的名称,您可以在DataStudio目录树中看到某个节点类型的名称,支持中英文,与locale需要对齐。支持模糊搜索,不填的情况下返回所有节点类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'ODPS SQ', + ], + ], + [ + 'name' => 'Locale', + 'in' => 'formData', + 'schema' => [ + 'description' => '语言筛选,支持zh-CN和en-US。', + 'type' => 'string', + 'required' => false, + 'example' => 'zh-CN', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。', + 'type' => 'string', + 'example' => '0000-ABCD-EFG****', + ], + 'NodeTypeInfoList' => [ + 'description' => '符合条件的节点类型信息列表。', + 'type' => 'object', + 'properties' => [ + 'PageNumber' => [ + 'description' => '当前数据页的页码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PageSize' => [ + 'description' => '当前数据页的大小。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '50', + ], + 'TotalCount' => [ + 'description' => '满足查询条件的数据总条数。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '127', + ], + 'NodeTypeInfo' => [ + 'description' => '单个节点类型的信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'NodeTypeName' => [ + 'description' => '节点类型的名称。', + 'type' => 'string', + 'example' => 'ODPS SQL', + ], + 'NodeType' => [ + 'description' => '节点类型Type(数字)。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0000-ABCD-EFG****\\",\\n \\"NodeTypeInfoList\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 50,\\n \\"TotalCount\\": 127,\\n \\"NodeTypeInfo\\": [\\n {\\n \\"NodeTypeName\\": \\"ODPS SQL\\",\\n \\"NodeType\\": 10\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-EFG****\\n\\n 127\\n 50\\n 1\\n \\n ODPS SQL\\n 10\\n \\n","errorExample":""}]', + 'title' => '查询节点类型信息', + 'summary' => '查询节点类型信息,包括类型Code和类型名称。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetNodeOnBaseline' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'BaselineId', + 'in' => 'formData', + 'schema' => [ + 'description' => '基线的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'example' => '1234', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'HttpStatusCode' => [ + 'description' => 'HTTP返回码。'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'RequestId' => [ + 'description' => '本次调用的唯一ID。出现错误后,您可以根据该ID排查问题。'."\n", + 'type' => 'string', + 'example' => '0000-ABCD-E****', + ], + 'ErrorMessage' => [ + 'description' => '错误信息。'."\n", + 'type' => 'string', + 'example' => 'The specified parameters are invalid.', + ], + 'ErrorCode' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '1031203110005', + ], + 'Success' => [ + 'description' => '调用是否成功。', + 'type' => 'string', + 'example' => 'true', + ], + 'Data' => [ + 'description' => '基线上的节点列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '9527952****', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => '节点名称', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + 'ProjectId' => [ + 'description' => '节点所在工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1234', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.BaselineNoPermission', + 'errorMessage' => 'You are not authorized to access the baseline.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.Wkbench.ServiceError', + 'errorMessage' => 'An internal error occurred.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.BaselineNotExist', + 'errorMessage' => 'The baseline does not exist.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0000-ABCD-E****\\",\\n \\"ErrorMessage\\": \\"The specified parameters are invalid.\\",\\n \\"ErrorCode\\": \\"1031203110005\\",\\n \\"Success\\": \\"true\\",\\n \\"Data\\": [\\n {\\n \\"Owner\\": \\"9527952****\\",\\n \\"NodeName\\": \\"节点名称\\",\\n \\"NodeId\\": 1234,\\n \\"ProjectId\\": 1234\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"0000-ABCD-E****\\n200\\n\\n 9527952****\\n 节点名称\\n 1234\\n 1234\\n\\n1031203110005\\nThe specified parameters are invalid.\\ntrue","errorExample":""}]', + 'title' => '获取基线上的节点', + 'summary' => '调用GetNodeOnBaseline获取基线上的节点。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetSuccessInstanceTrend' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99999999999', + 'minimum' => '2', + 'example' => '9527', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '每次请求生成的唯一标识。', + 'type' => 'string', + 'example' => '952795279527ab****', + ], + 'InstanceStatusTrend' => [ + 'description' => '分时段实例状态的统计趋势。', + 'type' => 'object', + 'properties' => [ + 'TodayTrend' => [ + 'description' => '今日趋势。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TimePoint' => [ + 'description' => '时间点,分别为00:00~23:00。'."\n" + ."\n", + 'type' => 'string', + 'example' => '01:00', + ], + 'Count' => [ + 'description' => '实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + 'YesterdayTrend' => [ + 'description' => '昨日的趋势。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TimePoint' => [ + 'description' => '时间点,分别为00:00~23:00。'."\n", + 'type' => 'string', + 'example' => '01:00', + ], + 'Count' => [ + 'description' => '实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + 'AvgTrend' => [ + 'description' => '历史平均趋势。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TimePoint' => [ + 'description' => '时间点,分别为00:00~23:00。', + 'type' => 'string', + 'example' => '01:00', + ], + 'Count' => [ + 'description' => '实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"952795279527ab****\\",\\n \\"InstanceStatusTrend\\": {\\n \\"TodayTrend\\": [\\n {\\n \\"TimePoint\\": \\"01:00\\",\\n \\"Count\\": 10\\n }\\n ],\\n \\"YesterdayTrend\\": [\\n {\\n \\"TimePoint\\": \\"01:00\\",\\n \\"Count\\": 10\\n }\\n ],\\n \\"AvgTrend\\": [\\n {\\n \\"TimePoint\\": \\"01:00\\",\\n \\"Count\\": 10\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"952795279527ab****\\n\\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n \\n 01:00\\n 10\\n \\n","errorExample":""}]', + 'title' => '获取当天任务分时段的统计趋势', + 'summary' => '调用GetSuccessInstanceTrend获取当天任务分时段的统计趋势。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetInstanceCountTrend' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99999999999', + 'minimum' => '2', + 'example' => '10000', + ], + ], + [ + 'name' => 'BeginDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '起始业务日期,精确到天。您需要使用yyyy-MM-dd\'T\'HH:mm:ssZ的UTC格式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-04-02T00:00:00+0800', + ], + ], + [ + 'name' => 'EndDate', + 'in' => 'formData', + 'schema' => [ + 'description' => '截止业务日期,精确到天。您需要使用yyyy-MM-dd\'T\'HH:mm:ssZ的UTC格式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-09-10T00:00:00+0800', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '每次请求生成的唯一标识。', + 'type' => 'string', + 'example' => '95279527adhfj****', + ], + 'InstanceCounts' => [ + 'description' => '实例数量趋势数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Date' => [ + 'description' => '业务日期对应的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600963200000', + ], + 'Count' => [ + 'description' => '实例的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '9527', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.NoProject', + 'errorMessage' => 'You have not joined any project.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"95279527adhfj****\\",\\n \\"InstanceCounts\\": [\\n {\\n \\"Date\\": 1600963200000,\\n \\"Count\\": 9527\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"95279527adhfj****\\n\\n 9527\\n 1600963200000\\n","errorExample":""}]', + 'title' => '获取周期实例数量的趋势', + 'summary' => '调用GetInstanceCountTrend获取周期实例数量的趋势。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetInstanceConsumeTimeRank' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99999999999', + 'minimum' => '2', + 'example' => '100000', + ], + ], + [ + 'name' => 'Bizdate', + 'in' => 'formData', + 'schema' => [ + 'description' => '业务日期,精确到天。您需要使用yyyy-MM-dd\'T\'HH:mm:ssZ的UTC格式。', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => '2020-09-21T00:00:00+0800', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '每次请求生成的唯一标识。', + 'type' => 'string', + 'example' => '6347364dadsfadf****', + ], + 'InstanceConsumeTimeRank' => [ + 'description' => '实例运行时长的排行记录。', + 'type' => 'object', + 'properties' => [ + 'UpdateTime' => [ + 'description' => '排行更新时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600963200000', + ], + 'ConsumeTimeRank' => [ + 'description' => '实例运行时长的排行数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '952795279527', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => '节点名称', + ], + 'Bizdate' => [ + 'description' => '实例运行的业务日期。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600963200000', + ], + 'InstanceId' => [ + 'description' => '实例ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '95279527', + ], + 'PrgType' => [ + 'description' => '任务的类型。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'NodeId' => [ + 'description' => '任务节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + 'Consumed' => [ + 'description' => '实例运行时长,单位为s。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1000', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6347364dadsfadf****\\",\\n \\"InstanceConsumeTimeRank\\": {\\n \\"UpdateTime\\": 1600963200000,\\n \\"ConsumeTimeRank\\": [\\n {\\n \\"Owner\\": \\"952795279527\\",\\n \\"NodeName\\": \\"节点名称\\",\\n \\"Bizdate\\": 1600963200000,\\n \\"InstanceId\\": 95279527,\\n \\"PrgType\\": 10,\\n \\"NodeId\\": 9527,\\n \\"Consumed\\": 1000\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"6347364dadsfadf****\\n\\n \\n 10\\n 952795279527\\n 节点名称\\n 95279527\\n 9527\\n 1000\\n 1600963200000\\n \\n 1600963200000\\n","errorExample":""}]', + 'title' => '获取实例运行时长排行', + 'summary' => '调用GetInstanceConsumeTimeRank获取实例运行时长排行。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + 'GetInstanceErrorRank' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'ProjectId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'docRequired' => true, + 'maximum' => '99999999999', + 'minimum' => '2', + 'example' => '9527', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '每次请求生成的唯一标识。', + 'type' => 'string', + 'example' => '952795279527****', + ], + 'InstanceErrorRank' => [ + 'description' => '节点出错的排行数据。', + 'type' => 'object', + 'properties' => [ + 'UpdateTime' => [ + 'description' => '出错排行更新的时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1600963200000', + ], + 'ErrorRank' => [ + 'description' => '节点近一个月出错排行数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Owner' => [ + 'description' => '节点责任人的阿里云UID。', + 'type' => 'string', + 'example' => '952795279527', + ], + 'NodeName' => [ + 'description' => '节点的名称。', + 'type' => 'string', + 'example' => '节点名称', + ], + 'ProjectId' => [ + 'description' => 'DataWorks工作空间的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + 'NodeId' => [ + 'description' => '节点的ID。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9527', + ], + 'Count' => [ + 'description' => '节点出错的次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + 'PrgType' => [ + 'description' => '节点任务的类型。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'ResourceNotAuthorized.Api', + 'errorMessage' => 'You are not authorized to access the resources.', + ], + [ + 'errorCode' => 'Forbidden.Access', + 'errorMessage' => 'Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.', + ], + ], + 429 => [ + [ + 'errorCode' => 'Throttling.Api', + 'errorMessage' => 'The request for this resource has exceeded your available limit.', + ], + [ + 'errorCode' => 'Throttling.Api.Risk', + 'errorMessage' => 'The request for this resource has exceeded your daily available limit.', + ], + [ + 'errorCode' => 'Throttling.Resource', + 'errorMessage' => 'You have reached the limit for the resource. Please contact us by submitting a ticket.', + ], + [ + 'errorCode' => 'Throttling.System', + 'errorMessage' => 'The DataWorks system is busy. Try again later.', + ], + [ + 'errorCode' => 'Throttling.User', + 'errorMessage' => 'Your request is too frequent. Try again later.', + ], + ], + 500 => [ + [ + 'errorCode' => 'Forbidden.Not.Server', + 'errorMessage' => 'The dataworksAPI service is not available in this area. Please try it in another area.', + ], + [ + 'errorCode' => 'InternalError.System', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'InternalError.UserId.Missing', + 'errorMessage' => 'An internal system error occurred. Try again later.', + ], + [ + 'errorCode' => 'Forbidden.Wkbench.ProjectNoPermission', + 'errorMessage' => 'You are not authorized to access the workspace.', + ], + [ + 'errorCode' => 'Invalid.Wkbench.Parameter', + 'errorMessage' => 'The specified parameters are invalid.', + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"952795279527****\\",\\n \\"InstanceErrorRank\\": {\\n \\"UpdateTime\\": 1600963200000,\\n \\"ErrorRank\\": [\\n {\\n \\"Owner\\": \\"952795279527\\",\\n \\"NodeName\\": \\"节点名称\\",\\n \\"ProjectId\\": 9527,\\n \\"NodeId\\": 9527,\\n \\"Count\\": 5,\\n \\"PrgType\\": 10\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"952795279527****\\n\\n \\n 10\\n 952795279527\\n 节点名称\\n 9527\\n 9527\\n 5\\n \\n 1600963200000\\n","errorExample":""}]', + 'title' => '获取近一个月节点的出错排行', + 'summary' => '调用GetInstanceErrorRank获取近一个月节点的出错排行。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-wulanchabu', + 'endpoint' => 'dataworks.cn-wulanchabu.aliyuncs.com', + ], + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'dataworks.cn-beijing.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'dataworks.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hongkong', + 'endpoint' => 'dataworks.cn-hongkong.aliyuncs.com', + ], + [ + 'regionId' => 'cn-zhangjiakou', + 'endpoint' => 'dataworks.cn-zhangjiakou.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'dataworks.cn-shenzhen.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-1', + 'endpoint' => 'dataworks.ap-northeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-chengdu', + 'endpoint' => 'dataworks.cn-chengdu.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'dataworks.ap-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-3', + 'endpoint' => 'dataworks.ap-southeast-3.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-5', + 'endpoint' => 'dataworks.ap-southeast-5.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'dataworks.cn-hangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'us-east-1', + 'endpoint' => 'dataworks.us-east-1.aliyuncs.com', + ], + [ + 'regionId' => 'eu-west-1', + 'endpoint' => 'dataworks.eu-west-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-west-1', + 'endpoint' => 'dataworks.us-west-1.aliyuncs.com', + ], + [ + 'regionId' => 'eu-central-1', + 'endpoint' => 'dataworks.eu-central-1.aliyuncs.com', + ], + [ + 'regionId' => 'me-east-1', + 'endpoint' => 'dataworks.me-east-1.aliyuncs.com', + ], + [ + 'regionId' => 'me-central-1', + 'endpoint' => 'dataworks.me-central-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen-finance-1', + 'endpoint' => 'dataworks.cn-shenzhen-finance-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-finance-1', + 'endpoint' => 'dataworks.cn-shanghai-finance-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou-finance', + 'endpoint' => 'dataworks.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-2', + 'endpoint' => 'dataworks.ap-northeast-2.aliyuncs.com', + ], + ], +]; -- cgit v1.2.3